//
// GJUINode::resetState from 0x1004c35f0 to 0x1004c3664 (116 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:31:06 +0000
//
__int64 __fastcall GJUINode::resetState(__int64 a1)
{
__int64 v1; // rax
__int64 v3; // rdi
__int64 result; // rax
__int64 v5; // rdi
_QWORD v6[2]; // [rsp+0h] [rbp-10h] BYREF
v6[0] = v1;
*(_DWORD *)(a1 + 352) = -1;
*(_WORD *)(a1 + 383) = 0;
v3 = *(_QWORD *)(a1 + 320);
if ( v3 )
{
BYTE6(v6[0]) = -1;
WORD2(v6[0]) = -1;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v3 + 960LL))(v3, (char *)v6 + 4);
}
result = *(unsigned __int8 *)(a1 + 381) ^ 1u;
v5 = *(_QWORD *)(a1 + 8 * result + 320);
if ( v5 )
{
BYTE2(v6[0]) = -1;
LOWORD(v6[0]) = -1;
return (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v5 + 960LL))(v5, v6);
}
return result;
}