{"type": "func", "start": 16899632, "end": 16899796, "name": "ERR_lib_error_string", "pseudocode": "// \n// ERR_lib_error_string from 0x101de30 to 0x101ded4 (164 bytes)\n// \n// 2 xrefs:\n// > ERR_error_string_n @ 0x101e098\n// > <???> @ 0x832c0\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:09 +0000\n// \n\n__int64 __fastcall ERR_lib_error_string(int a1)\n{\n  __int64 v2; // x19\n  __int64 v4; // [xsp+30h] [xbp+30h] BYREF\n\n  if ( !(unsigned int)CRYPTO_THREAD_run_once(&unk_1566C78, sub_101D8A8) || !dword_1566468 )\n    return 0;\n  v4 = a1 & 0xFF000000;\n  CRYPTO_THREAD_read_lock(qword_1566460);\n  if ( !qword_1566C80 )\n  {\n    CRYPTO_THREAD_unlock(qword_1566460);\n    return 0;\n  }\n  v2 = OPENSSL_LH_retrieve(qword_1566C80, &v4);\n  CRYPTO_THREAD_unlock(qword_1566460);\n  if ( !v2 )\n    return 0;\n  return *(_QWORD *)(v2 + 8);\n}", "assembly": "; \n; ERR_lib_error_string from 0x101de30 to 0x101ded4 (164 bytes)\n; \n; 2 xrefs:\n; > ERR_error_string_n @ 0x101e098\n; > <???> @ 0x832c0\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:09 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x101de30\nADRP            X1, #sub_101D8A8@PAGE                                  ; +0x4, 0x101de34\nMOV             X29, SP                                                ; +0x8, 0x101de38\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x101de3c\nADRP            X20, #qword_1566460@PAGE                               ; +0x10, 0x101de40\nSTR             X21, [SP,#0x40+var_20]                                 ; +0x14, 0x101de44\nADD             X19, X20, #qword_1566460@PAGEOFF                       ; +0x18, 0x101de48\nMOV             X21, X0                                                ; +0x1c, 0x101de4c\nADD             X1, X1, #sub_101D8A8@PAGEOFF                           ; +0x20, 0x101de50\nADD             X0, X19, #0x818                                        ; +0x24, 0x101de54\nBL              CRYPTO_THREAD_run_once                                 ; +0x28, 0x101de58\nCBZ             W0, loc_101DEB0                                        ; +0x2c, 0x101de5c\nLDR             W0, [X19,#(dword_1566468 - 0x1566460)]                 ; +0x30, 0x101de60\nCBZ             W0, loc_101DEB0                                        ; +0x34, 0x101de64\nLDR             X0, [X20,#qword_1566460@PAGEOFF]                       ; +0x38, 0x101de68\nAND             X21, X21, #0xFF000000                                  ; +0x3c, 0x101de6c\nSTR             X21, [X29,#0x40+var_10]                                ; +0x40, 0x101de70\nBL              CRYPTO_THREAD_read_lock                                ; +0x44, 0x101de74\nLDR             X19, [X19,#(qword_1566C80 - 0x1566460)]                ; +0x48, 0x101de78\nCBZ             X19, loc_101DEC4                                       ; +0x4c, 0x101de7c\nMOV             X0, X19                                                ; +0x50, 0x101de80\nADD             X1, X29, #0x40+var_10                                  ; +0x54, 0x101de84\nBL              OPENSSL_LH_retrieve                                    ; +0x58, 0x101de88\nMOV             X19, X0                                                ; +0x5c, 0x101de8c\nLDR             X0, [X20,#qword_1566460@PAGEOFF]                       ; +0x60, 0x101de90\nBL              CRYPTO_THREAD_unlock                                   ; +0x64, 0x101de94\nCBZ             X19, loc_101DEB0                                       ; +0x68, 0x101de98\nLDR             X0, [X19,#8]                                           ; +0x6c, 0x101de9c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x70, 0x101dea0\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x74, 0x101dea4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x78, 0x101dea8\nRET                                                                    ; +0x7c, 0x101deac\nMOV             X0, #0                                                 ; +0x80, 0x101deb0\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x84, 0x101deb4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0x101deb8\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0x101debc\nRET                                                                    ; +0x90, 0x101dec0\nLDR             X0, [X20,#qword_1566460@PAGEOFF]                       ; +0x94, 0x101dec4\nBL              CRYPTO_THREAD_unlock                                   ; +0x98, 0x101dec8\nMOV             X0, X19                                                ; +0x9c, 0x101decc\nB               loc_101DEA0                                            ; +0xa0, 0x101ded0", "xrefs": ["ERR_error_string_n @ 0x101e098", "<???> @ 0x832c0"], "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"}