//
// SetupShaderEffectPopup::updateZLayerButtons from 0x1002bd1e0 to 0x1002bd293 (179 bytes)
//
// 0 xrefs:
//
// 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 12:28:04 +0000
//
__int64 __fastcall SetupShaderEffectPopup::updateZLayerButtons(__int64 a1)
{
__int64 result; // rax
unsigned int v2; // r14d
__int64 v3; // r15
int v4; // eax
int v5; // ecx
const char *v6; // rsi
result = sub_1007FEF90(*(_QWORD *)(a1 + 1016));
if ( (_DWORD)result )
{
v2 = 0;
do
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 1016), v2);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3);
v5 = *(_DWORD *)(a1 + 1024);
v6 = "GJ_button_02.png";
if ( v4 != v5 )
{
v6 = "GJ_button_02.png";
if ( v4 != *(_DWORD *)(a1 + 1028) )
{
v6 = "GJ_button_01.png";
if ( v4 >= *(_DWORD *)(a1 + 1028) )
v6 = "GJ_button_04.png";
if ( v4 <= v5 )
v6 = "GJ_button_04.png";
}
}
ButtonSprite::updateBGImage(v3, (__int64)v6);
++v2;
result = sub_1007FEF90(*(_QWORD *)(a1 + 1016));
}
while ( v2 < (unsigned int)result );
}
return result;
}