//
// GJGarageLayer::onPaint from 0x140278e50 to 0x140278fc2 (370 bytes)
//
// 2 xrefs:
// > GJGarageLayer::init @ 0x140273e62
// > ??> @ 0x1406d1034
//
// 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
//
// Hidden C++ exception states: #wind=1
void GJGarageLayer::onPaint(GJGarageLayer *a1, cocos2d::CCObject *a2)
{
float v2; // xmm3_4
CharacterColorPage *v4; // rbx
__int64 v5; // r8
CharacterColorDelegate *v6; // rax
void (__fastcall *show)(CharacterColorPage *__hidden); // rdx
ListButtonBar *m_iconSelection; // rcx
v4 = (CharacterColorPage *)operator new(0x2C0u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CharacterColorPage_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&CharacterColorPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&CharacterColorPage::`vftable';
v4->m_colorMode = 0;
v4->m_playerObjects = nullptr;
v4->m_modeButtons = nullptr;
v4->m_colorButtons = nullptr;
v4->m_cursors = nullptr;
v4->m_delegate = nullptr;
v4->m_glowToggler = nullptr;
v4->m_glowLabel = nullptr;
if ( CharacterColorPage::init(v4) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(CharacterColorPage *, __int64))v4->~CharacterColorPage)(v4, 1);
v4 = nullptr;
}
v6 = &a1->CharacterColorDelegate;
if ( !a1 )
v6 = nullptr;
v4->m_delegate = v6;
v4->m_scene = a1;
show = v4->show;
if ( (char *)show == (char *)ChallengesPage::show )
ChallengesPage::show((__int64)v4, (__int64)show, v5, v2);
else
show(v4);
m_iconSelection = a1->m_iconSelection;
if ( m_iconSelection )
m_iconSelection->setVisible(m_iconSelection, 0);
}