//
// GJUINode::updateButtonFrames from 0x5c62f0 to 0x5c63d0 (224 bytes)
//
// 4 xrefs:
// > GJUINode::toggleModeB @ 0x5c7928
// > GJUINode::loadFromConfig @ 0x5c7d60
// > UIOptionsLayer::valueDidChange @ 0x8d8514
// > ??> @ 0x2dee8
//
// 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 GJUINode::updateButtonFrames(GJUINode *a1)
{
cocos2d::CCSprite *m_firstSprite; // x20
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x21
cocos2d::CCSpriteFrameCache *v4; // x0
cocos2d::CCSpriteFrame *v5; // x0
cocos2d::CCSprite *m_secondSprite; // x20
const char *v7; // x1
cocos2d::CCSpriteFrame *v8; // x0
void (__fastcall *v9)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x21
cocos2d::CCSpriteFrameCache *v10; // x0
const char *v11; // x1
cocos2d::CCSpriteFrame *v12; // x0
m_firstSprite = a1->m_firstSprite;
setDisplayFrame = m_firstSprite->setDisplayFrame;
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a1->m_modeB )
{
v7 = "PBtn_Arrow_001.png";
goto LABEL_6;
}
if ( !a1->m_oneButton && !a1->m_split )
{
v7 = "PBtn_Move_001.png";
LABEL_6:
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v7);
setDisplayFrame(m_firstSprite, v8);
m_secondSprite = a1->m_secondSprite;
if ( !m_secondSprite )
return;
goto LABEL_7;
}
v5 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, "PBtn_Jump_001.png");
setDisplayFrame(m_firstSprite, v5);
m_secondSprite = a1->m_secondSprite;
if ( !m_secondSprite )
return;
LABEL_7:
v9 = m_secondSprite->setDisplayFrame;
v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
if ( a1->m_split )
v11 = "PBtn_Jump_001.png";
else
v11 = "PBtn_Move_001.png";
v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v11);
v9(m_secondSprite, v12);
}