//
// ForceBlockGameObject::customObjectSetup from 0x894964 to 0x894c40 (732 bytes)
//
// 2 xrefs:
// > ??> @ 0x96e80
// > ??> @ 0x1455398
//
// 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:09 +0000
//
__int64 __fastcall ForceBlockGameObject::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
cocos2d *v15; // x0
const char *v16; // x0
float v17; // s8
float v18; // s0
int v19; // s0
const char *v20; // x0
const char *v21; // x0
const char *v22; // x0
__int64 result; // x0
int v24; // s0
int v25; // s0
EffectGameObject::customObjectSetup(a1, a2, a3);
v6 = *(cocos2d **)(*(_QWORD *)a3 + 1192LL);
if ( !v6 )
goto LABEL_30;
if ( (*(_BYTE *)(*a2 + 3576) & 1) != 0 )
{
v7 = atof(*(const char **)(*a2 + 3592));
v6 = (cocos2d *)__isnanf(v7);
if ( !(_DWORD)v6 )
goto LABEL_4;
LABEL_30:
v7 = 0.0;
goto LABEL_7;
}
v7 = atof((const char *)(*a2 + 3577));
v6 = (cocos2d *)__isnanf(v7);
if ( (_DWORD)v6 )
goto LABEL_30;
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 + 1840) = v9;
v10 = *(cocos2d **)(*(_QWORD *)a3 + 4208LL);
if ( !v10 )
goto LABEL_37;
v11 = (const char *)(*a2 + 12625);
if ( (*(_BYTE *)(*a2 + 12624) & 1) != 0 )
v11 = *(const char **)(*a2 + 12640);
v12 = atof(v11);
v10 = (cocos2d *)__isnanf(v12);
if ( (_DWORD)v10 )
{
LABEL_37:
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 + 1844) = v14;
v15 = *(cocos2d **)(*(_QWORD *)a3 + 4216LL);
if ( v15 )
goto LABEL_14;
LABEL_36:
v17 = 0.0;
goto LABEL_19;
}
}
cocos2d::clampf(v10, v13, -10000.0, 10000.0);
*(_DWORD *)(a1 + 1844) = v25;
v15 = *(cocos2d **)(*(_QWORD *)a3 + 4216LL);
if ( !v15 )
goto LABEL_36;
LABEL_14:
v16 = (const char *)(*a2 + 12649);
if ( (*(_BYTE *)(*a2 + 12648) & 1) != 0 )
v16 = *(const char **)(*a2 + 12664);
v17 = atof(v16);
v15 = (cocos2d *)__isnanf(v17);
if ( (_DWORD)v15 )
goto LABEL_36;
v18 = 1000000000.0;
if ( v17 <= 1000000000.0 )
{
v18 = -1000000000.0;
if ( v17 >= -1000000000.0 )
{
LABEL_19:
cocos2d::clampf(v15, v17, -10000.0, 10000.0);
*(_DWORD *)(a1 + 1848) = v19;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4224LL) )
goto LABEL_20;
LABEL_32:
*(_BYTE *)(a1 + 1852) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4232LL) )
goto LABEL_23;
goto LABEL_33;
}
}
cocos2d::clampf(v15, v18, -10000.0, 10000.0);
*(_DWORD *)(a1 + 1848) = v24;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4224LL) )
goto LABEL_32;
LABEL_20:
v20 = (const char *)(*a2 + 12673);
if ( (*(_BYTE *)(*a2 + 12672) & 1) != 0 )
v20 = *(const char **)(*a2 + 12688);
*(_BYTE *)(a1 + 1852) = atoi(v20) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4232LL) )
{
LABEL_23:
v21 = (const char *)(*a2 + 12697);
if ( (*(_BYTE *)(*a2 + 12696) & 1) != 0 )
v21 = *(const char **)(*a2 + 12712);
*(_BYTE *)(a1 + 1853) = atoi(v21) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 4240LL) )
goto LABEL_26;
LABEL_34:
*(_DWORD *)(a1 + 1856) = 0;
return 0;
}
LABEL_33:
*(_BYTE *)(a1 + 1853) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 4240LL) )
goto LABEL_34;
LABEL_26:
v22 = (const char *)(*a2 + 12721);
if ( (*(_BYTE *)(*a2 + 12720) & 1) != 0 )
v22 = *(const char **)(*a2 + 12736);
result = atoi(v22);
*(_DWORD *)(a1 + 1856) = result;
return result;
}