{"type": "func", "start": 10462256, "end": 10462528, "name": "ECParameters_print", "pseudocode": "// \n// ECParameters_print from 0x9fa430 to 0x9fa540 (272 bytes)\n// \n// 2 xrefs:\n// > ECParameters_print_fp @ 0xa03f0c\n// > <???> @ 0x7acbc\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:34 +0000\n// \n\nint __fastcall ECParameters_print(int a1, int a2)\n{\n  int v3; // r5\n  int v4; // r5\n  int v6; // r0\n\n  if ( a2 && (v3 = EC_KEY_get0_group(a2)) != 0 )\n  {\n    if ( BIO_indent(a1, 4, 128)\n      && (v6 = EC_GROUP_order_bits(v3), BIO_printf(a1, \"%s: (%d bit)\\n\", \"ECDSA-Parameters\", v6) > 0)\n      && ECPKParameters_print(a1, v3, 4) )\n    {\n      v4 = 1;\n    }\n    else\n    {\n      ERR_put_error(16, 221, 16, \"crypto/ec/ec_ameth.c\", 392);\n      v4 = 0;\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 0x9fa430 to 0x9fa540 (272 bytes)\n; \n; 2 xrefs:\n; > ECParameters_print_fp @ 0xa03f0c\n; > <???> @ 0x7acbc\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:34 +0000\n; \nCMP             R1, #0                                                 ; +0x0, 0x9fa430\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x9fa434\nSUB             SP, SP, #0xC                                           ; +0x8, 0x9fa438\nBEQ             loc_9FA514                                             ; +0xc, 0x9fa43c\nMOV             R4, R0                                                 ; +0x10, 0x9fa440\nMOV             R0, R1                                                 ; +0x14, 0x9fa444\nBL              EC_KEY_get0_group                                      ; +0x18, 0x9fa448\nSUBS            R5, R0, #0                                             ; +0x1c, 0x9fa44c\nBEQ             loc_9FA514                                             ; +0x20, 0x9fa450\nMOV             R0, R4                                                 ; +0x24, 0x9fa454\nMOV             R1, #4                                                 ; +0x28, 0x9fa458\nMOV             R2, #0x80                                              ; +0x2c, 0x9fa45c\nBL              BIO_indent                                             ; +0x30, 0x9fa460\nCMP             R0, #0                                                 ; +0x34, 0x9fa464\nBNE             loc_9FA4C8                                             ; +0x38, 0x9fa468\nMOV             R3, #0x188                                             ; +0x3c, 0x9fa46c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x40, 0x9fa470\nLDR             R3, =(aCryptoEcEcAmet - 0x9FA48C); \"crypto/ec/ec_ameth.c\" ; +0x44, 0x9fa474\nMOV             R0, #0x10                                              ; +0x48, 0x9fa478\nMOV             R2, R0                                                 ; +0x4c, 0x9fa47c\nMOV             R1, #0xDD                                              ; +0x50, 0x9fa480\nADD             R3, PC, R3; \"crypto/ec/ec_ameth.c\"                     ; +0x54, 0x9fa484\nBL              ERR_put_error                                          ; +0x58, 0x9fa488\nMOV             R5, #0                                                 ; +0x5c, 0x9fa48c\nLDR             R4, =(aCryptoEcEcAmet - 0x9FA4A0); \"crypto/ec/ec_ameth.c\" ; +0x60, 0x9fa490\nMOV             R0, #0                                                 ; +0x64, 0x9fa494\nADD             R4, PC, R4; \"crypto/ec/ec_ameth.c\"                     ; +0x68, 0x9fa498\nMOV             R2, R4                                                 ; +0x6c, 0x9fa49c\nMOV             R1, R0                                                 ; +0x70, 0x9fa4a0\nLDR             R3, =0x189                                             ; +0x74, 0x9fa4a4\nBL              CRYPTO_clear_free                                      ; +0x78, 0x9fa4a8\nMOV             R1, R4                                                 ; +0x7c, 0x9fa4ac\nMOV             R0, #0                                                 ; +0x80, 0x9fa4b0\nLDR             R2, =0x18A                                             ; +0x84, 0x9fa4b4\nBL              CRYPTO_free                                            ; +0x88, 0x9fa4b8\nMOV             R0, R5                                                 ; +0x8c, 0x9fa4bc\nADD             SP, SP, #0xC                                           ; +0x90, 0x9fa4c0\nPOP             {R4,R5,PC}                                             ; +0x94, 0x9fa4c4\nMOV             R0, R5                                                 ; +0x98, 0x9fa4c8\nBL              EC_GROUP_order_bits                                    ; +0x9c, 0x9fa4cc\nLDR             R1, =(aSDBit - 0x9FA4E0); \"%s: (%d bit)\\n\"             ; +0xa0, 0x9fa4d0\nLDR             R2, =(aEcdsaParameter - 0x9FA4E4); \"ECDSA-Parameters\"  ; +0xa4, 0x9fa4d4\nADD             R1, PC, R1; \"%s: (%d bit)\\n\"                           ; +0xa8, 0x9fa4d8\nADD             R2, PC, R2; \"ECDSA-Parameters\"                         ; +0xac, 0x9fa4dc\nMOV             R3, R0                                                 ; +0xb0, 0x9fa4e0\nMOV             R0, R4                                                 ; +0xb4, 0x9fa4e4\nBL              BIO_printf                                             ; +0xb8, 0x9fa4e8\nCMP             R0, #0                                                 ; +0xbc, 0x9fa4ec\nBLE             loc_9FA46C                                             ; +0xc0, 0x9fa4f0\nMOV             R0, R4                                                 ; +0xc4, 0x9fa4f4\nMOV             R1, R5                                                 ; +0xc8, 0x9fa4f8\nMOV             R2, #4                                                 ; +0xcc, 0x9fa4fc\nBL              ECPKParameters_print                                   ; +0xd0, 0x9fa500\nCMP             R0, #0                                                 ; +0xd4, 0x9fa504\nBEQ             loc_9FA46C                                             ; +0xd8, 0x9fa508\nMOV             R5, #1                                                 ; +0xdc, 0x9fa50c\nB               loc_9FA490                                             ; +0xe0, 0x9fa510\nMOV             R3, #0x158                                             ; +0xe4, 0x9fa514\nSTR             R3, [SP,#0xC+var_C]                                    ; +0xe8, 0x9fa518\nLDR             R3, =(aCryptoEcEcAmet - 0x9FA534); \"crypto/ec/ec_ameth.c\" ; +0xec, 0x9fa51c\nMOV             R0, #0x10                                              ; +0xf0, 0x9fa520\nMOV             R1, #0xDD                                              ; +0xf4, 0x9fa524\nMOV             R2, #0x43 ; 'C'                                        ; +0xf8, 0x9fa528\nADD             R3, PC, R3; \"crypto/ec/ec_ameth.c\"                     ; +0xfc, 0x9fa52c\nBL              ERR_put_error                                          ; +0x100, 0x9fa530\nMOV             R0, #0                                                 ; +0x104, 0x9fa534\nADD             SP, SP, #0xC                                           ; +0x108, 0x9fa538\nPOP             {R4,R5,PC}                                             ; +0x10c, 0x9fa53c", "xrefs": ["ECParameters_print_fp @ 0xa03f0c", "<???> @ 0x7acbc"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}