//
// TextGameObject::customObjectSetup from 0x1005d1a50 to 0x1005d1b39 (233 bytes)
//
// 1 xrefs:
// > ??> @ 0x100972938
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall TextGameObject::customObjectSetup(
TextGameObject *a1,
std::vector *a2,
std::vector *a3)
{
__int128 v3; // xmm0
std::__vector_base::pointer begin; // rdi
const char *longStorage; // rdi
__int64 v9; // rsi
std::__vector_base::pointer v10; // rax
std::__vector_base::pointer v11; // rax
std::string v12; // [rsp+8h] [rbp-48h] BYREF
std::string v13[2]; // [rsp+20h] [rbp-30h] BYREF
if ( *((_QWORD *)a3->__begin_ + 488) )
{
begin = a2->__begin_;
if ( (a2->__begin_[488].m_data.m_short.sizex2 & 1) != 0 )
longStorage = begin[488].m_data.m_long.longStorage;
else
longStorage = begin[488].m_data.m_short.shortStorage.__elems_;
v9 = (unsigned int)atoi(longStorage);
}
else
{
v9 = 0;
}
((void (__fastcall *)(TextGameObject *, __int64))a1->updateTextKerning)(a1, v9);
if ( *((_QWORD *)a3->__begin_ + 31) )
{
v10 = a2->__begin_;
if ( (a2->__begin_[31].m_data.m_short.sizex2 & 1) != 0 )
{
sub_100006B70(v13, v10[31].m_data.m_long.longStorage, v10[31].m_data.m_long.size, *(double *)&v3);
}
else
{
v11 = v10 + 31;
v13[0].__r_.__value_.__r.__words[2] = (std::string::size_type)v11->m_data.m_long.longStorage;
v3 = *(_OWORD *)&v11->m_data.m_short.sizex2;
*(_OWORD *)&v13[0].__r_.__value_.__l.0 = *(_OWORD *)&v11->m_data.m_short.sizex2;
}
}
else
{
*(_WORD *)&v13[0].__r_.__value_.__l.0 = 0;
}
LevelTools::base64DecodeString(&v12, v13, *(double *)&v3);
TextGameObject::updateTextObject((__int64)a1, &v12, 0);
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v12.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v13[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v13[0].__r_.__value_.__l.__data_);
}