{"type": "func", "start": 10551412, "end": 10551512, "name": "ERR_get_next_error_library", "pseudocode": "// \n// ERR_get_next_error_library from 0xa10074 to 0xa100d8 (100 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7c43c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:45 +0000\n// \n\nint ERR_get_next_error_library()\n{\n  int v0; // r4\n  int v2; // r4\n\n  v0 = CRYPTO_THREAD_run_once(&unk_D3414C, sub_A0E308);\n  if ( !v0 )\n    return v0;\n  v0 = dword_D34140;\n  if ( !dword_D34140 )\n    return v0;\n  CRYPTO_THREAD_write_lock(dword_D3413C);\n  v2 = dword_D25CE0++;\n  CRYPTO_THREAD_unlock(dword_D3413C);\n  return v2;\n}", "assembly": "; \n; ERR_get_next_error_library from 0xa10074 to 0xa100d8 (100 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7c43c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 12:07:45 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0xa10074\nLDR             R5, =(dword_D3413C - 0xA10088)                         ; +0x4, 0xa10078\nLDR             R1, =(sub_A0E308 - 0xA1008C)                           ; +0x8, 0xa1007c\nADD             R5, PC, R5; dword_D3413C                               ; +0xc, 0xa10080\nADD             R1, PC, R1; sub_A0E308                                 ; +0x10, 0xa10084\nADD             R0, R5, #(unk_D3414C - 0xD3413C)                       ; +0x14, 0xa10088\nBL              CRYPTO_THREAD_run_once                                 ; +0x18, 0xa1008c\nSUBS            R4, R0, #0                                             ; +0x1c, 0xa10090\nBEQ             loc_A100A4                                             ; +0x20, 0xa10094\nLDR             R4, [R5,#(dword_D34140 - 0xD3413C)]                    ; +0x24, 0xa10098\nCMP             R4, #0                                                 ; +0x28, 0xa1009c\nBNE             loc_A100AC                                             ; +0x2c, 0xa100a0\nMOV             R0, R4                                                 ; +0x30, 0xa100a4\nPOP             {R3-R5,PC}                                             ; +0x34, 0xa100a8\nLDR             R0, [R5]                                               ; +0x38, 0xa100ac\nBL              CRYPTO_THREAD_write_lock                               ; +0x3c, 0xa100b0\nLDR             R3, =(dword_D25CDC - 0xA100C4)                         ; +0x40, 0xa100b4\nLDR             R0, [R5]                                               ; +0x44, 0xa100b8\nADD             R3, PC, R3; dword_D25CDC                               ; +0x48, 0xa100bc\nLDR             R4, [R3,#(dword_D25CE0 - 0xD25CDC)]                    ; +0x4c, 0xa100c0\nADD             R2, R4, #1                                             ; +0x50, 0xa100c4\nSTR             R2, [R3,#(dword_D25CE0 - 0xD25CDC)]                    ; +0x54, 0xa100c8\nBL              CRYPTO_THREAD_unlock                                   ; +0x58, 0xa100cc\nMOV             R0, R4                                                 ; +0x5c, 0xa100d0\nPOP             {R3-R5,PC}                                             ; +0x60, 0xa100d4", "xrefs": ["<???> @ 0x7c43c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}