//
// UILayer::resetUINodeState from 0x3fcd94 to 0x3fcdc0 (44 bytes)
//
// 7 xrefs:
// > UILayer::doPause @ 0x3fcdce
// > UILayer::toggleMenuVisibility @ 0x3fce56
// > UILayer::resetAllButtons @ 0x3fcea4
// > UILayer::handleAction @ 0x3fe0d8
// > UILayer::handleAction @ 0x3fe13c
// > UILayer::handleAction @ 0x3fe7fa
// > UILayer::handleAction @ 0x3fe8ea
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:21 +0000
//
GJUINode *__fastcall UILayer::resetUINodeState(GJUINode *this)
{
int v1; // r3
_DWORD *v2; // r2
GJUINode **v3; // r5
GJUINode **v4; // r4
GJUINode *v5; // t1
v1 = *((_DWORD *)this + 122);
if ( v1 )
{
v2 = *(_DWORD **)(v1 + 52);
if ( *v2 )
{
v3 = (GJUINode **)v2[3];
v4 = &v3[*v2] + 0x3FFFFFFF;
while ( v3 <= v4 )
{
v5 = *v3++;
this = v5;
if ( !v5 )
break;
this = (GJUINode *)GJUINode::resetState(this);
}
}
}
return this;
}