//
// SetupInstantCountPopup::determineStartValues from 0x1405b85a0 to 0x1405b8702 (354 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407f40e8
// > ??> @ 0x1408dfcb4
// > ??> @ 0x1408dfcc4
// > ??> @ 0x14092dd94
//
// 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:44 +0000
//
void __fastcall SetupInstantCountPopup::determineStartValues(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v3; // rsi
unsigned int v4; // edi
struct cocos2d::CCObject *v5; // rax
int v6; // edx
int v7; // ecx
int v8; // edx
int v9; // ecx
int v10; // edx
int v11; // ecx
int v12; // edx
int v13; // ecx
SetupTriggerPopup::determineStartValues();
if ( *(_QWORD *)(a1 + 680) )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(v3, *(struct cocos2d::CCObject **)(a1 + 680));
}
else
{
v3 = *(cocos2d::CCArray **)(a1 + 688);
}
if ( v3 )
{
v4 = 0;
*(_QWORD *)(a1 + 1024) = -1;
*(_DWORD *)(a1 + 1032) = 99999;
*(_BYTE *)(a1 + 1036) = 1;
for ( *(_DWORD *)(a1 + 1040) = -1; v4 < cocos2d::CCArray::count(v3); ++v4 )
{
v5 = cocos2d::CCArray::objectAtIndex(v3, v4);
if ( !*((_BYTE *)v5 + 1653) )
*(_BYTE *)(a1 + 1036) = 0;
v6 = *(_DWORD *)(a1 + 1024);
v7 = *((_DWORD *)v5 + 424);
if ( v6 == -1 )
{
*(_DWORD *)(a1 + 1024) = v7;
}
else if ( v6 != v7 )
{
*(_DWORD *)(a1 + 1024) = 0;
}
v8 = *(_DWORD *)(a1 + 1028);
v9 = *((_DWORD *)v5 + 370);
if ( v8 == -1 )
{
*(_DWORD *)(a1 + 1028) = v9;
}
else if ( v8 != v9 )
{
*(_DWORD *)(a1 + 1028) = 0;
}
v10 = *(_DWORD *)(a1 + 1040);
v11 = *((_DWORD *)v5 + 465);
if ( v10 == -1 )
{
*(_DWORD *)(a1 + 1040) = v11;
}
else if ( v10 != v11 )
{
*(_DWORD *)(a1 + 1040) = 0;
}
v12 = *(_DWORD *)(a1 + 1032);
v13 = *((_DWORD *)v5 + 464);
if ( v12 == 99999 )
{
*(_DWORD *)(a1 + 1032) = v13;
}
else if ( v12 != v13 )
{
*(_DWORD *)(a1 + 1032) = 0;
}
}
}
}