//
// DashRingObject::customObjectSetup from 0x89002c to 0x8902c0 (660 bytes)
//
// 2 xrefs:
// > ??> @ 0x7e3e8
// > ??> @ 0x14491c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:56:07 +0000
//
__int64 __fastcall DashRingObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
cocos2d *v6; // x0
float v7; // s8
int v8; // s0
int v9; // s0
cocos2d *v10; // x0
const char *v11; // x0
float v12; // s8
float v13; // s0
int v14; // s0
const char *v15; // x0
const char *v16; // x0
__int64 result; // x0
const char *v18; // x0
float v19; // s8
int v20; // s0
int v21; // s0
RingObject::customObjectSetup(a1, a2, a3);
v6 = *(cocos2d **)(*(_QWORD *)a3 + 4688LL);
if ( !v6 )
goto LABEL_27;
if ( (*(_BYTE *)(*a2 + 14064) & 1) != 0 )
{
v7 = atof(*(const char **)(*a2 + 14080));
v6 = (cocos2d *)__isnanf(v7);
if ( !(_DWORD)v6 )
goto LABEL_4;
LABEL_27:
v7 = 0.0;
goto LABEL_7;
}
v7 = atof((const char *)(*a2 + 14065));
v6 = (cocos2d *)__isnanf(v7);
if ( (_DWORD)v6 )
goto LABEL_27;
LABEL_4:
*(float *)&v8 = 1000000000.0;
if ( v7 > 1000000000.0 || (*(float *)&v8 = -1000000000.0, v7 < -1000000000.0) )
v7 = *(float *)&v8;
LABEL_7:
cocos2d::clampf(v6, v7, -10000.0, 10000.0);
*(_DWORD *)(a1 + 1844) = v9;
v10 = *(cocos2d **)(*(_QWORD *)a3 + 4704LL);
if ( !v10 )
goto LABEL_32;
v11 = (const char *)(*a2 + 14113);
if ( (*(_BYTE *)(*a2 + 14112) & 1) != 0 )
v11 = *(const char **)(*a2 + 14128);
v12 = atof(v11);
v10 = (cocos2d *)__isnanf(v12);
if ( (_DWORD)v10 )
{
LABEL_32:
v12 = 0.0;
goto LABEL_13;
}
v13 = 1000000000.0;
if ( v12 <= 1000000000.0 )
{
v13 = -1000000000.0;
if ( v12 >= -1000000000.0 )
{
LABEL_13:
cocos2d::clampf(v10, v12, -10000.0, 10000.0);
*(_DWORD *)(a1 + 1848) = v14;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4696LL) )
goto LABEL_14;
LABEL_29:
*(_BYTE *)(a1 + 1856) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4712LL) )
goto LABEL_17;
goto LABEL_30;
}
}
cocos2d::clampf(v10, v13, -10000.0, 10000.0);
*(_DWORD *)(a1 + 1848) = v21;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4696LL) )
goto LABEL_29;
LABEL_14:
v15 = (const char *)(*a2 + 14089);
if ( (*(_BYTE *)(*a2 + 14088) & 1) != 0 )
v15 = *(const char **)(*a2 + 14104);
*(_BYTE *)(a1 + 1856) = atoi(v15) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4712LL) )
{
LABEL_17:
v16 = (const char *)(*a2 + 14137);
if ( (*(_BYTE *)(*a2 + 14136) & 1) != 0 )
v16 = *(const char **)(*a2 + 14152);
*(_BYTE *)(a1 + 1857) = atoi(v16) != 0;
result = *(_QWORD *)(*(_QWORD *)a3 + 4720LL);
if ( !result )
goto LABEL_31;
goto LABEL_20;
}
LABEL_30:
*(_BYTE *)(a1 + 1857) = 0;
result = *(_QWORD *)(*(_QWORD *)a3 + 4720LL);
if ( !result )
{
LABEL_31:
*(_DWORD *)(a1 + 1852) = 0;
return result;
}
LABEL_20:
v18 = (const char *)(*a2 + 14161);
if ( (*(_BYTE *)(*a2 + 14160) & 1) != 0 )
v18 = *(const char **)(*a2 + 14176);
v19 = atof(v18);
result = __isnanf(v19);
if ( (_DWORD)result )
goto LABEL_31;
v20 = 1315859240;
if ( v19 > 1000000000.0 || (v20 = -831624408, v19 < -1000000000.0) )
*(_DWORD *)(a1 + 1852) = v20;
else
*(float *)(a1 + 1852) = v19;
return result;
}