{"type": "func", "start": 8304440, "end": 8304624, "name": "EC_POINTs_make_affine", "pseudocode": "// \n// EC_POINTs_make_affine from 0x7eb738 to 0x7eb7f0 (184 bytes)\n// \n// 3 xrefs:\n// > ec_wNAF_mul @ 0x7ec8c8\n// > ec_wNAF_precompute_mult @ 0x7ecf80\n// > <???> @ 0x61b0c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\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 0x7eb738 to 0x7eb7f0 (184 bytes)\n; \n; 3 xrefs:\n; > ec_wNAF_mul @ 0x7ec8c8\n; > ec_wNAF_precompute_mult @ 0x7ecf80\n; > <???> @ 0x61b0c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4-R6,LR}                                             ; +0x0, 0x7eb738\nLDR             R5, [R0]                                               ; +0x4, 0x7eb73c\nSUB             SP, SP, #8                                             ; +0x8, 0x7eb740\nLDR             R6, [R5,#0x78]                                         ; +0xc, 0x7eb744\nCMP             R6, #0                                                 ; +0x10, 0x7eb748\nBEQ             loc_7EB7CC                                             ; +0x14, 0x7eb74c\nCMP             R1, #0                                                 ; +0x18, 0x7eb750\nBEQ             loc_7EB790                                             ; +0x1c, 0x7eb754\nLDR             R12, [R2]                                              ; +0x20, 0x7eb758\nLDR             R12, [R12]                                             ; +0x24, 0x7eb75c\nCMP             R5, R12                                                ; +0x28, 0x7eb760\nMOVEQ           LR, R2                                                 ; +0x2c, 0x7eb764\nMOVEQ           R12, #0                                                ; +0x30, 0x7eb768\nBEQ             loc_7EB784                                             ; +0x34, 0x7eb76c\nB               loc_7EB7A0                                             ; +0x38, 0x7eb770\nLDR             R4, [LR,#4]!                                           ; +0x3c, 0x7eb774\nLDR             R4, [R4]                                               ; +0x40, 0x7eb778\nCMP             R5, R4                                                 ; +0x44, 0x7eb77c\nBNE             loc_7EB7A0                                             ; +0x48, 0x7eb780\nADD             R12, R12, #1                                           ; +0x4c, 0x7eb784\nCMP             R12, R1                                                ; +0x50, 0x7eb788\nBNE             loc_7EB774                                             ; +0x54, 0x7eb78c\nMOV             R12, R6                                                ; +0x58, 0x7eb790\nADD             SP, SP, #8                                             ; +0x5c, 0x7eb794\nPOP             {R4-R6,LR}                                             ; +0x60, 0x7eb798\nBX              R12                                                    ; +0x64, 0x7eb79c\nLDR             R3, =0x37B                                             ; +0x68, 0x7eb7a0\nSTR             R3, [SP,#8+var_8]                                      ; +0x6c, 0x7eb7a4\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB7C0); \"crypto/ec/ec_lib.c\" ; +0x70, 0x7eb7a8\nMOV             R0, #0x10                                              ; +0x74, 0x7eb7ac\nMOV             R1, #0x88                                              ; +0x78, 0x7eb7b0\nMOV             R2, #0x65 ; 'e'                                        ; +0x7c, 0x7eb7b4\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x80, 0x7eb7b8\nBL              ERR_put_error                                          ; +0x84, 0x7eb7bc\nMOV             R0, #0                                                 ; +0x88, 0x7eb7c0\nADD             SP, SP, #8                                             ; +0x8c, 0x7eb7c4\nPOP             {R4-R6,PC}                                             ; +0x90, 0x7eb7c8\nLDR             R3, =0x376                                             ; +0x94, 0x7eb7cc\nSTR             R3, [SP,#8+var_8]                                      ; +0x98, 0x7eb7d0\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB7EC); \"crypto/ec/ec_lib.c\" ; +0x9c, 0x7eb7d4\nMOV             R0, #0x10                                              ; +0xa0, 0x7eb7d8\nMOV             R1, #0x88                                              ; +0xa4, 0x7eb7dc\nMOV             R2, #0x42 ; 'B'                                        ; +0xa8, 0x7eb7e0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0xac, 0x7eb7e4\nBL              ERR_put_error                                          ; +0xb0, 0x7eb7e8\nB               loc_7EB7C0                                             ; +0xb4, 0x7eb7ec", "xrefs": ["ec_wNAF_mul @ 0x7ec8c8", "ec_wNAF_precompute_mult @ 0x7ecf80", "<???> @ 0x61b0c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}