{"type": "func", "start": 14291168, "end": 14291404, "name": "ERR_peek_last_error_line_data", "pseudocode": "// \n// ERR_peek_last_error_line_data from 0xda10e0 to 0xda11cc (236 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7e1c8\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_peek_last_error_line_data(_QWORD *a1, _DWORD *a2, _QWORD *a3, _DWORD *a4)\n{\n  __int64 state; // x0\n  int v6; // w4\n  __int64 v7; // x5\n  _QWORD *v8; // x0\n  __int64 v9; // x6\n  __int64 v10; // x8\n  __int64 v11; // x0\n  __int64 result; // x0\n\n  state = ERR_get_state();\n  v6 = *(_DWORD *)(state + 576);\n  v7 = state;\n  if ( *(_DWORD *)(state + 580) == v6 )\n    return 0;\n  v8 = (_QWORD *)(state + 8LL * v6);\n  v9 = v8[8];\n  if ( a1 && a2 )\n  {\n    v10 = v8[48];\n    if ( v10 )\n    {\n      *a1 = v10;\n      *a2 = *(_DWORD *)(v7 + 4 * (v6 + 128LL));\n    }\n    else\n    {\n      *a1 = \"NA\";\n      *a2 = 0;\n    }\n  }\n  if ( !a3 )\n    return v9;\n  v11 = v8[24];\n  if ( !v11 )\n  {\n    *a3 = &byte_F288A0;\n    if ( a4 )\n    {\n      *a4 = 0;\n      return v9;\n    }\n    return v9;\n  }\n  *a3 = v11;\n  if ( !a4 )\n    return v9;\n  result = v9;\n  *a4 = *(_DWORD *)(v7 + 4 * (v6 + 80LL));\n  return result;\n}", "assembly": "; \n; ERR_peek_last_error_line_data from 0xda10e0 to 0xda11cc (236 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7e1c8\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, 0xda10e0\nMOV             X29, SP                                                ; +0x4, 0xda10e4\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x8, 0xda10e8\nMOV             X19, X0                                                ; +0xc, 0xda10ec\nSTR             X1, [X29,#0x40+var_18]                                 ; +0x10, 0xda10f0\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x14, 0xda10f4\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x18, 0xda10f8\nBL              ERR_get_state                                          ; +0x1c, 0xda10fc\nLDR             W4, [X0,#0x240]                                        ; +0x20, 0xda1100\nMOV             X5, X0                                                 ; +0x24, 0xda1104\nLDR             W6, [X0,#0x244]                                        ; +0x28, 0xda1108\nCMP             W6, W4                                                 ; +0x2c, 0xda110c\nB.EQ            loc_DA117C                                             ; +0x30, 0xda1110\nSXTW            X4, W4                                                 ; +0x34, 0xda1114\nLDR             X3, [X29,#0x40+var_8]                                  ; +0x38, 0xda1118\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x3c, 0xda111c\nADD             X0, X0, X4,LSL#3                                       ; +0x40, 0xda1120\nLDR             X6, [X0,#0x40]                                         ; +0x44, 0xda1124\nCBZ             X19, loc_DA114C                                        ; +0x48, 0xda1128\nLDR             X1, [X29,#0x40+var_18]                                 ; +0x4c, 0xda112c\nCBZ             X1, loc_DA114C                                         ; +0x50, 0xda1130\nLDR             X8, [X0,#0x180]                                        ; +0x54, 0xda1134\nCBZ             X8, loc_DA11B8                                         ; +0x58, 0xda1138\nADD             X7, X4, #0x80                                          ; +0x5c, 0xda113c\nSTR             X8, [X19]                                              ; +0x60, 0xda1140\nLDR             W7, [X5,X7,LSL#2]                                      ; +0x64, 0xda1144\nSTR             W7, [X1]                                               ; +0x68, 0xda1148\nCBZ             X2, loc_DA119C                                         ; +0x6c, 0xda114c\nLDR             X0, [X0,#0xC0]                                         ; +0x70, 0xda1150\nCBZ             X0, loc_DA118C                                         ; +0x74, 0xda1154\nSTR             X0, [X2]                                               ; +0x78, 0xda1158\nCBZ             X3, loc_DA119C                                         ; +0x7c, 0xda115c\nADD             X4, X4, #0x50 ; 'P'                                    ; +0x80, 0xda1160\nMOV             X0, X6                                                 ; +0x84, 0xda1164\nLDR             W1, [X5,X4,LSL#2]                                      ; +0x88, 0xda1168\nSTR             W1, [X3]                                               ; +0x8c, 0xda116c\nLDR             X19, [SP,#0x40+var_30]                                 ; +0x90, 0xda1170\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x94, 0xda1174\nRET                                                                    ; +0x98, 0xda1178\nMOV             X0, #0                                                 ; +0x9c, 0xda117c\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xa0, 0xda1180\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xa4, 0xda1184\nRET                                                                    ; +0xa8, 0xda1188\nADRL            X1, byte_F288A0                                        ; +0xac, 0xda118c\nSTR             X1, [X2]                                               ; +0xb4, 0xda1194\nCBNZ            X3, loc_DA11AC                                         ; +0xb8, 0xda1198\nMOV             X0, X6                                                 ; +0xbc, 0xda119c\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xc0, 0xda11a0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xc4, 0xda11a4\nRET                                                                    ; +0xc8, 0xda11a8\nSTR             W0, [X3]                                               ; +0xcc, 0xda11ac\nMOV             X0, X6                                                 ; +0xd0, 0xda11b0\nB               loc_DA1170                                             ; +0xd4, 0xda11b4\nADRL            X7, aNa; \"NA\"                                          ; +0xd8, 0xda11b8\nSTR             X7, [X19]                                              ; +0xe0, 0xda11c0\nSTR             W8, [X1]                                               ; +0xe4, 0xda11c4\nB               loc_DA114C                                             ; +0xe8, 0xda11c8", "xrefs": ["<???> @ 0x7e1c8"], "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"}