//
// CustomizeObjectLayer::highlightSelected from 0x140144070 to 0x14014419d (301 bytes)
//
// 8 xrefs:
// > CustomizeObjectLayer::colorSetupClosed @ 0x1401424bb
// > CustomizeObjectLayer::onNextColorChannel @ 0x140143096
// > CustomizeObjectLayer::toggleVisible @ 0x1401434d1
// > CustomizeObjectLayer::updateCurrentSelection @ 0x1401436d1
// > CustomizeObjectLayer::onSelectColor @ 0x140143e82
// > ??> @ 0x140899f90
// > ??> @ 0x140899fc4
// > ??> @ 0x14091748c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:27:10 +0000
//
__int64 __fastcall CustomizeObjectLayer::highlightSelected(__int64 a1, __int64 a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v5; // rbx
int v6; // eax
const char *v7; // rdx
bool v8; // bl
for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 704)); ++i )
{
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 704), i);
v6 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 56LL))(v5);
v7 = "GJ_button_05.png";
if ( v6 != 1008 )
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage((__int64)v5, v7);
}
v8 = false;
if ( a2 )
{
ButtonSprite::updateBGImage(a2, "GJ_button_02.png");
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1008 )
v8 = true;
}
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), v8);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 880) + 336LL))(*(_QWORD *)(a1 + 880), v8);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 816) + 920LL))(*(_QWORD *)(a1 + 816), v8);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 816) + 336LL))(*(_QWORD *)(a1 + 816), v8);
return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), v8);
}