{"type": "func", "start": 17327864, "end": 17328024, "name": "ASN1_d2i_fp", "pseudocode": "// \n// ASN1_d2i_fp from 0x10866f8 to 0x1086798 (160 bytes)\n// \n// 10 xrefs:\n// > d2i_RSA_PUBKEY_fp @ 0x106e430\n// > d2i_DSAPrivateKey_fp @ 0x106e4f4\n// > d2i_DSA_PUBKEY_fp @ 0x106e524\n// > d2i_EC_PUBKEY_fp @ 0x106e5b4\n// > d2i_ECPrivateKey_fp @ 0x106e5e4\n// > d2i_PKCS8_fp @ 0x106e754\n// > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x106e7b4\n// > d2i_PrivateKey_fp @ 0x106e84c\n// > d2i_PUBKEY_fp @ 0x106e87c\n// > <???> @ 0x104bf0\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:17:13 +0000\n// \n\n__int64 __fastcall ASN1_d2i_fp(\n        __int64 a1,\n        __int64 (__fastcall *a2)(__int64, unsigned __int64 *),\n        __int64 a3,\n        __int64 a4)\n{\n  void *v8; // x0\n  __int64 v9; // x0\n  _QWORD *v10; // x19\n  __int64 v11; // x20\n\n  v8 = BIO_s_file();\n  v9 = BIO_new((__int64)v8);\n  v10 = (_QWORD *)v9;\n  if ( v9 )\n  {\n    BIO_ctrl(v9, 0x6Au, 0, a3);\n    v11 = ASN1_d2i_bio(a1, a2, (__int64)v10, a4);\n    BIO_free(v10);\n    return v11;\n  }\n  else\n  {\n    ERR_put_error(13, 109, 7, (__int64)\"crypto/asn1/a_d2i_fp.c\", 28);\n    return 0;\n  }\n}", "assembly": "; \n; ASN1_d2i_fp from 0x10866f8 to 0x1086798 (160 bytes)\n; \n; 10 xrefs:\n; > d2i_RSA_PUBKEY_fp @ 0x106e430\n; > d2i_DSAPrivateKey_fp @ 0x106e4f4\n; > d2i_DSA_PUBKEY_fp @ 0x106e524\n; > d2i_EC_PUBKEY_fp @ 0x106e5b4\n; > d2i_ECPrivateKey_fp @ 0x106e5e4\n; > d2i_PKCS8_fp @ 0x106e754\n; > d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x106e7b4\n; > d2i_PrivateKey_fp @ 0x106e84c\n; > d2i_PUBKEY_fp @ 0x106e87c\n; > <???> @ 0x104bf0\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:17:13 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x10866f8\nMOV             X29, SP                                                ; +0x4, 0x10866fc\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x1086700\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x1086704\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x1086708\nMOV             X21, X1                                                ; +0x14, 0x108670c\nMOV             X23, X2                                                ; +0x18, 0x1086710\nMOV             X20, X3                                                ; +0x1c, 0x1086714\nMOV             X22, X0                                                ; +0x20, 0x1086718\nBL              BIO_s_file                                             ; +0x24, 0x108671c\nBL              BIO_new                                                ; +0x28, 0x1086720\nMOV             X19, X0                                                ; +0x2c, 0x1086724\nCBZ             X0, loc_1086774                                        ; +0x30, 0x1086728\nMOV             W1, #0x6A ; 'j'                                        ; +0x34, 0x108672c\nMOV             X2, #0                                                 ; +0x38, 0x1086730\nMOV             X3, X23                                                ; +0x3c, 0x1086734\nBL              BIO_ctrl                                               ; +0x40, 0x1086738\nMOV             X3, X20                                                ; +0x44, 0x108673c\nMOV             X1, X21                                                ; +0x48, 0x1086740\nMOV             X2, X19                                                ; +0x4c, 0x1086744\nMOV             X0, X22                                                ; +0x50, 0x1086748\nBL              ASN1_d2i_bio                                           ; +0x54, 0x108674c\nMOV             X20, X0                                                ; +0x58, 0x1086750\nMOV             X0, X19                                                ; +0x5c, 0x1086754\nBL              BIO_free                                               ; +0x60, 0x1086758\nMOV             X0, X20                                                ; +0x64, 0x108675c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0x1086760\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x6c, 0x1086764\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x70, 0x1086768\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x74, 0x108676c\nRET                                                                    ; +0x78, 0x1086770\nADRP            X3, #aCryptoAsn1AD2i@PAGE; \"crypto/asn1/a_d2i_fp.c\"    ; +0x7c, 0x1086774\nMOV             W0, #0xD                                               ; +0x80, 0x1086778\nMOV             W1, #0x6D ; 'm'                                        ; +0x84, 0x108677c\nMOV             W2, #7                                                 ; +0x88, 0x1086780\nADD             X3, X3, #aCryptoAsn1AD2i@PAGEOFF; \"crypto/asn1/a_d2i_fp.c\" ; +0x8c, 0x1086784\nMOV             W4, #0x1C                                              ; +0x90, 0x1086788\nBL              ERR_put_error                                          ; +0x94, 0x108678c\nMOV             X0, X19                                                ; +0x98, 0x1086790\nB               loc_1086760                                            ; +0x9c, 0x1086794", "xrefs": ["d2i_RSA_PUBKEY_fp @ 0x106e430", "d2i_DSAPrivateKey_fp @ 0x106e4f4", "d2i_DSA_PUBKEY_fp @ 0x106e524", "d2i_EC_PUBKEY_fp @ 0x106e5b4", "d2i_ECPrivateKey_fp @ 0x106e5e4", "d2i_PKCS8_fp @ 0x106e754", "d2i_PKCS8_PRIV_KEY_INFO_fp @ 0x106e7b4", "d2i_PrivateKey_fp @ 0x106e84c", "d2i_PUBKEY_fp @ 0x106e87c", "<???> @ 0x104bf0"], "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"}