//
// CustomizeObjectLayer::hsvPopupClosed from 0x9833c4 to 0x983498 (212 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x98349c
// > ??> @ 0xb0c50
// > ??> @ 0x14719f8
//
// This function is hookable on this platform (idp: arm, 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 12:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::hsvPopupClosed(GameObject **a1, __int64 a2, __int64 a3, __int64 a4)
{
int v7; // w21
__int64 RelativeSpriteColor; // x0
__int64 v9; // x1
__int64 v10; // x2
int v11; // w3
CustomizeObjectLayer *v12; // x0
unsigned int v13; // w19
bool v14; // cf
GameObject *v15; // x0
__int64 v16; // x0
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v7 = 1;
else
v7 = 2;
if ( a1[86] )
{
RelativeSpriteColor = GameObject::getRelativeSpriteColor(a1[86], v7);
if ( RelativeSpriteColor )
{
*(_QWORD *)(RelativeSpriteColor + 16) = a3;
*(_QWORD *)(RelativeSpriteColor + 24) = a4;
}
}
else
{
v13 = 0;
while ( 1 )
{
v14 = v13 >= (unsigned int)cocos2d::CCArray::count(a1[87]);
v9 = v13++;
if ( v14 )
break;
while ( 1 )
{
v15 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1[87], v9);
v16 = GameObject::getRelativeSpriteColor(v15, v7);
if ( !v16 )
break;
*(_QWORD *)(v16 + 16) = a3;
*(_QWORD *)(v16 + 24) = a4;
v14 = v13 >= (unsigned int)cocos2d::CCArray::count(a1[87]);
v9 = v13++;
if ( v14 )
{
v12 = (CustomizeObjectLayer *)a1;
return CustomizeObjectLayer::updateHSVButtons(v12, v9, v10, v11);
}
}
}
}
v12 = (CustomizeObjectLayer *)a1;
return CustomizeObjectLayer::updateHSVButtons(v12, v9, v10, v11);
}