//
// SetGroupIDLayer::updateZLayerButtons from 0x1405943b0 to 0x140594440 (144 bytes)
//
// 7 xrefs:
// > SetGroupIDLayer::init @ 0x14058ff8a
// > SetGroupIDLayer::onPaste @ 0x140591af8
// > SetGroupIDLayer::onZLayer @ 0x1405934c9
// > SetGroupIDLayer::onZLayer @ 0x14059353b
// > ??> @ 0x1408ddbdc
// > ??> @ 0x1408ddbec
// > ??> @ 0x14092cf6c
//
// 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:34:33 +0000
//
unsigned int __fastcall SetGroupIDLayer::updateZLayerButtons(__int64 a1)
{
unsigned int v2; // esi
unsigned int result; // eax
struct cocos2d::CCObject *v4; // rbx
int v5; // eax
const char *v6; // rdx
v2 = 0;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));
if ( result )
{
do
{
v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v2);
v5 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v4 + 56LL))(v4);
v6 = "GJ_button_04.png";
if ( *(_DWORD *)(a1 + 788) == v5 )
v6 = "GJ_button_02.png";
ButtonSprite::updateBGImage((__int64)v4, v6);
++v2;
result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688));
}
while ( v2 < result );
}
return result;
}