//
// UILayer::resetUINodeState from 0x100049a9c to 0x100049aec (80 bytes)
//
// 5 xrefs:
// > UILayer::editorPlaytest @ 0x100049c04
// > UILayer::handleKeypress @ 0x100049e70
// > UILayer::doPause @ 0x10004a000
// > UILayer::toggleMenuVisibility @ 0x10004a064
// > UILayer::resetAllButtons @ 0x10004a0b8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall UILayer::resetUINodeState(UILayer *a1)
{
cocos2d::CCArray *m_uiNodes; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
GJUINode **arr; // x19
unsigned __int64 v5; // x20
m_uiNodes = a1->m_uiNodes;
if ( m_uiNodes )
{
data = m_uiNodes->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (GJUINode **)data->arr;
v5 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
GJUINode::resetState(*arr++);
}
while ( (unsigned __int64)arr <= v5 );
}
}
}