//
// sub_10046A610 from 0x10046a610 to 0x10046a6f0 (224 bytes)
//
// 1 xrefs:
// > sub_100469F94 @ 0x10046a39c
//
// 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:34 +0000
//
void __fastcall sub_10046A610(__int64 a1)
{
int v2; // w0
int v3; // w20
int v4; // w8
void *v5; // x0
const std::string::value_type *CString; // x0
std::string *v7; // x1
std::string v8; // [xsp+18h] [xbp-28h] BYREF
v2 = sub_1002E757C(*(_QWORD *)(*(_QWORD *)(a1 + 712) + 64LL));
memset(&v8, 0, sizeof(v8));
if ( v2 < 1 )
{
std::string::assign(&v8, "No matches");
}
else
{
v3 = v2;
sub_1002E757C(*(_QWORD *)(*(_QWORD *)(a1 + 712) + 64LL));
v4 = 10 * *(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL) + 10;
if ( v4 >= v3 )
v4 = v3;
v5 = sub_1003065B0("%i to %i of %i", (10 * *(_DWORD *)(*(_QWORD *)(a1 + 712) + 96LL)) | 1u, v4, v3);
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v5);
std::string::assign(&v8, CString);
}
if ( (v8.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v7 = &v8;
else
v7 = (std::string *)v8.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 736) + 928LL))(*(_QWORD *)(a1 + 736), v7);
if ( SHIBYTE(v8.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v8.__r_.__value_.__l.__data_);
}