//
// SetupAreaTintTriggerPopup::determineStartValues from 0x68e7d0 to 0x68e8dc (268 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:56:10 +0000
//
cocos2d::CCArray *__fastcall SetupAreaTintTriggerPopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v3; // r7
unsigned int v4; // r9
int v5; // r10
int v6; // r8
float v7; // r1
float v8; // r2
cocos2d::CCObject *v9; // r3
int v10; // r0
int v11; // r12
int v12; // r5
cocos2d::CCObject *v13; // r0
cocos2d::CCObject *v14; // r1
cocos2d::CCObject *v15; // r2
cocos2d::CCObject *v16; // r3
int v17; // r3
result = 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 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( result )
{
v4 = 0;
v5 = 1;
v6 = 0;
v7 = flt_D2D404;
v8 = flt_D2D408;
v9 = *(cocos2d::CCObject **)&word_D2D40C;
*(this + 182) = (cocos2d::CCObject *)LODWORD(flt_D2D400);
*((float *)this + 183) = v7;
*((float *)this + 184) = v8;
*(this + 185) = v9;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( v4 >= (unsigned int)result )
return result;
v10 = cocos2d::CCArray::objectAtIndex(v3, v4);
v11 = v10;
if ( !v6 )
{
v12 = v10 + 1432;
v13 = *(cocos2d::CCObject **)(v10 + 1432);
v14 = *(cocos2d::CCObject **)(v12 + 4);
v15 = *(cocos2d::CCObject **)(v12 + 8);
v16 = *(cocos2d::CCObject **)(v12 + 12);
if ( v5 )
{
v5 = 0;
*(this + 182) = v13;
*(this + 183) = v14;
*(this + 184) = v15;
*(this + 185) = v16;
goto LABEL_18;
}
if ( *((float *)this + 182) == *(float *)v12
&& *((float *)this + 183) == *(float *)(v11 + 1436)
&& *((float *)this + 184) == *(float *)(v11 + 1440) )
{
v17 = *((unsigned __int16 *)this + 370)
- (unsigned __int16)v16
+ (*((unsigned __int16 *)this + 370) == (unsigned __int16)v16)
+ (unsigned __int16)v16
- *((unsigned __int16 *)this + 370);
if ( v17 )
goto LABEL_18;
}
else
{
LOBYTE(v17) = 0;
}
*(this + 182) = (cocos2d::CCObject *)-1165815185;
v6 = 1;
*(this + 183) = nullptr;
*(this + 184) = nullptr;
*((_BYTE *)this + 740) = v17;
*((_BYTE *)this + 741) = v17;
}
LABEL_18:
++v4;
}
}
}
return result;
}