//
// UISettingsGameObject::customObjectSetup from 0x892e08 to 0x892ffc (500 bytes)
//
// 2 xrefs:
// > ??> @ 0xce020
// > ??> @ 0x1452b48
//
// 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:08 +0000
//
bool __fastcall UISettingsGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
const char *v6; // x0
int v7; // w1
const char *v8; // x0
int v9; // w0
const char *v10; // x0
const char *v11; // x0
const char *v12; // x0
const char *v13; // x0
_BOOL8 result; // x0
EffectGameObject::customObjectSetup(a1, a2, a3);
if ( *(_QWORD *)(*(_QWORD *)a3 + 408LL) )
{
v6 = (const char *)(*a2 + 1225);
if ( (*(_BYTE *)(*a2 + 1224) & 1) != 0 )
v6 = *(const char **)(*a2 + 1240);
v7 = atoi(v6);
}
else
{
v7 = 0;
}
EffectGameObject::setTargetID(a1, v7);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 568LL) )
{
EffectGameObject::setTargetID2(a1, 0);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3080LL) )
goto LABEL_9;
LABEL_22:
*(_DWORD *)(a1 + 1840) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3088LL) )
goto LABEL_12;
LABEL_23:
*(_DWORD *)(a1 + 1844) = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3096LL) )
goto LABEL_15;
goto LABEL_24;
}
v8 = (const char *)(*a2 + 1705);
if ( (*(_BYTE *)(*a2 + 1704) & 1) != 0 )
v8 = *(const char **)(*a2 + 1720);
v9 = atoi(v8);
EffectGameObject::setTargetID2(a1, v9);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3080LL) )
goto LABEL_22;
LABEL_9:
v10 = (const char *)(*a2 + 9241);
if ( (*(_BYTE *)(*a2 + 9240) & 1) != 0 )
v10 = *(const char **)(*a2 + 9256);
*(_DWORD *)(a1 + 1840) = atoi(v10);
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3088LL) )
goto LABEL_23;
LABEL_12:
v11 = (const char *)(*a2 + 9265);
if ( (*(_BYTE *)(*a2 + 9264) & 1) != 0 )
v11 = *(const char **)(*a2 + 9280);
*(_DWORD *)(a1 + 1844) = atoi(v11);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3096LL) )
{
LABEL_15:
v12 = (const char *)(*a2 + 9289);
if ( (*(_BYTE *)(*a2 + 9288) & 1) != 0 )
v12 = *(const char **)(*a2 + 9304);
*(_BYTE *)(a1 + 1848) = atoi(v12) != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3104LL) )
goto LABEL_18;
LABEL_25:
*(_BYTE *)(a1 + 1849) = 0;
return 0;
}
LABEL_24:
*(_BYTE *)(a1 + 1848) = 0;
if ( !*(_QWORD *)(*(_QWORD *)a3 + 3104LL) )
goto LABEL_25;
LABEL_18:
v13 = (const char *)(*a2 + 9313);
if ( (*(_BYTE *)(*a2 + 9312) & 1) != 0 )
v13 = *(const char **)(*a2 + 9328);
result = atoi(v13) != 0;
*(_BYTE *)(a1 + 1849) = result;
return result;
}