{"type": "func", "start": 10486584, "end": 10486768, "name": "EC_POINTs_make_affine", "pseudocode": "// \n// EC_POINTs_make_affine from 0xa00338 to 0xa003f0 (184 bytes)\n// \n// 3 xrefs:\n// > ec_wNAF_mul @ 0xa014c8\n// > ec_wNAF_precompute_mult @ 0xa01b80\n// > <???> @ 0x7b58c\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_POINTs_make_affine(int *a1, int a2, _DWORD **a3)\n{\n  int v3; // r5\n  _DWORD **v4; // lr\n  int v5; // r12\n  _DWORD *v6; // t1\n\n  v3 = *a1;\n  if ( *(_DWORD *)(*a1 + 120) )\n  {\n    if ( !a2 )\n      return (*(int (__fastcall **)(int *))(*a1 + 120))(a1);\n    if ( v3 == **a3 )\n    {\n      v4 = a3;\n      v5 = 0;\n      while ( ++v5 != a2 )\n      {\n        v6 = v4[1];\n        ++v4;\n        if ( v3 != *v6 )\n          goto LABEL_9;\n      }\n      return (*(int (__fastcall **)(int *))(*a1 + 120))(a1);\n    }\nLABEL_9:\n    ERR_put_error(16, 136, 101, \"crypto/ec/ec_lib.c\", 891);\n  }\n  else\n  {\n    ERR_put_error(16, 136, 66, \"crypto/ec/ec_lib.c\", 886);\n  }\n  return 0;\n}", "assembly": "; \n; EC_POINTs_make_affine from 0xa00338 to 0xa003f0 (184 bytes)\n; \n; 3 xrefs:\n; > ec_wNAF_mul @ 0xa014c8\n; > ec_wNAF_precompute_mult @ 0xa01b80\n; > <???> @ 0x7b58c\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; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0xa00338\nLDR             R5, [R0]                                               ; +0x4, 0xa0033c\nSUB             SP, SP, #8                                             ; +0x8, 0xa00340\nLDR             R6, [R5,#0x78]                                         ; +0xc, 0xa00344\nCMP             R6, #0                                                 ; +0x10, 0xa00348\nBEQ             loc_A003CC                                             ; +0x14, 0xa0034c\nCMP             R1, #0                                                 ; +0x18, 0xa00350\nBEQ             loc_A00390                                             ; +0x1c, 0xa00354\nLDR             R12, [R2]                                              ; +0x20, 0xa00358\nLDR             R12, [R12]                                             ; +0x24, 0xa0035c\nCMP             R5, R12                                                ; +0x28, 0xa00360\nMOVEQ           LR, R2                                                 ; +0x2c, 0xa00364\nMOVEQ           R12, #0                                                ; +0x30, 0xa00368\nBEQ             loc_A00384                                             ; +0x34, 0xa0036c\nB               loc_A003A0                                             ; +0x38, 0xa00370\nLDR             R4, [LR,#4]!                                           ; +0x3c, 0xa00374\nLDR             R4, [R4]                                               ; +0x40, 0xa00378\nCMP             R5, R4                                                 ; +0x44, 0xa0037c\nBNE             loc_A003A0                                             ; +0x48, 0xa00380\nADD             R12, R12, #1                                           ; +0x4c, 0xa00384\nCMP             R12, R1                                                ; +0x50, 0xa00388\nBNE             loc_A00374                                             ; +0x54, 0xa0038c\nMOV             R12, R6                                                ; +0x58, 0xa00390\nADD             SP, SP, #8                                             ; +0x5c, 0xa00394\nPOP             {R4-R6,LR}                                             ; +0x60, 0xa00398\nBX              R12                                                    ; +0x64, 0xa0039c\nLDR             R3, =0x37B                                             ; +0x68, 0xa003a0\nSTR             R3, [SP,#8+var_8]                                      ; +0x6c, 0xa003a4\nLDR             R3, =(aCryptoEcEcLibC - 0xA003C0); \"crypto/ec/ec_lib.c\" ; +0x70, 0xa003a8\nMOV             R0, #0x10                                              ; +0x74, 0xa003ac\nMOV             R1, #0x88                                              ; +0x78, 0xa003b0\nMOV             R2, #0x65 ; 'e'                                        ; +0x7c, 0xa003b4\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x80, 0xa003b8\nBL              ERR_put_error                                          ; +0x84, 0xa003bc\nMOV             R0, #0                                                 ; +0x88, 0xa003c0\nADD             SP, SP, #8                                             ; +0x8c, 0xa003c4\nPOP             {R4-R6,PC}                                             ; +0x90, 0xa003c8\nLDR             R3, =0x376                                             ; +0x94, 0xa003cc\nSTR             R3, [SP,#8+var_8]                                      ; +0x98, 0xa003d0\nLDR             R3, =(aCryptoEcEcLibC - 0xA003EC); \"crypto/ec/ec_lib.c\" ; +0x9c, 0xa003d4\nMOV             R0, #0x10                                              ; +0xa0, 0xa003d8\nMOV             R1, #0x88                                              ; +0xa4, 0xa003dc\nMOV             R2, #0x42 ; 'B'                                        ; +0xa8, 0xa003e0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xac, 0xa003e4\nBL              ERR_put_error                                          ; +0xb0, 0xa003e8\nB               loc_A003C0                                             ; +0xb4, 0xa003ec", "xrefs": ["ec_wNAF_mul @ 0xa014c8", "ec_wNAF_precompute_mult @ 0xa01b80", "<???> @ 0x7b58c"], "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"}