{"type": "func", "start": 14223448, "end": 14223552, "name": "EC_KEY_oct2priv", "pseudocode": "// \n// EC_KEY_oct2priv from 0xd90858 to 0xd908c0 (104 bytes)\n// \n// 2 xrefs:\n// > d2i_ECPrivateKey @ 0xd8e6f0\n// > <???> @ 0x86f40\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\n__int64 __fastcall EC_KEY_oct2priv(__int64 a1)\n{\n  _QWORD *v1; // x3\n  __int64 (*v2)(void); // x19\n\n  v1 = *(_QWORD **)(a1 + 24);\n  if ( !v1 )\n    return (unsigned int)v1;\n  v1 = (_QWORD *)*v1;\n  if ( !v1 )\n    return (unsigned int)v1;\n  v2 = (__int64 (*)(void))v1[40];\n  if ( v2 )\n    return v2();\n  ERR_put_error(16, 255, 66, \"crypto/ec/ec_key.c\", 590);\n  return 0;\n}", "assembly": "; \n; EC_KEY_oct2priv from 0xd90858 to 0xd908c0 (104 bytes)\n; \n; 2 xrefs:\n; > d2i_ECPrivateKey @ 0xd8e6f0\n; > <???> @ 0x86f40\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xd90858\nMOV             X29, SP                                                ; +0x4, 0xd9085c\nLDR             X3, [X0,#0x18]                                         ; +0x8, 0xd90860\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xd90864\nCBZ             X3, loc_D9088C                                         ; +0x10, 0xd90868\nLDR             X3, [X3]                                               ; +0x14, 0xd9086c\nCBZ             X3, loc_D9088C                                         ; +0x18, 0xd90870\nLDR             X19, [X3,#0x140]                                       ; +0x1c, 0xd90874\nCBZ             X19, loc_D9089C                                        ; +0x20, 0xd90878\nBLR             X19                                                    ; +0x24, 0xd9087c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xd90880\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xd90884\nRET                                                                    ; +0x30, 0xd90888\nMOV             W0, W3                                                 ; +0x34, 0xd9088c\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xd90890\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xd90894\nRET                                                                    ; +0x40, 0xd90898\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x44, 0xd9089c\nMOV             W0, #0x10                                              ; +0x48, 0xd908a0\nMOV             W1, #0xFF                                              ; +0x4c, 0xd908a4\nMOV             W2, #0x42 ; 'B'                                        ; +0x50, 0xd908a8\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x54, 0xd908ac\nMOV             W4, #0x24E                                             ; +0x58, 0xd908b0\nBL              ERR_put_error                                          ; +0x5c, 0xd908b4\nMOV             W0, W19                                                ; +0x60, 0xd908b8\nB               loc_D90880                                             ; +0x64, 0xd908bc", "xrefs": ["d2i_ECPrivateKey @ 0xd8e6f0", "<???> @ 0x86f40"], "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"}