//
// GJUINode::resetState from 0x100049aec to 0x100049b78 (140 bytes)
//
// 1 xrefs:
// > UILayer::resetUINodeState @ 0x100049ad0
//
// 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 GJUINode::resetState(GJUINode *a1)
{
cocos2d::CCSprite *m_firstSprite; // x0
__int64 v3; // x8
__int64 v4; // x0
__int16 v5; // [xsp+8h] [xbp-18h] BYREF
char v6; // [xsp+Ah] [xbp-16h]
__int16 v7; // [xsp+Ch] [xbp-14h] BYREF
char v8; // [xsp+Eh] [xbp-12h]
a1->m_touchID = -1;
*(_WORD *)&a1->m_swiping = 0;
m_firstSprite = a1->m_firstSprite;
if ( m_firstSprite )
{
v6 = -1;
v5 = -1;
((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_firstSprite->setColor)(m_firstSprite, &v5);
}
v3 = 328;
if ( a1->m_modeB )
v3 = 320;
v4 = *(__int64 *)((char *)&a1->__vftable + v3);
if ( v4 )
{
v8 = -1;
v7 = -1;
(*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 944LL))(v4, &v7);
}
}