{"type": "func", "start": 10484600, "end": 10484744, "name": "EC_POINT_dbl", "pseudocode": "// \n// EC_POINT_dbl from 0x9ffb78 to 0x9ffc08 (144 bytes)\n// \n// 9 xrefs:\n// > ec_wNAF_mul @ 0xa013f8\n// > ec_wNAF_mul @ 0xa01678\n// > ec_wNAF_precompute_mult @ 0xa01a50\n// > ec_wNAF_precompute_mult @ 0xa01c04\n// > ec_wNAF_precompute_mult @ 0xa01c30\n// > sub_A067A0 @ 0xa06c2c\n// > ec_GFp_simple_add @ 0xa090a4\n// > ec_GFp_simple_add @ 0xa09138\n// > <???> @ 0x7b55c\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_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 0x9ffb78 to 0x9ffc08 (144 bytes)\n; \n; 9 xrefs:\n; > ec_wNAF_mul @ 0xa013f8\n; > ec_wNAF_mul @ 0xa01678\n; > ec_wNAF_precompute_mult @ 0xa01a50\n; > ec_wNAF_precompute_mult @ 0xa01c04\n; > ec_wNAF_precompute_mult @ 0xa01c30\n; > sub_A067A0 @ 0xa06c2c\n; > ec_GFp_simple_add @ 0xa090a4\n; > ec_GFp_simple_add @ 0xa09138\n; > <???> @ 0x7b55c\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             R12, [R0]                                              ; +0x0, 0x9ffb78\nPUSH            {R4,R5,LR}                                             ; +0x4, 0x9ffb7c\nLDR             LR, [R12,#0x60]                                        ; +0x8, 0x9ffb80\nSUB             SP, SP, #0xC                                           ; +0xc, 0x9ffb84\nCMP             LR, #0                                                 ; +0x10, 0x9ffb88\nBEQ             loc_9FFBE4                                             ; +0x14, 0x9ffb8c\nLDR             R4, [R1]                                               ; +0x18, 0x9ffb90\nCMP             R12, R4                                                ; +0x1c, 0x9ffb94\nBEQ             loc_9FFBC8                                             ; +0x20, 0x9ffb98\nLDR             R3, =0x31F                                             ; +0x24, 0x9ffb9c\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x28, 0x9ffba0\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFBBC); \"crypto/ec/ec_lib.c\" ; +0x2c, 0x9ffba4\nMOV             R0, #0x10                                              ; +0x30, 0x9ffba8\nMOV             R1, #0x73 ; 's'                                        ; +0x34, 0x9ffbac\nMOV             R2, #0x65 ; 'e'                                        ; +0x38, 0x9ffbb0\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x3c, 0x9ffbb4\nBL              ERR_put_error                                          ; +0x40, 0x9ffbb8\nMOV             R0, #0                                                 ; +0x44, 0x9ffbbc\nADD             SP, SP, #0xC                                           ; +0x48, 0x9ffbc0\nPOP             {R4,R5,PC}                                             ; +0x4c, 0x9ffbc4\nLDR             R4, [R2]                                               ; +0x50, 0x9ffbc8\nCMP             R12, R4                                                ; +0x54, 0x9ffbcc\nBNE             loc_9FFB9C                                             ; +0x58, 0x9ffbd0\nMOV             R12, LR                                                ; +0x5c, 0x9ffbd4\nADD             SP, SP, #0xC                                           ; +0x60, 0x9ffbd8\nPOP             {R4,R5,LR}                                             ; +0x64, 0x9ffbdc\nBX              R12                                                    ; +0x68, 0x9ffbe0\nLDR             R3, =0x31B                                             ; +0x6c, 0x9ffbe4\nSTR             R3, [SP,#0xC+var_C]                                    ; +0x70, 0x9ffbe8\nLDR             R3, =(aCryptoEcEcLibC - 0x9FFC04); \"crypto/ec/ec_lib.c\" ; +0x74, 0x9ffbec\nMOV             R0, #0x10                                              ; +0x78, 0x9ffbf0\nMOV             R1, #0x73 ; 's'                                        ; +0x7c, 0x9ffbf4\nMOV             R2, #0x42 ; 'B'                                        ; +0x80, 0x9ffbf8\nADD             R3, PC, R3; \"crypto/ec/ec_lib.c\"                       ; +0x84, 0x9ffbfc\nBL              ERR_put_error                                          ; +0x88, 0x9ffc00\nB               loc_9FFBBC                                             ; +0x8c, 0x9ffc04", "xrefs": ["ec_wNAF_mul @ 0xa013f8", "ec_wNAF_mul @ 0xa01678", "ec_wNAF_precompute_mult @ 0xa01a50", "ec_wNAF_precompute_mult @ 0xa01c04", "ec_wNAF_precompute_mult @ 0xa01c30", "sub_A067A0 @ 0xa06c2c", "ec_GFp_simple_add @ 0xa090a4", "ec_GFp_simple_add @ 0xa09138", "<???> @ 0x7b55c"], "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"}