//
// TextGameObject::customObjectSetup from 0x1006a32f0 to 0x1006a33d9 (233 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b853f0
//
// 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 12:35:18 +0000
//
void __fastcall TextGameObject::customObjectSetup(__int64 a1, __int64 *a2, __int64 a3)
{
__int64 v6; // rdi
const char *v7; // rdi
__int64 v8; // rsi
__int64 v9; // rax
std::string v10; // [rsp+8h] [rbp-48h] BYREF
std::string v11[2]; // [rsp+20h] [rbp-30h] BYREF
if ( *(_QWORD *)(*(_QWORD *)a3 + 3904LL) )
{
v6 = *a2;
if ( (*(_BYTE *)(*a2 + 11712) & 1) != 0 )
v7 = *(const char **)(v6 + 11728);
else
v7 = (const char *)(v6 + 11713);
v8 = (unsigned int)atoi(v7);
}
else
{
v8 = 0;
}
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1752LL))(a1, v8);
if ( *(_QWORD *)(*(_QWORD *)a3 + 248LL) )
{
v9 = *a2;
if ( (*(_BYTE *)(*a2 + 744) & 1) != 0 )
sub_10001AD30(v11, *(const void **)(v9 + 760), *(_QWORD *)(v9 + 752));
else
v11[0] = *(std::string *)(v9 + 744);
}
else
{
*(_WORD *)&v11[0].__r_.__value_.__l.0 = 0;
}
LevelTools::base64DecodeString(&v10, v11);
TextGameObject::updateTextObject(a1, &v10, 0);
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v10.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v11[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v11[0].__r_.__value_.__l.__data_);
}