//
// LabelGameObject::customObjectSetup from 0x140654f20 to 0x1406550ea (458 bytes)
//
// 4 xrefs:
// > ??> @ 0x14082e4e8
// > ??> @ 0x1408e9150
// > ??> @ 0x1408e9184
// > ??> @ 0x1409316a0
//
// This function is hookable on this platform (idp: pc, 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 11:35:44 +0000
//
bool __fastcall LabelGameObject::customObjectSetup(__int64 a1, __int64 a2, __int64 a3)
{
int v3; // edi
int v7; // eax
const char *v8; // rcx
int v9; // eax
const char *v10; // rcx
int v11; // eax
const char *v12; // rcx
unsigned int v13; // eax
const char *v14; // rcx
int v15; // eax
const char *v16; // rcx
__int64 *v17; // rbp
__int64 v18; // rbx
float v19; // xmm1_4
__int64 v20; // rax
const char *v21; // rcx
char v23; // [rsp+40h] [rbp+8h] BYREF
v3 = 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 640LL) )
{
v8 = (const char *)(*(_QWORD *)a2 + 2560LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 2584LL) > 0xFu )
v8 = *(const char **)v8;
v7 = atoi(v8);
}
else
{
v7 = 0;
}
*(_DWORD *)(a1 + 1696) = v7;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3112LL) )
{
v10 = (const char *)(*(_QWORD *)a2 + 12448LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12472LL) > 0xFu )
v10 = *(const char **)v10;
v9 = atoi(v10);
}
else
{
v9 = 0;
}
*(_BYTE *)(a1 + 1912) = v9 != 0;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3120LL) )
{
v12 = (const char *)(*(_QWORD *)a2 + 12480LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12504LL) > 0xFu )
v12 = *(const char **)v12;
v11 = atoi(v12);
}
else
{
v11 = 0;
}
*(_DWORD *)(a1 + 1916) = v11;
if ( *(_QWORD *)(*(_QWORD *)a3 + 3904LL) )
{
v14 = (const char *)(*(_QWORD *)a2 + 15616LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 15640LL) > 0xFu )
v14 = *(const char **)v14;
v13 = atoi(v14);
}
else
{
v13 = 0;
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1600LL))(a1, v13);
if ( *(_QWORD *)(*(_QWORD *)a3 + 3128LL) )
{
v16 = (const char *)(*(_QWORD *)a2 + 12512LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 12536LL) > 0xFu )
v16 = *(const char **)v16;
v15 = atoi(v16);
}
else
{
v15 = 0;
}
v17 = *(__int64 **)(a1 + 1856);
*(_DWORD *)(a1 + 1908) = v15;
if ( v17 )
{
v18 = *v17;
if ( v15 == 1 )
{
v19 = 0.0;
}
else if ( v15 == 2 )
{
v19 = 1.0;
}
else
{
v19 = 0.5;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v19, 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v18 + 288))(v17, v20);
}
if ( *(_QWORD *)(*(_QWORD *)a3 + 3728LL) )
{
v21 = (const char *)(*(_QWORD *)a2 + 14912LL);
if ( *(_QWORD *)(*(_QWORD *)a2 + 14936LL) > 0xFu )
v21 = *(const char **)v21;
v3 = atoi(v21);
}
*(_BYTE *)(a1 + 1920) = v3 != 0;
return v3 != 0;
}