//
// TextGameObject::customObjectSetup from 0x100265128 to 0x100265234 (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007d0dd8
//
// 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)
{
std::__vector_base::pointer capacitym1; // x0
__int64 v7; // x1
std::__vector_base::pointer begin; // x8
std::__vector_base::pointer v9; // x8
void *v10[2]; // [xsp+0h] [xbp-50h] BYREF
char *longStorage; // [xsp+10h] [xbp-40h]
std::string __p; // [xsp+18h] [xbp-38h] BYREF
if ( *((_QWORD *)a3->__begin_ + 488) )
{
capacitym1 = a2->__begin_ + 488;
if ( a2->__begin_[488].m_data.m_short.shortStorage.__elems_[22] < 0 )
capacitym1 = (std::__vector_base::pointer)capacitym1->m_data.m_long.capacitym1;
v7 = atoi((const char *)capacitym1);
}
else
{
v7 = 0;
}
((void (__fastcall *)(TextGameObject *, __int64))a1->updateTextKerning)(a1, v7);
if ( *((_QWORD *)a3->__begin_ + 31) )
{
begin = a2->__begin_;
if ( a2->__begin_[31].m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(v10, (void *)begin[31].m_data.m_long.capacitym1, begin[31].m_data.m_long.size);
}
else
{
v9 = begin + 31;
*(_OWORD *)v10 = *(_OWORD *)&v9->m_data.m_short.sizex2;
longStorage = v9->m_data.m_long.longStorage;
}
}
else
{
sub_100009900(v10, "");
}
LevelTools::base64DecodeString((__n128 *)v10, (__n128 *)&__p);
TextGameObject::updateTextObject((__int64)a1, &__p, 0);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(longStorage) < 0 )
operator delete(v10[0]);
}