//
// UILayer::resetUINodeState from 0x30d30c to 0x30d338 (44 bytes)
//
// 4 xrefs:
// > UILayer::doPause @ 0x30d346
// > UILayer::handleKeypress @ 0x30d652
// > UILayer::toggleMenuVisibility @ 0x30d6fe
// > UILayer::resetAllButtons @ 0x30d74c
//
// 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; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v4; // r4
GJUINode *v5; // r0
GJUINode *v6; // t1
m_uiNodes = a1->m_uiNodes;
if ( m_uiNodes )
{
data = m_uiNodes->data;
if ( data->num )
{
arr = data->arr;
v4 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v4 )
{
v6 = (GJUINode *)*arr++;
v5 = v6;
if ( !v6 )
break;
GJUINode::resetState(v5);
}
}
}
}