//
// SetupTriggerPopup::getValue from 0x6793a4 to 0x679436 (146 bytes)
//
// 8 xrefs:
// > StartPosLayer::getValue @ 0x6a8f2a
// > AutoSaveSettingsLayer::getValue @ 0x6e6a22
// > GameSettingsLayer::getValue @ 0x711c28
// > AutoBackupOptionsPopup::getValue @ 0x73c360
// > MoveStepPopup::getValue @ 0x744766
// > EditorSFXActionConfigLayer::getValue @ 0x77ba1e
// > EditorSFXSettingsPopup::getValue @ 0x781606
// > GridSettingsLayer::getValue @ 0x78e37c
//
// 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:55:57 +0000
//
float __fastcall SetupTriggerPopup::getValue(cocos2d::CCDictionary **this, int a2, int a3, int a4)
{
int v6; // r0
unsigned int v8; // r4
cocos2d::CCArray *v9; // r0
float v10; // s16
GameObject *v11; // r0
int v12; // r3
float TriggerValue; // r0
if ( a2 < 0 )
{
v6 = cocos2d::CCDictionary::objectForKey(*(this + 154), a2);
if ( v6 )
return *(float *)(v6 + 52);
return 0.0;
}
v8 = (unsigned int)*(this + 132);
if ( v8 )
return SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)this, *(float *)&a2, *(this + 132), a4);
v9 = *(this + 133);
if ( !v9 || !cocos2d::CCArray::count(v9) )
return 0.0;
v10 = -99999.0;
while ( v8 < cocos2d::CCArray::count(*(this + 133)) )
{
v11 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 133), v8);
TriggerValue = SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)this, *(float *)&a2, v11, v12);
if ( v10 == -99999.0 )
{
v10 = TriggerValue;
}
else if ( TriggerValue != v10 )
{
return 0.0;
}
++v8;
}
return v10;
}