{"type": "func", "start": 8369268, "end": 8369368, "name": "ERR_get_next_error_library", "pseudocode": "// \n// ERR_get_next_error_library from 0x7fb474 to 0x7fb4d8 (100 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x629bc\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\nint ERR_get_next_error_library()\n{\n  int v0; // r4\n  int v2; // r4\n\n  v0 = CRYPTO_THREAD_run_once(&unk_AD2EC0, sub_7F9708);\n  if ( !v0 )\n    return v0;\n  v0 = dword_AD2EB4;\n  if ( !dword_AD2EB4 )\n    return v0;\n  CRYPTO_THREAD_write_lock(dword_AD2EB0);\n  v2 = dword_AC0B08++;\n  CRYPTO_THREAD_unlock(dword_AD2EB0);\n  return v2;\n}", "assembly": "; \n; ERR_get_next_error_library from 0x7fb474 to 0x7fb4d8 (100 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x629bc\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x7fb474\nLDR             R5, =(dword_AD2EB0 - 0x7FB488)                         ; +0x4, 0x7fb478\nLDR             R1, =(sub_7F9708 - 0x7FB48C)                           ; +0x8, 0x7fb47c\nADD             R5, PC, R5; dword_AD2EB0                               ; +0xc, 0x7fb480\nADD             R1, PC, R1; sub_7F9708                                 ; +0x10, 0x7fb484\nADD             R0, R5, #(unk_AD2EC0 - 0xAD2EB0)                       ; +0x14, 0x7fb488\nBL              CRYPTO_THREAD_run_once                                 ; +0x18, 0x7fb48c\nSUBS            R4, R0, #0                                             ; +0x1c, 0x7fb490\nBEQ             loc_7FB4A4                                             ; +0x20, 0x7fb494\nLDR             R4, [R5,#(dword_AD2EB4 - 0xAD2EB0)]                    ; +0x24, 0x7fb498\nCMP             R4, #0                                                 ; +0x28, 0x7fb49c\nBNE             loc_7FB4AC                                             ; +0x2c, 0x7fb4a0\nMOV             R0, R4                                                 ; +0x30, 0x7fb4a4\nPOP             {R3-R5,PC}                                             ; +0x34, 0x7fb4a8\nLDR             R0, [R5]                                               ; +0x38, 0x7fb4ac\nBL              CRYPTO_THREAD_write_lock                               ; +0x3c, 0x7fb4b0\nLDR             R3, =(dword_AC0B04 - 0x7FB4C4)                         ; +0x40, 0x7fb4b4\nLDR             R0, [R5]                                               ; +0x44, 0x7fb4b8\nADD             R3, PC, R3; dword_AC0B04                               ; +0x48, 0x7fb4bc\nLDR             R4, [R3,#(dword_AC0B08 - 0xAC0B04)]                    ; +0x4c, 0x7fb4c0\nADD             R2, R4, #1                                             ; +0x50, 0x7fb4c4\nSTR             R2, [R3,#(dword_AC0B08 - 0xAC0B04)]                    ; +0x54, 0x7fb4c8\nBL              CRYPTO_THREAD_unlock                                   ; +0x58, 0x7fb4cc\nMOV             R0, R4                                                 ; +0x5c, 0x7fb4d0\nPOP             {R3-R5,PC}                                             ; +0x60, 0x7fb4d4", "xrefs": ["<???> @ 0x629bc"], "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"}