//
// SetupEnterEffectPopup::determineStartValues from 0xb43484 to 0xb43624 (416 bytes)
//
// 2 xrefs:
// > ??> @ 0xec500
// > ??> @ 0x14bc0b0
//
// 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 13:01:52 +0000
//
cocos2d::CCArray *__fastcall SetupEnterEffectPopup::determineStartValues(cocos2d::CCObject **this)
{
unsigned __int64 v1; // x25
cocos2d::CCArray *result; // x0
cocos2d::CCArray *v4; // x21
unsigned int v5; // w20
int v6; // w23
__int64 v7; // x1
_BOOL4 v8; // w22
__int64 v9; // x0
int v10; // w1
int v11; // w3
char v12; // w4
int v13; // w1
char v14; // w2
int v15; // w0
SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this);
result = *(this + 85);
if ( result )
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
result = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v4, *(this + 85));
}
else
{
v4 = *(this + 86);
}
if ( v4 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v4);
if ( (_DWORD)result )
{
*((_DWORD *)this + 262) = -1;
v5 = 0;
v6 = 1;
v7 = qword_155E300;
*(this + 133) = (cocos2d::CCObject *)qword_155E2F8;
*(this + 134) = (cocos2d::CCObject *)v7;
v8 = *((_DWORD *)this + 256) != 3021;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v4);
if ( (_DWORD)result )
{
do
{
v9 = cocos2d::CCArray::objectAtIndex(v4, v5);
v10 = *((_DWORD *)this + 262);
if ( v10 < 0 )
{
*((_DWORD *)this + 262) = *(_DWORD *)(v9 + 1840);
}
else if ( v10 != *(_DWORD *)(v9 + 1840) )
{
*((_DWORD *)this + 262) = 0;
}
if ( !v8 )
{
if ( v6 )
{
v11 = *(_DWORD *)(v9 + 1612);
v12 = *(_BYTE *)(v9 + 1624);
v13 = *(_DWORD *)(v9 + 1616);
v14 = *(_BYTE *)(v9 + 1625);
v15 = *(_DWORD *)(v9 + 1620);
v6 = 0;
*((_BYTE *)this + 1076) = v12;
*((_BYTE *)this + 1077) = v14;
*((_DWORD *)this + 266) = v11;
*((_DWORD *)this + 267) = v13;
*((_DWORD *)this + 268) = v15;
}
else if ( *((float *)this + 266) != *(float *)(v9 + 1612)
|| *(float *)(v9 + 1616) != *((float *)this + 267)
|| *((float *)this + 268) != *(float *)(v9 + 1620)
|| (v1 = v1 & 0xFFFF0000FFFFFFFFLL
| ((unsigned __int64)*(unsigned __int8 *)(v9 + 1624) << 32) & 0xFFFF00FFFFFFFFFFLL
| ((unsigned __int64)*(unsigned __int8 *)(v9 + 1625) << 40),
WORD2(v1) != *((unsigned __int16 *)this + 538)) )
{
*((_DWORD *)this + 266) = -1165815185;
*((_BYTE *)this + 1076) = 0;
*((_DWORD *)this + 267) = 0;
*((_BYTE *)this + 1077) = 0;
*((_DWORD *)this + 268) = 0;
v8 = 1;
++v5;
goto LABEL_13;
}
}
++v5;
LABEL_13:
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v4);
}
while ( v5 < (unsigned int)result );
}
}
}
return result;
}