{"type": "func", "start": 14290980, "end": 14291168, "name": "ERR_peek_error_line", "pseudocode": "// \n// ERR_peek_error_line from 0xda1024 to 0xda10e0 (188 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x7c218\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(_QWORD *a1, _DWORD *a2)\n{\n  __int64 state; // x0\n  int v4; // w2\n  __int64 v5; // x3\n  __int64 v6; // x2\n  __int64 v7; // x0\n  __int64 v8; // x4\n  __int64 v9; // x5\n  __int64 result; // x0\n\n  state = ERR_get_state();\n  v4 = *(_DWORD *)(state + 580);\n  v5 = state;\n  if ( v4 == *(_DWORD *)(state + 576) )\n    return 0;\n  v6 = (v4 + 1) % 16;\n  v7 = state + 8 * v6;\n  v8 = *(_QWORD *)(v7 + 64);\n  if ( !a1 || !a2 )\n    return *(_QWORD *)(v7 + 64);\n  v9 = *(_QWORD *)(v7 + 384);\n  if ( v9 )\n  {\n    *a1 = v9;\n    *a2 = *(_DWORD *)(v5 + 4 * (v6 + 128));\n    return v8;\n  }\n  else\n  {\n    result = *(_QWORD *)(v7 + 64);\n    *a1 = \"NA\";\n    *a2 = 0;\n  }\n  return result;\n}", "assembly": "; \n; ERR_peek_error_line from 0xda1024 to 0xda10e0 (188 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x7c218\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_30]!                                ; +0x0, 0xda1024\nMOV             X29, SP                                                ; +0x4, 0xda1028\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0xda102c\nMOV             X19, X0                                                ; +0xc, 0xda1030\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0xda1034\nBL              ERR_get_state                                          ; +0x14, 0xda1038\nLDR             W2, [X0,#0x244]                                        ; +0x18, 0xda103c\nMOV             X3, X0                                                 ; +0x1c, 0xda1040\nLDR             W4, [X0,#0x240]                                        ; +0x20, 0xda1044\nCMP             W2, W4                                                 ; +0x24, 0xda1048\nB.EQ            loc_DA10B8                                             ; +0x28, 0xda104c\nADD             W2, W2, #1                                             ; +0x2c, 0xda1050\nASR             W4, W2, #0x1F                                          ; +0x30, 0xda1054\nLSR             W4, W4, #0x1C                                          ; +0x34, 0xda1058\nADD             W2, W2, W4                                             ; +0x38, 0xda105c\nAND             W2, W2, #0xF                                           ; +0x3c, 0xda1060\nSUB             W2, W2, W4                                             ; +0x40, 0xda1064\nSXTW            X2, W2                                                 ; +0x44, 0xda1068\nADD             X0, X0, X2,LSL#3                                       ; +0x48, 0xda106c\nLDR             X4, [X0,#0x40]                                         ; +0x4c, 0xda1070\nCBZ             X19, loc_DA10A8                                        ; +0x50, 0xda1074\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x54, 0xda1078\nCBZ             X1, loc_DA10A8                                         ; +0x58, 0xda107c\nLDR             X5, [X0,#0x180]                                        ; +0x5c, 0xda1080\nCBZ             X5, loc_DA10C8                                         ; +0x60, 0xda1084\nADD             X2, X2, #0x80                                          ; +0x64, 0xda1088\nSTR             X5, [X19]                                              ; +0x68, 0xda108c\nMOV             X0, X4                                                 ; +0x6c, 0xda1090\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x70, 0xda1094\nLDR             W2, [X3,X2,LSL#2]                                      ; +0x74, 0xda1098\nSTR             W2, [X1]                                               ; +0x78, 0xda109c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0xda10a0\nRET                                                                    ; +0x80, 0xda10a4\nMOV             X0, X4                                                 ; +0x84, 0xda10a8\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x88, 0xda10ac\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x8c, 0xda10b0\nRET                                                                    ; +0x90, 0xda10b4\nMOV             X0, #0                                                 ; +0x94, 0xda10b8\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x98, 0xda10bc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x9c, 0xda10c0\nRET                                                                    ; +0xa0, 0xda10c4\nADRP            X2, #aNa@PAGE; \"NA\"                                    ; +0xa4, 0xda10c8\nMOV             X0, X4                                                 ; +0xa8, 0xda10cc\nADD             X2, X2, #aNa@PAGEOFF; \"NA\"                             ; +0xac, 0xda10d0\nSTR             X2, [X19]                                              ; +0xb0, 0xda10d4\nSTR             W5, [X1]                                               ; +0xb4, 0xda10d8\nB               loc_DA10AC                                             ; +0xb8, 0xda10dc", "xrefs": ["<???> @ 0x7c218"], "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"}