//
// RandTriggerGameObject::customObjectSetup from 0x4f68b0 to 0x4f69aa (250 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:51:17 +0000
//
int __fastcall RandTriggerGameObject::customObjectSetup(unsigned int a1, int *a2, int a3)
{
int v6; // r0
int v7; // r0
const char *v8; // r0
cocos2d::CCArray *v9; // r8
unsigned int i; // r7
cocos2d::CCString *v11; // r0
cocos2d::CCString *v12; // r0
int v13; // r0
_DWORD *v14; // r3
unsigned int v15; // r2
int v16; // r2
int v18; // [sp+0h] [bp-1Ch] BYREF
int v19; // [sp+4h] [bp-18h] BYREF
int v20[3]; // [sp+8h] [bp-14h] BYREF
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = *(_DWORD *)(*(_DWORD *)a3 + 224);
if ( v6 )
{
v7 = *a2;
if ( (*(_BYTE *)(*a2 + 672) & 1) != 0 )
v8 = *(const char **)(v7 + 680);
else
v8 = (const char *)(v7 + 673);
LOBYTE(v6) = atoi(v8) != 0;
}
*(_BYTE *)(a1 + 1457) = v6;
if ( *(_DWORD *)(*(_DWORD *)a3 + 608) )
{
std::string::basic_string(v20, *a2 + 1824);
}
else
{
memset(v20, 0, sizeof(v20));
std::string::__init(v20, &unk_B6B226, 0);
}
v9 = sub_4F63FC(v20);
for ( i = 0; i < cocos2d::CCArray::count(v9); i += 2 )
{
v11 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v9, i);
v18 = cocos2d::CCString::intValue(v11);
v12 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v9, i + 1);
v13 = cocos2d::CCString::intValue(v12);
v14 = *(_DWORD **)(a1 + 1652);
v15 = *(_DWORD *)(a1 + 1656);
v19 = v13;
if ( (unsigned int)v14 >= v15 )
{
std::vector::__emplace_back_slow_path((int *)(a1 + 1648), &v18, &v19);
}
else
{
v16 = v18;
if ( v14 )
{
*v14 = v18;
v14[1] = v16;
v14[2] = v13;
v14[3] = 0;
}
*(_DWORD *)(a1 + 1652) += 16;
}
}
return std::string::~string((int)v20);
}