{"type": "func", "start": 16904400, "end": 16904628, "name": "ERR_get_error_line", "pseudocode": "// \n// ERR_get_error_line from 0x101f0d0 to 0x101f1b4 (228 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x80188\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_get_error_line(_QWORD *a1, _DWORD *a2)\n{\n  __int64 state; // x0\n  int v4; // w2\n  int v5; // w2\n  __int64 v6; // x3\n  _QWORD *v7; // x21\n  __int64 v8; // x20\n  __int64 v9; // x2\n  __int64 v10; // x19\n\n  state = ERR_get_state();\n  v4 = *(_DWORD *)(state + 580);\n  if ( v4 == *(_DWORD *)(state + 576) )\n    return 0;\n  v5 = (v4 + 1) % 16;\n  v6 = v5;\n  v7 = (_QWORD *)(state + 8LL * v5);\n  v8 = v7[8];\n  *(_DWORD *)(state + 580) = v5;\n  v7[8] = 0;\n  if ( a1 && a2 )\n  {\n    v9 = v7[48];\n    if ( v9 )\n    {\n      *a1 = v9;\n      *a2 = *(_DWORD *)(state + 4 * (v6 + 128));\n    }\n    else\n    {\n      *a1 = \"NA\";\n      *a2 = 0;\n    }\n  }\n  v10 = state + 4 * v6;\n  if ( (*(_DWORD *)(v10 + 320) & 1) != 0 )\n  {\n    CRYPTO_free(v7[24], \"crypto/err/err.c\", 481);\n    v7[24] = 0;\n  }\n  *(_DWORD *)(v10 + 320) = 0;\n  return v8;\n}", "assembly": "; \n; ERR_get_error_line from 0x101f0d0 to 0x101f1b4 (228 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x80188\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, 0x101f0d0\nMOV             X29, SP                                                ; +0x4, 0x101f0d4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x101f0d8\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0x101f0dc\nMOV             X19, X0                                                ; +0x10, 0x101f0e0\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x14, 0x101f0e4\nBL              ERR_get_state                                          ; +0x18, 0x101f0e8\nLDR             W2, [X0,#0x244]                                        ; +0x1c, 0x101f0ec\nLDR             W3, [X0,#0x240]                                        ; +0x20, 0x101f0f0\nCMP             W2, W3                                                 ; +0x24, 0x101f0f4\nB.EQ            loc_101F170                                            ; +0x28, 0x101f0f8\nADD             W3, W2, #1                                             ; +0x2c, 0x101f0fc\nASR             W2, W3, #0x1F                                          ; +0x30, 0x101f100\nLSR             W2, W2, #0x1C                                          ; +0x34, 0x101f104\nADD             W3, W3, W2                                             ; +0x38, 0x101f108\nAND             W3, W3, #0xF                                           ; +0x3c, 0x101f10c\nSUB             W2, W3, W2                                             ; +0x40, 0x101f110\nSXTW            X3, W2                                                 ; +0x44, 0x101f114\nADD             X21, X0, X3,LSL#3                                      ; +0x48, 0x101f118\nLDR             X20, [X21,#0x40]                                       ; +0x4c, 0x101f11c\nSTR             W2, [X0,#0x244]                                        ; +0x50, 0x101f120\nSTR             XZR, [X21,#0x40]                                       ; +0x54, 0x101f124\nCBZ             X19, loc_101F14C                                       ; +0x58, 0x101f128\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x5c, 0x101f12c\nCBZ             X1, loc_101F14C                                        ; +0x60, 0x101f130\nLDR             X2, [X21,#0x180]                                       ; +0x64, 0x101f134\nCBZ             X2, loc_101F1A0                                        ; +0x68, 0x101f138\nADD             X4, X3, #0x80                                          ; +0x6c, 0x101f13c\nSTR             X2, [X19]                                              ; +0x70, 0x101f140\nLDR             W2, [X0,X4,LSL#2]                                      ; +0x74, 0x101f144\nSTR             W2, [X1]                                               ; +0x78, 0x101f148\nADD             X19, X0, X3,LSL#2                                      ; +0x7c, 0x101f14c\nLDR             W0, [X19,#0x140]                                       ; +0x80, 0x101f150\nTBNZ            W0, #0, loc_101F184                                    ; +0x84, 0x101f154\nSTR             WZR, [X19,#0x140]                                      ; +0x88, 0x101f158\nMOV             X0, X20                                                ; +0x8c, 0x101f15c\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x90, 0x101f160\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0x101f164\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x98, 0x101f168\nRET                                                                    ; +0x9c, 0x101f16c\nMOV             X0, #0                                                 ; +0xa0, 0x101f170\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xa4, 0x101f174\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa8, 0x101f178\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0x101f17c\nRET                                                                    ; +0xb0, 0x101f180\nLDR             X0, [X21,#0xC0]                                        ; +0xb4, 0x101f184\nADRL            X1, aCryptoErrErrC; \"crypto/err/err.c\"                 ; +0xb8, 0x101f188\nMOV             W2, #0x1E1                                             ; +0xc0, 0x101f190\nBL              CRYPTO_free                                            ; +0xc4, 0x101f194\nSTR             XZR, [X21,#0xC0]                                       ; +0xc8, 0x101f198\nB               loc_101F158                                            ; +0xcc, 0x101f19c\nADRL            X4, aNa; \"NA\"                                          ; +0xd0, 0x101f1a0\nSTR             X4, [X19]                                              ; +0xd8, 0x101f1a8\nSTR             W2, [X1]                                               ; +0xdc, 0x101f1ac\nB               loc_101F14C                                            ; +0xe0, 0x101f1b0", "xrefs": ["<???> @ 0x80188"], "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"}