//
// DashRingObject::customObjectSetup from 0x4f0518 to 0x4f0642 (298 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:13 +0000
//
int __fastcall DashRingObject::customObjectSetup(unsigned int a1, int *a2, int a3)
{
float v6; // r3
const char *v7; // r0
float v8; // s0
float v9; // r0
float v10; // r3
const char *v11; // r0
float v12; // s0
float v13; // r0
int v14; // r0
const char *v15; // r0
int result; // r0
const char *v17; // r0
const char *v18; // r0
float v19; // s0
RingObject::customObjectSetup(a1, a2, a3);
v6 = *(float *)(*(_DWORD *)a3 + 2344);
if ( v6 == 0.0 )
{
v9 = 0.0;
}
else
{
if ( (*(_BYTE *)(*a2 + 7032) & 1) != 0 )
v7 = *(const char **)(*a2 + 7040);
else
v7 = (const char *)(*a2 + 7033);
v8 = atof(v7);
sub_4E6B6C();
v9 = v8;
}
*(_DWORD *)(a1 + 1652) = cocos2d::clampf((cocos2d *)LODWORD(v9), -10000.0, 10000.0, v6);
v10 = *(float *)(*(_DWORD *)a3 + 2352);
if ( v10 == 0.0 )
{
v13 = 0.0;
}
else
{
if ( (*(_BYTE *)(*a2 + 7056) & 1) != 0 )
v11 = *(const char **)(*a2 + 7064);
else
v11 = (const char *)(*a2 + 7057);
v12 = atof(v11);
sub_4E6B6C();
v13 = v12;
}
*(_DWORD *)(a1 + 1656) = cocos2d::clampf((cocos2d *)LODWORD(v13), -10000.0, 10000.0, v10);
v14 = *(_DWORD *)(*(_DWORD *)a3 + 2348);
if ( v14 )
{
if ( (*(_BYTE *)(*a2 + 7044) & 1) != 0 )
v15 = *(const char **)(*a2 + 7052);
else
v15 = (const char *)(*a2 + 7045);
LOBYTE(v14) = atoi(v15) != 0;
}
*(_BYTE *)(a1 + 1664) = v14;
result = *(_DWORD *)(*(_DWORD *)a3 + 2356);
if ( result )
{
if ( (*(_BYTE *)(*a2 + 7068) & 1) != 0 )
v17 = *(const char **)(*a2 + 7076);
else
v17 = (const char *)(*a2 + 7069);
result = atoi(v17) != 0;
}
*(_BYTE *)(a1 + 1665) = result;
if ( *(_DWORD *)(*(_DWORD *)a3 + 2360) )
{
if ( (*(_BYTE *)(*a2 + 7080) & 1) != 0 )
v18 = *(const char **)(*a2 + 7088);
else
v18 = (const char *)(*a2 + 7081);
v19 = atof(v18);
result = sub_4E6B6C();
}
else
{
v19 = 0.0;
}
*(float *)(a1 + 1660) = v19;
return result;
}