{"type": "func", "start": 14290816, "end": 14290980, "name": "ERR_peek_last_error_line", "pseudocode": "// \n// ERR_peek_last_error_line from 0xda0f80 to 0xda1024 (164 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xc4920\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(_QWORD *a1, _DWORD *a2)\n{\n  __int64 state; // x0\n  int v4; // w2\n  __int64 v5; // x3\n  __int64 v6; // x0\n  __int64 v7; // x4\n  __int64 v8; // x5\n  __int64 result; // x0\n\n  state = ERR_get_state();\n  v4 = *(_DWORD *)(state + 576);\n  v5 = state;\n  if ( *(_DWORD *)(state + 580) == v4 )\n    return 0;\n  v6 = state + 8LL * v4;\n  v7 = *(_QWORD *)(v6 + 64);\n  if ( !a1 || !a2 )\n    return *(_QWORD *)(v6 + 64);\n  v8 = *(_QWORD *)(v6 + 384);\n  if ( v8 )\n  {\n    *a1 = v8;\n    *a2 = *(_DWORD *)(v5 + 4 * (v4 + 128LL));\n    return v7;\n  }\n  else\n  {\n    result = *(_QWORD *)(v6 + 64);\n    *a1 = \"NA\";\n    *a2 = 0;\n  }\n  return result;\n}", "assembly": "; \n; ERR_peek_last_error_line from 0xda0f80 to 0xda1024 (164 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xc4920\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, 0xda0f80\nMOV             X29, SP                                                ; +0x4, 0xda0f84\nSTR             X19, [SP,#0x30+var_20]                                 ; +0x8, 0xda0f88\nMOV             X19, X0                                                ; +0xc, 0xda0f8c\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0xda0f90\nBL              ERR_get_state                                          ; +0x14, 0xda0f94\nLDR             W2, [X0,#0x240]                                        ; +0x18, 0xda0f98\nMOV             X3, X0                                                 ; +0x1c, 0xda0f9c\nLDR             W4, [X0,#0x244]                                        ; +0x20, 0xda0fa0\nCMP             W4, W2                                                 ; +0x24, 0xda0fa4\nB.EQ            loc_DA0FFC                                             ; +0x28, 0xda0fa8\nSXTW            X2, W2                                                 ; +0x2c, 0xda0fac\nADD             X0, X0, X2,LSL#3                                       ; +0x30, 0xda0fb0\nLDR             X4, [X0,#0x40]                                         ; +0x34, 0xda0fb4\nCBZ             X19, loc_DA0FEC                                        ; +0x38, 0xda0fb8\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x3c, 0xda0fbc\nCBZ             X1, loc_DA0FEC                                         ; +0x40, 0xda0fc0\nLDR             X5, [X0,#0x180]                                        ; +0x44, 0xda0fc4\nCBZ             X5, loc_DA100C                                         ; +0x48, 0xda0fc8\nADD             X2, X2, #0x80                                          ; +0x4c, 0xda0fcc\nSTR             X5, [X19]                                              ; +0x50, 0xda0fd0\nMOV             X0, X4                                                 ; +0x54, 0xda0fd4\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x58, 0xda0fd8\nLDR             W2, [X3,X2,LSL#2]                                      ; +0x5c, 0xda0fdc\nSTR             W2, [X1]                                               ; +0x60, 0xda0fe0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0xda0fe4\nRET                                                                    ; +0x68, 0xda0fe8\nMOV             X0, X4                                                 ; +0x6c, 0xda0fec\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x70, 0xda0ff0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x74, 0xda0ff4\nRET                                                                    ; +0x78, 0xda0ff8\nMOV             X0, #0                                                 ; +0x7c, 0xda0ffc\nLDR             X19, [SP,#0x30+var_20]                                 ; +0x80, 0xda1000\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x84, 0xda1004\nRET                                                                    ; +0x88, 0xda1008\nADRP            X2, #aNa@PAGE; \"NA\"                                    ; +0x8c, 0xda100c\nMOV             X0, X4                                                 ; +0x90, 0xda1010\nADD             X2, X2, #aNa@PAGEOFF; \"NA\"                             ; +0x94, 0xda1014\nSTR             X2, [X19]                                              ; +0x98, 0xda1018\nSTR             W5, [X1]                                               ; +0x9c, 0xda101c\nB               loc_DA0FF0                                             ; +0xa0, 0xda1020", "xrefs": ["<???> @ 0xc4920"], "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"}