//
// UILayer::resetUINodeState from 0x6ef314 to 0x6ef370 (92 bytes)
//
// 9 xrefs:
// > UILayer::doPause @ 0x6ef384
// > UILayer::toggleMenuVisibility @ 0x6ef474
// > UILayer::resetAllButtons @ 0x6ef4d4
// > UILayer::handleAction @ 0x6f145c
// > UILayer::handleAction @ 0x6f1660
// > UILayer::handleAction @ 0x6f176c
// > UILayer::handleAction @ 0x6f1930
// > UILayer::handleAction @ 0x6f1ad8
// > ??> @ 0xbfff8
//
// This function is hookable on this platform (idp: arm, 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:51:47 +0000
//
__int64 __fastcall UILayer::resetUINodeState(UILayer *this)
{
__int64 result; // x0
unsigned int *v2; // x1
__int64 *v3; // x19
__int64 *i; // x20
result = *((_QWORD *)this + 77);
if ( result )
{
v2 = *(unsigned int **)(result + 56);
result = *v2;
if ( (_DWORD)result )
{
v3 = *((__int64 **)v2 + 2);
for ( i = &v3[(unsigned int)result - 1]; i >= v3; result = GJUINode::resetState((GJUINode *)result) )
{
result = *v3;
if ( !*v3 )
break;
++v3;
}
}
}
return result;
}