{"type": "func", "start": 10486440, "end": 10486568, "name": "EC_POINT_make_affine", "pseudocode": "// \n// EC_POINT_make_affine from 0xa002a8 to 0xa00328 (128 bytes)\n// \n// 3 xrefs:\n// > sub_A067A0 @ 0xa06bcc\n// > ec_GF2m_simple_invert @ 0xa9f3f4\n// > <???> @ 0x7b57c\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:37 +0000\n// \n\nint __fastcall EC_POINT_make_affine(int a1, _DWORD *a2)\n{\n  int (*v2)(void); // r12\n\n  v2 = *(int (**)(void))(*(_DWORD *)a1 + 116);\n  if ( !v2 )\n  {\n    ERR_put_error(16, 120, 66, \"crypto/ec/ec_lib.c\", 870);\n    return 0;\n  }\n  if ( *(_DWORD *)a1 != *a2 )\n  {\n    ERR_put_error(16, 120, 101, \"crypto/ec/ec_lib.c\", 874);\n    return 0;\n  }\n  return v2();\n}", "assembly": "; \n; EC_POINT_make_affine from 0xa002a8 to 0xa00328 (128 bytes)\n; \n; 3 xrefs:\n; > sub_A067A0 @ 0xa06bcc\n; > ec_GF2m_simple_invert @ 0xa9f3f4\n; > <???> @ 0x7b57c\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:37 +0000\n; \nLDR             R3, [R0]                                               ; +0x0, 0xa002a8\nPUSH            {LR}                                                   ; +0x4, 0xa002ac\nLDR             R12, [R3,#0x74]                                        ; +0x8, 0xa002b0\nSUB             SP, SP, #0xC                                           ; +0xc, 0xa002b4\nCMP             R12, #0                                                ; +0x10, 0xa002b8\nBEQ             loc_A00304                                             ; +0x14, 0xa002bc\nLDR             LR, [R1]                                               ; +0x18, 0xa002c0\nCMP             R3, LR                                                 ; +0x1c, 0xa002c4\nBEQ             loc_A002F8                                             ; +0x20, 0xa002c8\nLDR             R3, =0x36A                                             ; +0x24, 0xa002cc\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0xa002d0\nLDR             R3, =(aCryptoEcEcLibC - 0xA002EC); \"crypto/ec/ec_lib.c\" ; +0x2c, 0xa002d4\nMOV             R0, #0x10                                              ; +0x30, 0xa002d8\nMOV             R1, #0x78 ; 'x'                                        ; +0x34, 0xa002dc\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0xa002e0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0xa002e4\nBL              ERR_put_error                                          ; +0x40, 0xa002e8\nMOV             R0, #0                                                 ; +0x44, 0xa002ec\nADD             SP, SP, #0xC                                           ; +0x48, 0xa002f0\nPOP             {PC}                                                   ; +0x4c, 0xa002f4\nADD             SP, SP, #0xC                                           ; +0x50, 0xa002f8\nPOP             {LR}                                                   ; +0x54, 0xa002fc\nBX              R12                                                    ; +0x58, 0xa00300\nLDR             R3, =0x366                                             ; +0x5c, 0xa00304\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x60, 0xa00308\nLDR             R3, =(aCryptoEcEcLibC - 0xA00324); \"crypto/ec/ec_lib.c\" ; +0x64, 0xa0030c\nMOV             R0, #0x10                                              ; +0x68, 0xa00310\nMOV             R1, #0x78 ; 'x'                                        ; +0x6c, 0xa00314\nMOV             R2, #0x42 ; 'B'                                        ; +0x70, 0xa00318\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x74, 0xa0031c\nBL              ERR_put_error                                          ; +0x78, 0xa00320\nB               loc_A002EC                                             ; +0x7c, 0xa00324", "xrefs": ["sub_A067A0 @ 0xa06bcc", "ec_GF2m_simple_invert @ 0xa9f3f4", "<???> @ 0x7b57c"], "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"}