//
// sub_10038EC7C from 0x10038ec7c to 0x10038ed20 (164 bytes)
//
// 2 xrefs:
// > sub_10038DCA0 @ 0x10038e4a8
// > SetupMGTrigger::valuePopupClosed @ 0x10038f2d0
//
// 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:03:37 +0000
//
void __fastcall sub_10038EC7C(__int64 a1)
{
void *v2; // x0
char *CString; // x0
std::string *v4; // x1
std::string v5; // [xsp+8h] [xbp-28h] BYREF
v2 = sub_1003065B0("%.02f", *(float *)(a1 + 1052));
CString = (char *)cocos2d::CCString::getCString((__int64)v2);
sub_100009900(&v5, CString);
if ( *(float *)(a1 + 1052) == -99999.0 )
std::string::assign(&v5, "-");
if ( (v5.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v4 = &v5;
else
v4 = (std::string *)v5.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 1064) + 928LL))(*(_QWORD *)(a1 + 1064), v4);
if ( SHIBYTE(v5.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v5.__r_.__value_.__l.__data_);
}