//
// UILayer::resetUINodeState from 0x5c6b4c to 0x5c6ba8 (92 bytes)
//
// 5 xrefs:
// > UILayer::doPause @ 0x5c6bbc
// > UILayer::handleKeypress @ 0x5c6f64
// > UILayer::toggleMenuVisibility @ 0x5c70b4
// > UILayer::resetAllButtons @ 0x5c7114
// > ??> @ 0x912d8
//
// 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 UILayer::resetUINodeState(UILayer *a1)
{
cocos2d::CCArray *m_uiNodes; // x0
cocos2d::ccArray *data; // x1
GJUINode **arr; // x19
GJUINode **v4; // x20
GJUINode *v5; // x0
m_uiNodes = a1->m_uiNodes;
if ( m_uiNodes )
{
data = m_uiNodes->data;
if ( data->num )
{
arr = (GJUINode **)data->arr;
v4 = &arr[data->num - 1];
while ( v4 >= arr )
{
v5 = *arr;
if ( !*arr )
break;
++arr;
GJUINode::resetState(v5);
}
}
}
}