{"type": "func", "start": 8302456, "end": 8302600, "name": "EC_POINT_dbl", "pseudocode": "// \n// EC_POINT_dbl from 0x7eaf78 to 0x7eb008 (144 bytes)\n// \n// 9 xrefs:\n// > ec_wNAF_mul @ 0x7ec7f8\n// > ec_wNAF_mul @ 0x7eca78\n// > ec_wNAF_precompute_mult @ 0x7ece50\n// > ec_wNAF_precompute_mult @ 0x7ed004\n// > ec_wNAF_precompute_mult @ 0x7ed030\n// > sub_7F1BA0 @ 0x7f202c\n// > ec_GFp_simple_add @ 0x7f44a4\n// > ec_GFp_simple_add @ 0x7f4538\n// > <???> @ 0x61adc\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_dbl(int *a1, _DWORD *a2, _DWORD *a3)\n{\n  int v3; // r12\n\n  v3 = *a1;\n  if ( !*(_DWORD *)(*a1 + 96) )\n  {\n    ERR_put_error(16, 115, 66, \"crypto/ec/ec_lib.c\", 795);\n    return 0;\n  }\n  if ( v3 != *a2 || v3 != *a3 )\n  {\n    ERR_put_error(16, 115, 101, \"crypto/ec/ec_lib.c\", 799);\n    return 0;\n  }\n  return (*(int (__fastcall **)(int *))(*a1 + 96))(a1);\n}", "assembly": "; \n; EC_POINT_dbl from 0x7eaf78 to 0x7eb008 (144 bytes)\n; \n; 9 xrefs:\n; > ec_wNAF_mul @ 0x7ec7f8\n; > ec_wNAF_mul @ 0x7eca78\n; > ec_wNAF_precompute_mult @ 0x7ece50\n; > ec_wNAF_precompute_mult @ 0x7ed004\n; > ec_wNAF_precompute_mult @ 0x7ed030\n; > sub_7F1BA0 @ 0x7f202c\n; > ec_GFp_simple_add @ 0x7f44a4\n; > ec_GFp_simple_add @ 0x7f4538\n; > <???> @ 0x61adc\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, 0x7eaf78\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x7eaf7c\nLDR             LR, [R12,#0x60]                                        ; +0x8, 0x7eaf80\nSUB             SP, SP, #0xC                                           ; +0xc, 0x7eaf84\nCMP             LR, #0                                                 ; +0x10, 0x7eaf88\nBEQ             loc_7EAFE4                                             ; +0x14, 0x7eaf8c\nLDR             R4, [R1]                                               ; +0x18, 0x7eaf90\nCMP             R12, R4                                                ; +0x1c, 0x7eaf94\nBEQ             loc_7EAFC8                                             ; +0x20, 0x7eaf98\nLDR             R3, =0x31F                                             ; +0x24, 0x7eaf9c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0x7eafa0\nLDR             R3, =(aCryptoEcEcLibC - 0x7EAFBC); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x7eafa4\nMOV             R0, #0x10                                              ; +0x30, 0x7eafa8\nMOV             R1, #0x73 ; 's'                                        ; +0x34, 0x7eafac\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x7eafb0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x7eafb4\nBL              ERR_put_error                                          ; +0x40, 0x7eafb8\nMOV             R0, #0                                                 ; +0x44, 0x7eafbc\nADD             SP, SP, #0xC                                           ; +0x48, 0x7eafc0\nPOP             {R4,R5,PC}                                             ; +0x4c, 0x7eafc4\nLDR             R4, [R2]                                               ; +0x50, 0x7eafc8\nCMP             R12, R4                                                ; +0x54, 0x7eafcc\nBNE             loc_7EAF9C                                             ; +0x58, 0x7eafd0\nMOV             R12, LR                                                ; +0x5c, 0x7eafd4\nADD             SP, SP, #0xC                                           ; +0x60, 0x7eafd8\nPOP             {R4,R5,LR}                                             ; +0x64, 0x7eafdc\nBX              R12                                                    ; +0x68, 0x7eafe0\nLDR             R3, =0x31B                                             ; +0x6c, 0x7eafe4\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x70, 0x7eafe8\nLDR             R3, =(aCryptoEcEcLibC - 0x7EB004); \"crypto/ec/ec_lib.c\" ; +0x74, 0x7eafec\nMOV             R0, #0x10                                              ; +0x78, 0x7eaff0\nMOV             R1, #0x73 ; 's'                                        ; +0x7c, 0x7eaff4\nMOV             R2, #0x42 ; 'B'                                        ; +0x80, 0x7eaff8\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x84, 0x7eaffc\nBL              ERR_put_error                                          ; +0x88, 0x7eb000\nB               loc_7EAFBC                                             ; +0x8c, 0x7eb004", "xrefs": ["ec_wNAF_mul @ 0x7ec7f8", "ec_wNAF_mul @ 0x7eca78", "ec_wNAF_precompute_mult @ 0x7ece50", "ec_wNAF_precompute_mult @ 0x7ed004", "ec_wNAF_precompute_mult @ 0x7ed030", "sub_7F1BA0 @ 0x7f202c", "ec_GFp_simple_add @ 0x7f44a4", "ec_GFp_simple_add @ 0x7f4538", "<???> @ 0x61adc"], "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"}