{"type": "func", "start": 8368708, "end": 8368844, "name": "ERR_peek_error_line", "pseudocode": "// \n// ERR_peek_error_line from 0x7fb244 to 0x7fb2cc (136 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x6298c\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\nint __fastcall ERR_peek_error_line(_DWORD *a1, _DWORD *a2)\n{\n  int state; // r0\n  int v5; // r3\n  int v6; // r3\n  bool v7; // zf\n  _DWORD *v8; // r3\n  int result; // r0\n  int v10; // r2\n\n  state = ERR_get_state();\n  v5 = *(_DWORD *)(state + 388);\n  if ( v5 == *(_DWORD *)(state + 384) )\n    return 0;\n  v6 = (v5 + 1) % 16;\n  v7 = a1 == nullptr;\n  if ( a1 )\n    v7 = a2 == nullptr;\n  v8 = (_DWORD *)(state + 4 * v6);\n  result = v8[16];\n  if ( !v7 )\n  {\n    v10 = v8[64];\n    if ( v10 )\n    {\n      *a1 = v10;\n      *a2 = v8[80];\n    }\n    else\n    {\n      *a1 = \"NA\";\n      *a2 = 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; ERR_peek_error_line from 0x7fb244 to 0x7fb2cc (136 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x6298c\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\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x7fb244\nMOV             R5, R1                                                 ; +0x4, 0x7fb248\nMOV             R4, R0                                                 ; +0x8, 0x7fb24c\nBL              ERR_get_state                                          ; +0xc, 0x7fb250\nLDR             R3, [R0,#0x184]                                        ; +0x10, 0x7fb254\nLDR             R1, [R0,#0x180]                                        ; +0x14, 0x7fb258\nMOV             R2, R0                                                 ; +0x18, 0x7fb25c\nCMP             R3, R1                                                 ; +0x1c, 0x7fb260\nBEQ             loc_7FB2B0                                             ; +0x20, 0x7fb264\nADD             R3, R3, #1                                             ; +0x24, 0x7fb268\nMOV             R0, R3,ASR#31                                          ; +0x28, 0x7fb26c\nMOV             R0, R0,LSR#28                                          ; +0x2c, 0x7fb270\nADD             R3, R3, R0                                             ; +0x30, 0x7fb274\nAND             R3, R3, #0xF                                           ; +0x34, 0x7fb278\nRSB             R3, R0, R3                                             ; +0x38, 0x7fb27c\nCMP             R4, #0                                                 ; +0x3c, 0x7fb280\nCMPNE           R5, #0                                                 ; +0x40, 0x7fb284\nADD             R3, R2, R3,LSL#2                                       ; +0x44, 0x7fb288\nLDR             R0, [R3,#0x40]                                         ; +0x48, 0x7fb28c\nPOPEQ           {R3-R5,PC}                                             ; +0x4c, 0x7fb290\nLDR             R2, [R3,#0x100]                                        ; +0x50, 0x7fb294\nCMP             R2, #0                                                 ; +0x54, 0x7fb298\nBEQ             loc_7FB2B8                                             ; +0x58, 0x7fb29c\nSTR             R2, [R4]                                               ; +0x5c, 0x7fb2a0\nLDR             R3, [R3,#0x140]                                        ; +0x60, 0x7fb2a4\nSTR             R3, [R5]                                               ; +0x64, 0x7fb2a8\nPOP             {R3-R5,PC}                                             ; +0x68, 0x7fb2ac\nMOV             R0, #0                                                 ; +0x6c, 0x7fb2b0\nPOP             {R3-R5,PC}                                             ; +0x70, 0x7fb2b4\nLDR             R3, =(aNa_2 - 0x7FB2C4); \"NA\"                          ; +0x74, 0x7fb2b8\nADD             R3, PC, R3; \"NA\"                                       ; +0x78, 0x7fb2bc\nSTR             R3, [R4]                                               ; +0x7c, 0x7fb2c0\nSTR             R2, [R5]                                               ; +0x80, 0x7fb2c4\nPOP             {R3-R5,PC}                                             ; +0x84, 0x7fb2c8", "xrefs": ["<???> @ 0x6298c"], "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"}