//
// sub_1000093E4 from 0x1000093e4 to 0x100009534 (336 bytes)
//
// 2 xrefs:
// > sub_10007B234 @ 0x10007b5fc
// > sub_10007C0E4 @ 0x10007c20c
//
// 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 10:57:13 +0000
//
void __fastcall sub_1000093E4(__int64 a1, int a2, int a3)
{
__n128 v6; // q0
__n128 v7; // q1
__int64 v8; // x22
__int64 v9; // x0
const std::string::value_type *CString; // x0
std::string *v11; // x1
std::string v12; // [xsp+18h] [xbp-38h] BYREF
sub_1000092F0(a1);
v8 = *(_QWORD *)(a1 + 344);
if ( a3 )
{
v6.n128_u32[0] = 1110704128;
v7.n128_u32[0] = -15.0;
sub_1000262BC(&v12, v6, v7);
(*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v8 + 184LL))(v8, &v12);
memset(&v12, 0, sizeof(v12));
if ( a2 )
{
v9 = sub_1003065B0("%i (%.1f%%)", a2, (float)((float)((float)a2 / (float)a3) * 100.0));
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v9);
std::string::assign(&v12, CString);
}
else
{
std::string::assign(&v12, "0");
}
if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v11 = &v12;
else
v11 = (std::string *)v12.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 344) + 928LL))(*(_QWORD *)(a1 + 344), v11);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 344), 100.0, 0.8, 0.0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 344) + 344LL))(*(_QWORD *)(a1 + 344), 1);
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
}
else
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v8 + 344LL))(*(_QWORD *)(a1 + 344), 0);
}
}