{"type": "func", "start": 14290288, "end": 14290516, "name": "ERR_get_error_line", "pseudocode": "// \n// ERR_get_error_line from 0xda0d70 to 0xda0e54 (228 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x5d9f0\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 __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 0xda0d70 to 0xda0e54 (228 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x5d9f0\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_40]!                                ; +0x0, 0xda0d70\nMOV             X29, SP                                                ; +0x4, 0xda0d74\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xda0d78\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0xda0d7c\nMOV             X19, X0                                                ; +0x10, 0xda0d80\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x14, 0xda0d84\nBL              ERR_get_state                                          ; +0x18, 0xda0d88\nLDR             W2, [X0,#0x244]                                        ; +0x1c, 0xda0d8c\nLDR             W3, [X0,#0x240]                                        ; +0x20, 0xda0d90\nCMP             W2, W3                                                 ; +0x24, 0xda0d94\nB.EQ            loc_DA0E10                                             ; +0x28, 0xda0d98\nADD             W3, W2, #1                                             ; +0x2c, 0xda0d9c\nASR             W2, W3, #0x1F                                          ; +0x30, 0xda0da0\nLSR             W2, W2, #0x1C                                          ; +0x34, 0xda0da4\nADD             W3, W3, W2                                             ; +0x38, 0xda0da8\nAND             W3, W3, #0xF                                           ; +0x3c, 0xda0dac\nSUB             W2, W3, W2                                             ; +0x40, 0xda0db0\nSXTW            X3, W2                                                 ; +0x44, 0xda0db4\nADD             X21, X0, X3,LSL#3                                      ; +0x48, 0xda0db8\nLDR             X20, [X21,#0x40]                                       ; +0x4c, 0xda0dbc\nSTR             W2, [X0,#0x244]                                        ; +0x50, 0xda0dc0\nSTR             XZR, [X21,#0x40]                                       ; +0x54, 0xda0dc4\nCBZ             X19, loc_DA0DEC                                        ; +0x58, 0xda0dc8\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x5c, 0xda0dcc\nCBZ             X1, loc_DA0DEC                                         ; +0x60, 0xda0dd0\nLDR             X2, [X21,#0x180]                                       ; +0x64, 0xda0dd4\nCBZ             X2, loc_DA0E40                                         ; +0x68, 0xda0dd8\nADD             X4, X3, #0x80                                          ; +0x6c, 0xda0ddc\nSTR             X2, [X19]                                              ; +0x70, 0xda0de0\nLDR             W2, [X0,X4,LSL#2]                                      ; +0x74, 0xda0de4\nSTR             W2, [X1]                                               ; +0x78, 0xda0de8\nADD             X19, X0, X3,LSL#2                                      ; +0x7c, 0xda0dec\nLDR             W0, [X19,#0x140]                                       ; +0x80, 0xda0df0\nTBNZ            W0, #0, loc_DA0E24                                     ; +0x84, 0xda0df4\nSTR             WZR, [X19,#0x140]                                      ; +0x88, 0xda0df8\nMOV             X0, X20                                                ; +0x8c, 0xda0dfc\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x90, 0xda0e00\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0xda0e04\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x98, 0xda0e08\nRET                                                                    ; +0x9c, 0xda0e0c\nMOV             X0, #0                                                 ; +0xa0, 0xda0e10\nLDR             X21, [SP,#0x40+var_20]                                 ; +0xa4, 0xda0e14\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xa8, 0xda0e18\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0xda0e1c\nRET                                                                    ; +0xb0, 0xda0e20\nLDR             X0, [X21,#0xC0]                                        ; +0xb4, 0xda0e24\nADRL            X1, aCryptoErrErrC; \"crypto/err/err.c\"                 ; +0xb8, 0xda0e28\nMOV             W2, #0x1E1                                             ; +0xc0, 0xda0e30\nBL              CRYPTO_free                                            ; +0xc4, 0xda0e34\nSTR             XZR, [X21,#0xC0]                                       ; +0xc8, 0xda0e38\nB               loc_DA0DF8                                             ; +0xcc, 0xda0e3c\nADRL            X4, aNa; \"NA\"                                          ; +0xd0, 0xda0e40\nSTR             X4, [X19]                                              ; +0xd8, 0xda0e48\nSTR             W2, [X1]                                               ; +0xdc, 0xda0e4c\nB               loc_DA0DEC                                             ; +0xe0, 0xda0e50", "xrefs": ["<???> @ 0x5d9f0"], "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"}