{"type": "func", "start": 14291664, "end": 14291796, "name": "ERR_get_next_error_library", "pseudocode": "// \n// ERR_get_next_error_library from 0xda12d0 to 0xda1354 (132 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x4c458\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 ERR_get_next_error_library()\n{\n  unsigned int v0; // w19\n  unsigned int v2; // w19\n\n  v0 = CRYPTO_THREAD_run_once(&unk_125DE78, sub_D9F548);\n  if ( !v0 )\n    return v0;\n  v0 = dword_125D668;\n  if ( !dword_125D668 )\n    return v0;\n  CRYPTO_THREAD_write_lock(qword_125D660);\n  v2 = dword_1238A44++;\n  CRYPTO_THREAD_unlock(qword_125D660);\n  return v2;\n}", "assembly": "; \n; ERR_get_next_error_library from 0xda12d0 to 0xda1354 (132 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x4c458\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_30]!                                ; +0x0, 0xda12d0\nADRP            X1, #sub_D9F548@PAGE                                   ; +0x4, 0xda12d4\nMOV             X29, SP                                                ; +0x8, 0xda12d8\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0xda12dc\nADRP            X21, #qword_125D660@PAGE                               ; +0x10, 0xda12e0\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x14, 0xda12e4\nADD             X20, X21, #qword_125D660@PAGEOFF                       ; +0x18, 0xda12e8\nADD             X1, X1, #sub_D9F548@PAGEOFF                            ; +0x1c, 0xda12ec\nADD             X0, X20, #0x818                                        ; +0x20, 0xda12f0\nBL              CRYPTO_THREAD_run_once                                 ; +0x24, 0xda12f4\nMOV             W19, W0                                                ; +0x28, 0xda12f8\nCBZ             W0, loc_DA1308                                         ; +0x2c, 0xda12fc\nLDR             W19, [X20,#(dword_125D668 - 0x125D660)]                ; +0x30, 0xda1300\nCBNZ            W19, loc_DA131C                                        ; +0x34, 0xda1304\nMOV             W0, W19                                                ; +0x38, 0xda1308\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x3c, 0xda130c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x40, 0xda1310\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x44, 0xda1314\nRET                                                                    ; +0x48, 0xda1318\nLDR             X0, [X21,#qword_125D660@PAGEOFF]                       ; +0x4c, 0xda131c\nBL              CRYPTO_THREAD_write_lock                               ; +0x50, 0xda1320\nADRP            X1, #dword_1238A40@PAGE                                ; +0x54, 0xda1324\nLDR             X0, [X21,#qword_125D660@PAGEOFF]                       ; +0x58, 0xda1328\nADD             X1, X1, #dword_1238A40@PAGEOFF                         ; +0x5c, 0xda132c\nLDR             W19, [X1,#(dword_1238A44 - 0x1238A40)]                 ; +0x60, 0xda1330\nADD             W2, W19, #1                                            ; +0x64, 0xda1334\nSTR             W2, [X1,#(dword_1238A44 - 0x1238A40)]                  ; +0x68, 0xda1338\nBL              CRYPTO_THREAD_unlock                                   ; +0x6c, 0xda133c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x70, 0xda1340\nMOV             W0, W19                                                ; +0x74, 0xda1344\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x78, 0xda1348\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0xda134c\nRET                                                                    ; +0x80, 0xda1350", "xrefs": ["<???> @ 0x4c458"], "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"}