{"type": "func", "start": 14223164, "end": 14223268, "name": "EC_KEY_priv2oct", "pseudocode": "// \n// EC_KEY_priv2oct from 0xd9073c to 0xd907a4 (104 bytes)\n// \n// 3 xrefs:\n// > EC_KEY_priv2buf @ 0xd90998\n// > EC_KEY_priv2buf @ 0xd909e4\n// > <???> @ 0x8d060\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_priv2oct(__int64 a1)\n{\n  _QWORD *v1; // x3\n  __int64 (*v2)(void); // x19\n\n  v1 = *(_QWORD **)(a1 + 24);\n  if ( !v1 )\n    return (__int64)v1;\n  v1 = (_QWORD *)*v1;\n  if ( !v1 )\n    return (__int64)v1;\n  v2 = (__int64 (*)(void))v1[39];\n  if ( v2 )\n    return v2();\n  ERR_put_error(16, 256, 66, \"crypto/ec/ec_key.c\", 555);\n  return 0;\n}", "assembly": "; \n; EC_KEY_priv2oct from 0xd9073c to 0xd907a4 (104 bytes)\n; \n; 3 xrefs:\n; > EC_KEY_priv2buf @ 0xd90998\n; > EC_KEY_priv2buf @ 0xd909e4\n; > <???> @ 0x8d060\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, 0xd9073c\nMOV             X29, SP                                                ; +0x4, 0xd90740\nLDR             X3, [X0,#0x18]                                         ; +0x8, 0xd90744\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0xd90748\nCBZ             X3, loc_D90770                                         ; +0x10, 0xd9074c\nLDR             X3, [X3]                                               ; +0x14, 0xd90750\nCBZ             X3, loc_D90770                                         ; +0x18, 0xd90754\nLDR             X19, [X3,#0x138]                                       ; +0x1c, 0xd90758\nCBZ             X19, loc_D90780                                        ; +0x20, 0xd9075c\nBLR             X19                                                    ; +0x24, 0xd90760\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0xd90764\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0xd90768\nRET                                                                    ; +0x30, 0xd9076c\nMOV             X0, X3                                                 ; +0x34, 0xd90770\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xd90774\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xd90778\nRET                                                                    ; +0x40, 0xd9077c\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x44, 0xd90780\nMOV             W0, #0x10                                              ; +0x48, 0xd90784\nMOV             W1, #0x100                                             ; +0x4c, 0xd90788\nMOV             W2, #0x42 ; 'B'                                        ; +0x50, 0xd9078c\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x54, 0xd90790\nMOV             W4, #0x22B                                             ; +0x58, 0xd90794\nBL              ERR_put_error                                          ; +0x5c, 0xd90798\nMOV             X0, X19                                                ; +0x60, 0xd9079c\nB               loc_D90764                                             ; +0x64, 0xd907a0", "xrefs": ["EC_KEY_priv2buf @ 0xd90998", "EC_KEY_priv2buf @ 0xd909e4", "<???> @ 0x8d060"], "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"}