{"type": "func", "start": 16903276, "end": 16903596, "name": "ERR_get_error_line_data", "pseudocode": "// \n// ERR_get_error_line_data from 0x101ec6c to 0x101edac (320 bytes)\n// \n// 2 xrefs:\n// > ERR_print_errors_cb @ 0x10dc7e4\n// > <???> @ 0xc9928\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_data(_QWORD *a1, _DWORD *a2, _QWORD *a3, _DWORD *a4)\n{\n  __int64 state; // x0\n  int v7; // w4\n  __int64 v8; // x6\n  int v9; // w4\n  _QWORD *v10; // x21\n  __int64 v11; // x19\n  __int64 v12; // x2\n  __int64 v13; // x0\n  __int64 v15; // x20\n\n  state = ERR_get_state();\n  v7 = *(_DWORD *)(state + 580);\n  v8 = state;\n  if ( v7 == *(_DWORD *)(state + 576) )\n    return 0;\n  v9 = (v7 + 1) % 16;\n  v10 = (_QWORD *)(state + 8LL * v9);\n  v11 = v10[8];\n  *(_DWORD *)(state + 580) = v9;\n  v10[8] = 0;\n  if ( a1 && a2 )\n  {\n    v12 = v10[48];\n    if ( v12 )\n    {\n      *a1 = v12;\n      *a2 = *(_DWORD *)(state + 4 * (v9 + 128LL));\n    }\n    else\n    {\n      *a1 = \"NA\";\n      *a2 = 0;\n    }\n  }\n  if ( a3 )\n  {\n    v13 = v10[24];\n    if ( v13 )\n    {\n      *a3 = v13;\n      if ( a4 )\n      {\n        *a4 = *(_DWORD *)(v8 + 4 * (v9 + 80LL));\n        return v11;\n      }\n      return v11;\n    }\n    *a3 = &byte_11B8890;\n    if ( !a4 )\n      return v11;\n    *a4 = 0;\n    return v11;\n  }\n  else\n  {\n    v15 = state + 4LL * v9;\n    if ( (*(_DWORD *)(v15 + 320) & 1) != 0 )\n    {\n      CRYPTO_free(v10[24], \"crypto/err/err.c\", 481);\n      v10[24] = 0;\n    }\n    *(_DWORD *)(v15 + 320) = 0;\n    return v11;\n  }\n}", "assembly": "; \n; ERR_get_error_line_data from 0x101ec6c to 0x101edac (320 bytes)\n; \n; 2 xrefs:\n; > ERR_print_errors_cb @ 0x10dc7e4\n; > <???> @ 0xc9928\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, 0x101ec6c\nMOV             X29, SP                                                ; +0x4, 0x101ec70\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x101ec74\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0xc, 0x101ec78\nMOV             X20, X0                                                ; +0x10, 0x101ec7c\nSTR             X1, [X29,#0x40+var_10]                                 ; +0x14, 0x101ec80\nMOV             X22, X2                                                ; +0x18, 0x101ec84\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x1c, 0x101ec88\nBL              ERR_get_state                                          ; +0x20, 0x101ec8c\nLDR             W4, [X0,#0x244]                                        ; +0x24, 0x101ec90\nLDR             W5, [X0,#0x240]                                        ; +0x28, 0x101ec94\nMOV             X6, X0                                                 ; +0x2c, 0x101ec98\nCMP             W4, W5                                                 ; +0x30, 0x101ec9c\nB.EQ            loc_101ED2C                                            ; +0x34, 0x101eca0\nADD             W5, W4, #1                                             ; +0x38, 0x101eca4\nLDR             X3, [X29,#0x40+var_8]                                  ; +0x3c, 0x101eca8\nASR             W4, W5, #0x1F                                          ; +0x40, 0x101ecac\nLSR             W4, W4, #0x1C                                          ; +0x44, 0x101ecb0\nADD             W5, W5, W4                                             ; +0x48, 0x101ecb4\nAND             W5, W5, #0xF                                           ; +0x4c, 0x101ecb8\nSUB             W4, W5, W4                                             ; +0x50, 0x101ecbc\nSXTW            X5, W4                                                 ; +0x54, 0x101ecc0\nADD             X21, X0, X5,LSL#3                                      ; +0x58, 0x101ecc4\nLDR             X19, [X21,#0x40]                                       ; +0x5c, 0x101ecc8\nSTR             W4, [X0,#0x244]                                        ; +0x60, 0x101eccc\nSTR             XZR, [X21,#0x40]                                       ; +0x64, 0x101ecd0\nCBZ             X20, loc_101ECF8                                       ; +0x68, 0x101ecd4\nLDR             X1, [X29,#0x40+var_10]                                 ; +0x6c, 0x101ecd8\nCBZ             X1, loc_101ECF8                                        ; +0x70, 0x101ecdc\nLDR             X2, [X21,#0x180]                                       ; +0x74, 0x101ece0\nCBZ             X2, loc_101ED7C                                        ; +0x78, 0x101ece4\nADD             X0, X5, #0x80                                          ; +0x7c, 0x101ece8\nSTR             X2, [X20]                                              ; +0x80, 0x101ecec\nLDR             W0, [X6,X0,LSL#2]                                      ; +0x84, 0x101ecf0\nSTR             W0, [X1]                                               ; +0x88, 0x101ecf4\nCBZ             X22, loc_101ED40                                       ; +0x8c, 0x101ecf8\nLDR             X0, [X21,#0xC0]                                        ; +0x90, 0x101ecfc\nCBZ             X0, loc_101ED58                                        ; +0x94, 0x101ed00\nSTR             X0, [X22]                                              ; +0x98, 0x101ed04\nCBZ             X3, loc_101ED68                                        ; +0x9c, 0x101ed08\nADD             X5, X5, #0x50 ; 'P'                                    ; +0xa0, 0x101ed0c\nMOV             X0, X19                                                ; +0xa4, 0x101ed10\nLDR             W1, [X6,X5,LSL#2]                                      ; +0xa8, 0x101ed14\nSTR             W1, [X3]                                               ; +0xac, 0x101ed18\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb0, 0x101ed1c\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb4, 0x101ed20\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0x101ed24\nRET                                                                    ; +0xbc, 0x101ed28\nMOV             X0, #0                                                 ; +0xc0, 0x101ed2c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc4, 0x101ed30\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xc8, 0x101ed34\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xcc, 0x101ed38\nRET                                                                    ; +0xd0, 0x101ed3c\nADD             X20, X6, X5,LSL#2                                      ; +0xd4, 0x101ed40\nLDR             W0, [X20,#0x140]                                       ; +0xd8, 0x101ed44\nTBNZ            W0, #0, loc_101ED90                                    ; +0xdc, 0x101ed48\nSTR             WZR, [X20,#0x140]                                      ; +0xe0, 0x101ed4c\nMOV             X0, X19                                                ; +0xe4, 0x101ed50\nB               loc_101ED1C                                            ; +0xe8, 0x101ed54\nADRL            X1, byte_11B8890                                       ; +0xec, 0x101ed58\nSTR             X1, [X22]                                              ; +0xf4, 0x101ed60\nCBNZ            X3, loc_101ED70                                        ; +0xf8, 0x101ed64\nMOV             X0, X19                                                ; +0xfc, 0x101ed68\nB               loc_101ED1C                                            ; +0x100, 0x101ed6c\nSTR             W0, [X3]                                               ; +0x104, 0x101ed70\nMOV             X0, X19                                                ; +0x108, 0x101ed74\nB               loc_101ED1C                                            ; +0x10c, 0x101ed78\nADRL            X0, aNa; \"NA\"                                          ; +0x110, 0x101ed7c\nSTR             X0, [X20]                                              ; +0x118, 0x101ed84\nSTR             W2, [X1]                                               ; +0x11c, 0x101ed88\nB               loc_101ECF8                                            ; +0x120, 0x101ed8c\nLDR             X0, [X21,#0xC0]                                        ; +0x124, 0x101ed90\nADRL            X1, aCryptoErrErrC; \"crypto/err/err.c\"                 ; +0x128, 0x101ed94\nMOV             W2, #0x1E1                                             ; +0x130, 0x101ed9c\nBL              CRYPTO_free                                            ; +0x134, 0x101eda0\nSTR             X22, [X21,#0xC0]                                       ; +0x138, 0x101eda4\nB               loc_101ED4C                                            ; +0x13c, 0x101eda8", "xrefs": ["ERR_print_errors_cb @ 0x10dc7e4", "<???> @ 0xc9928"], "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"}