//
// sub_1001F63E8 from 0x1001f63e8 to 0x1001f6514 (300 bytes)
//
// 1 xrefs:
// > sub_1001F50BC @ 0x1001f5754
//
// 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:00:40 +0000
//
void __fastcall sub_1001F63E8(__int64 a1)
{
int v2; // w0
int v3; // w20
int v4; // w21
int v5; // w8
int v6; // w9
int v7; // w8
__int64 v8; // x0
const std::string::value_type *CString; // x0
int v10; // w20
std::string *v11; // x1
std::string v12; // [xsp+18h] [xbp-38h] BYREF
v2 = sub_1002E757C(*(_QWORD *)(*(_QWORD *)(a1 + 712) + 64LL));
v3 = v2 - 1;
if ( v2 < 1 )
{
memset(&v12, 0, sizeof(v12));
std::string::assign(&v12, "No matches");
v10 = 0;
}
else
{
v4 = *(_DWORD *)(a1 + 1104);
memset(&v12, 0, sizeof(v12));
v5 = v4 * *(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL);
v6 = v5 + 1;
v7 = v5 + v4;
if ( v7 >= v2 )
v7 = v2;
v8 = sub_1003065B0("%i to %i of %i", v6, v7, v2);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v8);
std::string::assign(&v12, CString);
v10 = (int)(float)(v3 / v4);
}
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 + 792) + 928LL))(*(_QWORD *)(a1 + 792), v11);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 800) + 344LL))(
*(_QWORD *)(a1 + 800),
*(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL) > 0);
(*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 808) + 344LL))(
*(_QWORD *)(a1 + 808),
*(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL) < v10);
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
}