//
// SetupPulsePopup::determineStartValues from 0x5ebb94 to 0x5ebea2 (782 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:23 +0000
//
cocos2d::CCArray *__fastcall SetupPulsePopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v3; // r8
float v4; // s16
int v5; // r7
unsigned int v6; // r11
int v7; // r6
int v8; // r10
float v9; // s21
int v10; // r9
int v11; // r1
int v12; // r2
cocos2d::CCObject *v13; // r3
float v14; // s17
int v15; // r0
float *v16; // r2
float *v17; // r2
float *v18; // r2
int v19; // r12
int v20; // r9
int v21; // r1
int v22; // r2
int v23; // r3
cocos2d::CCObject *v24; // r1
cocos2d::CCObject *v25; // r2
cocos2d::CCObject *v26; // r3
int v27; // r3
cocos2d::CCObject *v28; // r2
cocos2d::CCObject *v29; // r3
cocos2d::CCObject *v30; // r2
cocos2d::CCObject *v31; // r3
int v32; // r3
int v33; // s15
int v34; // s14
int v35; // [sp+4h] [bp-30h]
int v36; // [sp+8h] [bp-2Ch]
result = (cocos2d::CCArray *)SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this);
if ( *(this + 132) )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
result = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v3, *(this + 132));
}
else
{
v3 = *(this + 133);
}
if ( !v3 )
return result;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( !result )
return result;
v4 = -1.0;
v5 = -1;
*((_BYTE *)this + 836) = 1;
v6 = 0;
v7 = 1;
v8 = 0;
*((_WORD *)this + 386) = -1;
*((_BYTE *)this + 774) = -1;
v9 = -1.0;
*((_BYTE *)this + 837) = 1;
*((_BYTE *)this + 873) = 1;
*((_BYTE *)this + 838) = 1;
v10 = -1;
v11 = dword_D2C664;
v12 = dword_D2C668;
v13 = *(cocos2d::CCObject **)&byte_D2C66C;
v14 = -1.0;
v36 = 1;
v35 = 0;
*(this + 219) = (cocos2d::CCObject *)dword_D2C660;
*(this + 220) = (cocos2d::CCObject *)v11;
*(this + 221) = (cocos2d::CCObject *)v12;
*(this + 222) = v13;
*(this + 210) = (cocos2d::CCObject *)-1;
*(this + 211) = (cocos2d::CCObject *)-1;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( v6 >= (unsigned int)result )
break;
v15 = cocos2d::CCArray::objectAtIndex(v3, v6);
if ( !*(_BYTE *)(v15 + 1453) )
*((_BYTE *)this + 836) = 0;
if ( !*(_BYTE *)(v15 + 1454) )
*((_BYTE *)this + 837) = 0;
if ( !*(_BYTE *)(v15 + 1455) )
*((_BYTE *)this + 873) = 0;
if ( !*(_BYTE *)(v15 + 1456) )
*((_BYTE *)this + 838) = 0;
v16 = (float *)(v15 + 1412);
if ( v14 == -1.0 )
{
v14 = *v16;
}
else if ( v14 != *v16 )
{
v14 = -2.0;
}
v17 = (float *)(v15 + 1416);
if ( v9 == -1.0 )
{
v9 = *v17;
}
else if ( v9 != *v17 )
{
v9 = -2.0;
}
v18 = (float *)(v15 + 1420);
if ( v4 == -1.0 )
{
v4 = *v18;
}
else if ( v4 != *v18 )
{
v4 = -2.0;
}
if ( v10 == -1 )
{
v19 = *(_DWORD *)(v15 + 1424);
}
else if ( v10 == *(_DWORD *)(v15 + 1424) )
{
v19 = *(_DWORD *)(v15 + 1424);
}
else
{
v19 = -2;
}
if ( v5 == -1 )
{
v20 = *(_DWORD *)(v15 + 1428);
}
else if ( v5 == *(_DWORD *)(v15 + 1428) )
{
v20 = *(_DWORD *)(v15 + 1428);
}
else
{
v20 = -2;
}
if ( !v35 )
{
v21 = *(unsigned __int8 *)(v15 + 1268);
v22 = *(unsigned __int8 *)(v15 + 1269);
v23 = *(unsigned __int8 *)(v15 + 1270);
if ( v36 )
{
*((_BYTE *)this + 774) = v23;
*((_BYTE *)this + 772) = v21;
*((_BYTE *)this + 773) = v22;
v36 = 0;
}
else if ( *((unsigned __int8 *)this + 772) != v21
|| *((unsigned __int8 *)this + 773) != v22
|| *((unsigned __int8 *)this + 774) != v23 )
{
*((_WORD *)this + 386) = -1;
*((_BYTE *)this + 774) = -1;
v35 = 1;
}
}
if ( !v8 )
{
v24 = *(cocos2d::CCObject **)(v15 + 1436);
v25 = *(cocos2d::CCObject **)(v15 + 1440);
v26 = *(cocos2d::CCObject **)(v15 + 1444);
if ( v7 )
{
v7 = 0;
*(this + 219) = *(cocos2d::CCObject **)(v15 + 1432);
*(this + 220) = v24;
*(this + 221) = v25;
*(this + 222) = v26;
goto LABEL_55;
}
if ( *((float *)this + 219) == *(float *)(v15 + 1432)
&& *((float *)this + 220) == *(float *)(v15 + 1436)
&& *((float *)this + 221) == *(float *)(v15 + 1440) )
{
v27 = *((unsigned __int16 *)this + 444)
- (unsigned __int16)v26
+ (*((unsigned __int16 *)this + 444) == (unsigned __int16)v26)
+ (unsigned __int16)v26
- *((unsigned __int16 *)this + 444);
if ( v27 )
goto LABEL_55;
}
else
{
LOBYTE(v27) = 0;
}
*(this + 219) = (cocos2d::CCObject *)-1165815185;
v8 = 1;
*((_BYTE *)this + 888) = v27;
*((_BYTE *)this + 889) = v27;
*(this + 220) = nullptr;
*(this + 221) = nullptr;
}
LABEL_55:
v28 = *(this + 210);
v29 = *(cocos2d::CCObject **)(v15 + 1284);
if ( v28 != (cocos2d::CCObject *)-1 )
{
if ( v28 == v29 )
goto LABEL_59;
v29 = nullptr;
}
*(this + 210) = v29;
LABEL_59:
v30 = *(this + 211);
v31 = *(cocos2d::CCObject **)(v15 + 1448);
if ( v30 != (cocos2d::CCObject *)-1 )
{
if ( v30 == v31 )
goto LABEL_63;
v31 = nullptr;
}
*(this + 211) = v31;
LABEL_63:
v5 = v20;
++v6;
v10 = v19;
}
v32 = v10 | (v10 >> 31);
v33 = -1110651699;
*(this + 216) = (cocos2d::CCObject *)v32;
if ( v14 < 0.0 )
v14 = -0.1;
*((float *)this + 213) = v14;
if ( v9 >= 0.0 )
v34 = LODWORD(v9);
else
v34 = -1110651699;
if ( v4 >= 0.0 )
v33 = LODWORD(v4);
*(this + 214) = (cocos2d::CCObject *)v34;
if ( v5 >= 0 )
*(this + 217) = (cocos2d::CCObject *)v5;
else
v32 = -1;
if ( v5 < 0 )
*(this + 217) = (cocos2d::CCObject *)v32;
*(this + 215) = (cocos2d::CCObject *)v33;
return result;
}