//
// CustomizeObjectLayer::onSelectMode from 0x57ecb8 to 0x57ee12 (346 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x580e9e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:52:51 +0000
//
int __fastcall CustomizeObjectLayer::onSelectMode(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
char *v3; // r0
const char *v4; // r1
char *v5; // r0
const char *v6; // r1
int v7; // r0
char *v8; // r0
const char *v9; // r1
GJSpecialColorSelect *ActiveMode; // r1
*((_DWORD *)this + 140) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
(*(void (**)(void))(**((_DWORD **)this + 148) + 464))();
v3 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 143) + 536))(*((_DWORD *)this + 143));
if ( *((_DWORD *)this + 140) == 1 )
v4 = "GJ_button_03.png";
else
v4 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v3, v4);
v5 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 144) + 536))(*((_DWORD *)this + 144));
if ( *((_DWORD *)this + 140) == 2 )
v6 = "GJ_button_03.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
v7 = *((_DWORD *)this + 145);
if ( v7 )
{
v8 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 536))(v7);
if ( *((_DWORD *)this + 140) == 3 )
v9 = "GJ_button_03.png";
else
v9 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v8, v9);
}
CustomizeObjectLayer::toggleVisible(this);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 146) + 172))(
*((_DWORD *)this + 146),
*((_DWORD *)this + 140) == 1);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 146) + 528))(
*((_DWORD *)this + 146),
*((_DWORD *)this + 140) == 1);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 147) + 172))(
*((_DWORD *)this + 147),
*((_DWORD *)this + 140) == 2);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 147) + 528))(
*((_DWORD *)this + 147),
*((_DWORD *)this + 140) == 2);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 162) + 172))(
*((_DWORD *)this + 162),
*((_DWORD *)this + 140) != 3);
(*(void (__fastcall **)(_DWORD, bool))(**((_DWORD **)this + 162) + 528))(
*((_DWORD *)this + 162),
*((_DWORD *)this + 140) != 3);
CustomizeObjectLayer::updateHSVButtons(this);
CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);
ActiveMode = (GJSpecialColorSelect *)CustomizeObjectLayer::getActiveMode(this, 1);
return CustomizeObjectLayer::updateChannelLabel(this, ActiveMode);
}