{"type": "func", "start": 16822816, "end": 16823080, "name": "ECParameters_print", "pseudocode": "// \n// ECParameters_print from 0x100b220 to 0x100b328 (264 bytes)\n// \n// 2 xrefs:\n// > ECParameters_print_fp @ 0x1013f4c\n// > <???> @ 0xbec78\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:15:59 +0000\n// \n\n__int64 __fastcall ECParameters_print(__int64 a1, __int64 a2)\n{\n  __int64 v3; // x20\n  unsigned int v4; // w20\n  int v6; // w0\n\n  if ( a2 && (v3 = EC_KEY_get0_group(a2)) != 0 )\n  {\n    if ( (unsigned int)BIO_indent(a1, 4, 128)\n      && (v6 = EC_GROUP_order_bits(v3), (int)BIO_printf(a1, \"%s: (%d bit)\\n\", \"ECDSA-Parameters\", v6) > 0)\n      && (unsigned int)ECPKParameters_print(a1, v3, 4) )\n    {\n      v4 = 1;\n    }\n    else\n    {\n      v4 = 0;\n      ERR_put_error(16, 221, 16, \"crypto/ec/ec_ameth.c\", 392);\n    }\n    CRYPTO_clear_free(0, 0, \"crypto/ec/ec_ameth.c\", 393);\n    CRYPTO_free(0, \"crypto/ec/ec_ameth.c\", 394);\n    return v4;\n  }\n  else\n  {\n    ERR_put_error(16, 221, 67, \"crypto/ec/ec_ameth.c\", 344);\n    return 0;\n  }\n}", "assembly": "; \n; ECParameters_print from 0x100b220 to 0x100b328 (264 bytes)\n; \n; 2 xrefs:\n; > ECParameters_print_fp @ 0x1013f4c\n; > <???> @ 0xbec78\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:15:59 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x100b220\nMOV             X29, SP                                                ; +0x4, 0x100b224\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x100b228\nMOV             X19, X0                                                ; +0xc, 0x100b22c\nCBZ             X1, loc_100B2FC                                        ; +0x10, 0x100b230\nMOV             X0, X1                                                 ; +0x14, 0x100b234\nBL              EC_KEY_get0_group                                      ; +0x18, 0x100b238\nMOV             X20, X0                                                ; +0x1c, 0x100b23c\nCBZ             X0, loc_100B2FC                                        ; +0x20, 0x100b240\nMOV             X0, X19                                                ; +0x24, 0x100b244\nMOV             W1, #4                                                 ; +0x28, 0x100b248\nMOV             W2, #0x80                                              ; +0x2c, 0x100b24c\nBL              BIO_indent                                             ; +0x30, 0x100b250\nCBNZ            W0, loc_100B2B0                                        ; +0x34, 0x100b254\nMOV             W0, #0x10                                              ; +0x38, 0x100b258\nADRP            X19, #aCryptoEcEcAmet@PAGE; \"crypto/ec/ec_ameth.c\"     ; +0x3c, 0x100b25c\nMOV             W1, #0xDD                                              ; +0x40, 0x100b260\nMOV             W2, W0                                                 ; +0x44, 0x100b264\nADD             X3, X19, #aCryptoEcEcAmet@PAGEOFF; \"crypto/ec/ec_ameth.c\" ; +0x48, 0x100b268\nMOV             W4, #0x188                                             ; +0x4c, 0x100b26c\nMOV             W20, #0                                                ; +0x50, 0x100b270\nBL              ERR_put_error                                          ; +0x54, 0x100b274\nMOV             X0, #0                                                 ; +0x58, 0x100b278\nADD             X19, X19, #aCryptoEcEcAmet@PAGEOFF; \"crypto/ec/ec_ameth.c\" ; +0x5c, 0x100b27c\nMOV             X1, X0                                                 ; +0x60, 0x100b280\nMOV             X2, X19                                                ; +0x64, 0x100b284\nMOV             W3, #0x189                                             ; +0x68, 0x100b288\nBL              CRYPTO_clear_free                                      ; +0x6c, 0x100b28c\nMOV             X1, X19                                                ; +0x70, 0x100b290\nMOV             X0, #0                                                 ; +0x74, 0x100b294\nMOV             W2, #0x18A                                             ; +0x78, 0x100b298\nBL              CRYPTO_free                                            ; +0x7c, 0x100b29c\nMOV             W0, W20                                                ; +0x80, 0x100b2a0\nLDP             X19, X20, [SP,#var_s10]                                ; +0x84, 0x100b2a4\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x88, 0x100b2a8\nRET                                                                    ; +0x8c, 0x100b2ac\nMOV             X0, X20                                                ; +0x90, 0x100b2b0\nBL              EC_GROUP_order_bits                                    ; +0x94, 0x100b2b4\nMOV             W3, W0                                                 ; +0x98, 0x100b2b8\nADRP            X1, #aSDBit@PAGE; \"%s: (%d bit)\\n\"                     ; +0x9c, 0x100b2bc\nADRP            X2, #aEcdsaParameter@PAGE; \"ECDSA-Parameters\"          ; +0xa0, 0x100b2c0\nMOV             X0, X19                                                ; +0xa4, 0x100b2c4\nADD             X1, X1, #aSDBit@PAGEOFF; \"%s: (%d bit)\\n\"              ; +0xa8, 0x100b2c8\nADD             X2, X2, #aEcdsaParameter@PAGEOFF; \"ECDSA-Parameters\"   ; +0xac, 0x100b2cc\nBL              BIO_printf                                             ; +0xb0, 0x100b2d0\nCMP             W0, WZR                                                ; +0xb4, 0x100b2d4\nB.LE            loc_100B258                                            ; +0xb8, 0x100b2d8\nMOV             X0, X19                                                ; +0xbc, 0x100b2dc\nMOV             X1, X20                                                ; +0xc0, 0x100b2e0\nMOV             W2, #4                                                 ; +0xc4, 0x100b2e4\nBL              ECPKParameters_print                                   ; +0xc8, 0x100b2e8\nCBZ             W0, loc_100B258                                        ; +0xcc, 0x100b2ec\nMOV             W20, #1                                                ; +0xd0, 0x100b2f0\nADRP            X19, #aCryptoEcEcAmet@PAGE; \"crypto/ec/ec_ameth.c\"     ; +0xd4, 0x100b2f4\nB               loc_100B278                                            ; +0xd8, 0x100b2f8\nADRP            X3, #aCryptoEcEcAmet@PAGE; \"crypto/ec/ec_ameth.c\"      ; +0xdc, 0x100b2fc\nMOV             W0, #0x10                                              ; +0xe0, 0x100b300\nMOV             W1, #0xDD                                              ; +0xe4, 0x100b304\nMOV             W2, #0x43 ; 'C'                                        ; +0xe8, 0x100b308\nADD             X3, X3, #aCryptoEcEcAmet@PAGEOFF; \"crypto/ec/ec_ameth.c\" ; +0xec, 0x100b30c\nMOV             W4, #0x158                                             ; +0xf0, 0x100b310\nBL              ERR_put_error                                          ; +0xf4, 0x100b314\nMOV             W0, #0                                                 ; +0xf8, 0x100b318\nLDP             X19, X20, [SP,#var_s10]                                ; +0xfc, 0x100b31c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x100, 0x100b320\nRET                                                                    ; +0x104, 0x100b324", "xrefs": ["ECParameters_print_fp @ 0x1013f4c", "<???> @ 0xbec78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}