{"type": "func", "start": 16837560, "end": 16837664, "name": "EC_KEY_oct2priv", "pseudocode": "// \n// EC_KEY_oct2priv from 0x100ebb8 to 0x100ec20 (104 bytes)\n// \n// 2 xrefs:\n// > d2i_ECPrivateKey @ 0x100ca50\n// > <???> @ 0xb3110\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\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 0x100ebb8 to 0x100ec20 (104 bytes)\n; \n; 2 xrefs:\n; > d2i_ECPrivateKey @ 0x100ca50\n; > <???> @ 0xb3110\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 13:16:01 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x100ebb8\nMOV             X29, SP                                                ; +0x4, 0x100ebbc\nLDR             X3, [X0,#0x18]                                         ; +0x8, 0x100ebc0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x100ebc4\nCBZ             X3, loc_100EBEC                                        ; +0x10, 0x100ebc8\nLDR             X3, [X3]                                               ; +0x14, 0x100ebcc\nCBZ             X3, loc_100EBEC                                        ; +0x18, 0x100ebd0\nLDR             X19, [X3,#0x140]                                       ; +0x1c, 0x100ebd4\nCBZ             X19, loc_100EBFC                                       ; +0x20, 0x100ebd8\nBLR             X19                                                    ; +0x24, 0x100ebdc\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x28, 0x100ebe0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x2c, 0x100ebe4\nRET                                                                    ; +0x30, 0x100ebe8\nMOV             W0, W3                                                 ; +0x34, 0x100ebec\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0x100ebf0\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0x100ebf4\nRET                                                                    ; +0x40, 0x100ebf8\nADRP            X3, #aCryptoEcEcKeyC@PAGE; \"crypto/ec/ec_key.c\"        ; +0x44, 0x100ebfc\nMOV             W0, #0x10                                              ; +0x48, 0x100ec00\nMOV             W1, #0xFF                                              ; +0x4c, 0x100ec04\nMOV             W2, #0x42 ; 'B'                                        ; +0x50, 0x100ec08\nADD             X3, X3, #aCryptoEcEcKeyC@PAGEOFF; \"crypto/ec/ec_key.c\" ; +0x54, 0x100ec0c\nMOV             W4, #0x24E                                             ; +0x58, 0x100ec10\nBL              ERR_put_error                                          ; +0x5c, 0x100ec14\nMOV             W0, W19                                                ; +0x60, 0x100ec18\nB               loc_100EBE0                                            ; +0x64, 0x100ec1c", "xrefs": ["d2i_ECPrivateKey @ 0x100ca50", "<???> @ 0xb3110"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}