//
// sub_10042F198 from 0x10042f198 to 0x10042f21c (132 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateLevelFont @ 0x100403b00
// > sub_10042F0CC @ 0x10042f0f4
//
// 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 11:05:05 +0000
//
__int64 __fastcall sub_10042F198(__int64 a1)
{
__int64 result; // x0
char *v3; // x0
std::string __str; // [xsp+8h] [xbp-28h] BYREF
result = *(_QWORD *)(a1 + 1840);
if ( result )
{
v3 = (char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 944LL))(result);
sub_100009900(&__str, v3);
if ( (*(_BYTE *)(a1 + 1904) & 1) == 0 )
{
std::string::operator=((std::string *)(a1 + 1856), &__str);
*(_BYTE *)(a1 + 1848) = 1;
}
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1840) + 536LL))(*(_QWORD *)(a1 + 1840));
*(_QWORD *)(a1 + 1840) = 0;
}
return result;
}