{"type": "func", "start": 8302280, "end": 8302444, "name": "EC_POINT_add", "pseudocode": "// \n// EC_POINT_add from 0x7eaec8 to 0x7eaf6c (164 bytes)\n// \n// 5 xrefs:\n// > ec_wNAF_mul @ 0x7ec868\n// > ec_wNAF_mul @ 0x7ecaac\n// > ec_wNAF_precompute_mult @ 0x7ecea0\n// > sub_7F1BA0 @ 0x7f206c\n// > <???> @ 0x61acc\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_POINT_add(int *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)\n{\n  int v4; // r12\n\n  v4 = *a1;\n  if ( !*(_DWORD *)(*a1 + 92) )\n  {\n    ERR_put_error(16, 112, 66, \"crypto/ec/ec_lib.c\", 780);\n    return 0;\n  }\n  if ( v4 != *a2 || v4 != *a3 || v4 != *a4 )\n  {\n    ERR_put_error(16, 112, 101, \"crypto/ec/ec_lib.c\", 785);\n    return 0;\n  }\n  return (*(int (__fastcall **)(int *))(*a1 + 92))(a1);\n}", "assembly": "; \n; EC_POINT_add from 0x7eaec8 to 0x7eaf6c (164 bytes)\n; \n; 5 xrefs:\n; > ec_wNAF_mul @ 0x7ec868\n; > ec_wNAF_mul @ 0x7ecaac\n; > ec_wNAF_precompute_mult @ 0x7ecea0\n; > sub_7F1BA0 @ 0x7f206c\n; > <???> @ 0x61acc\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\nLDR             R12, [R0]                                              ; +0x0, 0x7eaec8\nPUSH            {R4-R7,LR}                                             ; +0x4, 0x7eaecc\nLDR             LR, [R12,#0x5C]                                        ; +0x8, 0x7eaed0\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eaed4\nCMP             LR, #0                                                 ; +0x10, 0x7eaed8\nLDR             R7, [SP,#0xC+arg_0]                                    ; +0x14, 0x7eaedc\nBEQ             loc_7EAF48                                             ; +0x18, 0x7eaee0\nLDR             R4, [R1]                                               ; +0x1c, 0x7eaee4\nCMP             R12, R4                                                ; +0x20, 0x7eaee8\nBEQ             loc_7EAF1C                                             ; +0x24, 0x7eaeec\nLDR             R3, =0x311                                             ; +0x28, 0x7eaef0\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x2c, 0x7eaef4\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAF10); \"crypto/ec/ec_lib.c\" ; +0x30, 0x7eaef8\nMOV             R0, #0x10                                              ; +0x34, 0x7eaefc\nMOV             R1, #0x70 ; 'p'                                        ; +0x38, 0x7eaf00\nMOV             R2, #0x65 ; 'e'                                        ; +0x3c, 0x7eaf04\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x40, 0x7eaf08\nBL              ERR_put_error                                          ; +0x44, 0x7eaf0c\nMOV             R0, #0                                                 ; +0x48, 0x7eaf10\nADD             SP, SP, #0xC                                           ; +0x4c, 0x7eaf14\nPOP             {R4-R7,PC}                                             ; +0x50, 0x7eaf18\nLDR             R4, [R2]                                               ; +0x54, 0x7eaf1c\nCMP             R12, R4                                                ; +0x58, 0x7eaf20\nBNE             loc_7EAEF0                                             ; +0x5c, 0x7eaf24\nLDR             R4, [R3]                                               ; +0x60, 0x7eaf28\nCMP             R12, R4                                                ; +0x64, 0x7eaf2c\nBNE             loc_7EAEF0                                             ; +0x68, 0x7eaf30\nMOV             R12, LR                                                ; +0x6c, 0x7eaf34\nSTR             R7, [SP,#0xC+arg_0]                                    ; +0x70, 0x7eaf38\nADD             SP, SP, #0xC                                           ; +0x74, 0x7eaf3c\nPOP             {R4-R7,LR}                                             ; +0x78, 0x7eaf40\nBX              R12                                                    ; +0x7c, 0x7eaf44\nMOV             R3, #0x30C                                             ; +0x80, 0x7eaf48\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x84, 0x7eaf4c\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAF68); \"crypto/ec/ec_lib.c\" ; +0x88, 0x7eaf50\nMOV             R0, #0x10                                              ; +0x8c, 0x7eaf54\nMOV             R1, #0x70 ; 'p'                                        ; +0x90, 0x7eaf58\nMOV             R2, #0x42 ; 'B'                                        ; +0x94, 0x7eaf5c\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x98, 0x7eaf60\nBL              ERR_put_error                                          ; +0x9c, 0x7eaf64\nB               loc_7EAF10                                             ; +0xa0, 0x7eaf68", "xrefs": ["ec_wNAF_mul @ 0x7ec868", "ec_wNAF_mul @ 0x7ecaac", "ec_wNAF_precompute_mult @ 0x7ecea0", "sub_7F1BA0 @ 0x7f206c", "<???> @ 0x61acc"], "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"}