{"type": "func", "start": 14291404, "end": 14291664, "name": "ERR_peek_error_line_data", "pseudocode": "// \n// ERR_peek_error_line_data from 0xda11cc to 0xda12d0 (260 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7a1a8\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_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  __int64 v8; // x4\n  _QWORD *v9; // x0\n  __int64 v10; // x6\n  __int64 v11; // x8\n  __int64 v12; // x0\n  __int64 result; // x0\n\n  state = ERR_get_state();\n  v6 = *(_DWORD *)(state + 580);\n  v7 = state;\n  if ( v6 == *(_DWORD *)(state + 576) )\n    return 0;\n  v8 = (v6 + 1) % 16;\n  v9 = (_QWORD *)(state + 8 * v8);\n  v10 = v9[8];\n  if ( a1 && a2 )\n  {\n    v11 = v9[48];\n    if ( v11 )\n    {\n      *a1 = v11;\n      *a2 = *(_DWORD *)(v7 + 4 * (v8 + 128));\n    }\n    else\n    {\n      *a1 = \"NA\";\n      *a2 = 0;\n    }\n  }\n  if ( !a3 )\n    return v10;\n  v12 = v9[24];\n  if ( !v12 )\n  {\n    *a3 = &byte_F288A0;\n    if ( a4 )\n    {\n      *a4 = 0;\n      return v10;\n    }\n    return v10;\n  }\n  *a3 = v12;\n  if ( !a4 )\n    return v10;\n  result = v10;\n  *a4 = *(_DWORD *)(v7 + 4 * (v8 + 80));\n  return result;\n}", "assembly": "; \n; ERR_peek_error_line_data from 0xda11cc to 0xda12d0 (260 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7a1a8\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, 0xda11cc\nMOV             X29, SP                                                ; +0x4, 0xda11d0\nSTR             X19, [SP,#0x40+var_30]                                 ; +0x8, 0xda11d4\nMOV             X19, X0                                                ; +0xc, 0xda11d8\nSTR             X1, [X29,#0x40+var_18]                                 ; +0x10, 0xda11dc\nSTR             X2, [X29,#0x40+var_10]                                 ; +0x14, 0xda11e0\nSTR             X3, [X29,#0x40+var_8]                                  ; +0x18, 0xda11e4\nBL              ERR_get_state                                          ; +0x1c, 0xda11e8\nLDR             W4, [X0,#0x244]                                        ; +0x20, 0xda11ec\nMOV             X5, X0                                                 ; +0x24, 0xda11f0\nLDR             W6, [X0,#0x240]                                        ; +0x28, 0xda11f4\nCMP             W4, W6                                                 ; +0x2c, 0xda11f8\nB.EQ            loc_DA1280                                             ; +0x30, 0xda11fc\nADD             W4, W4, #1                                             ; +0x34, 0xda1200\nLDR             X3, [X29,#0x40+var_8]                                  ; +0x38, 0xda1204\nASR             W6, W4, #0x1F                                          ; +0x3c, 0xda1208\nLDR             X2, [X29,#0x40+var_10]                                 ; +0x40, 0xda120c\nLSR             W6, W6, #0x1C                                          ; +0x44, 0xda1210\nADD             W4, W4, W6                                             ; +0x48, 0xda1214\nAND             W4, W4, #0xF                                           ; +0x4c, 0xda1218\nSUB             W4, W4, W6                                             ; +0x50, 0xda121c\nSXTW            X4, W4                                                 ; +0x54, 0xda1220\nADD             X0, X0, X4,LSL#3                                       ; +0x58, 0xda1224\nLDR             X6, [X0,#0x40]                                         ; +0x5c, 0xda1228\nCBZ             X19, loc_DA1250                                        ; +0x60, 0xda122c\nLDR             X1, [X29,#0x40+var_18]                                 ; +0x64, 0xda1230\nCBZ             X1, loc_DA1250                                         ; +0x68, 0xda1234\nLDR             X8, [X0,#0x180]                                        ; +0x6c, 0xda1238\nCBZ             X8, loc_DA12BC                                         ; +0x70, 0xda123c\nADD             X7, X4, #0x80                                          ; +0x74, 0xda1240\nSTR             X8, [X19]                                              ; +0x78, 0xda1244\nLDR             W7, [X5,X7,LSL#2]                                      ; +0x7c, 0xda1248\nSTR             W7, [X1]                                               ; +0x80, 0xda124c\nCBZ             X2, loc_DA12A0                                         ; +0x84, 0xda1250\nLDR             X0, [X0,#0xC0]                                         ; +0x88, 0xda1254\nCBZ             X0, loc_DA1290                                         ; +0x8c, 0xda1258\nSTR             X0, [X2]                                               ; +0x90, 0xda125c\nCBZ             X3, loc_DA12A0                                         ; +0x94, 0xda1260\nADD             X4, X4, #0x50 ; 'P'                                    ; +0x98, 0xda1264\nMOV             X0, X6                                                 ; +0x9c, 0xda1268\nLDR             W1, [X5,X4,LSL#2]                                      ; +0xa0, 0xda126c\nSTR             W1, [X3]                                               ; +0xa4, 0xda1270\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xa8, 0xda1274\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xac, 0xda1278\nRET                                                                    ; +0xb0, 0xda127c\nMOV             X0, #0                                                 ; +0xb4, 0xda1280\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xb8, 0xda1284\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xbc, 0xda1288\nRET                                                                    ; +0xc0, 0xda128c\nADRL            X1, byte_F288A0                                        ; +0xc4, 0xda1290\nSTR             X1, [X2]                                               ; +0xcc, 0xda1298\nCBNZ            X3, loc_DA12B0                                         ; +0xd0, 0xda129c\nMOV             X0, X6                                                 ; +0xd4, 0xda12a0\nLDR             X19, [SP,#0x40+var_30]                                 ; +0xd8, 0xda12a4\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xdc, 0xda12a8\nRET                                                                    ; +0xe0, 0xda12ac\nSTR             W0, [X3]                                               ; +0xe4, 0xda12b0\nMOV             X0, X6                                                 ; +0xe8, 0xda12b4\nB               loc_DA1274                                             ; +0xec, 0xda12b8\nADRL            X7, aNa; \"NA\"                                          ; +0xf0, 0xda12bc\nSTR             X7, [X19]                                              ; +0xf8, 0xda12c4\nSTR             W8, [X1]                                               ; +0xfc, 0xda12c8\nB               loc_DA1250                                             ; +0x100, 0xda12cc", "xrefs": ["<???> @ 0x7a1a8"], "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"}