//
// sub_1005038D0 from 0x1005038d0 to 0x100503988 (184 bytes)
//
// 2 xrefs:
// > FriendPickerPopup::init @ 0x100503588
// > sub_100503A98 @ 0x100503ac4
//
// 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:06:55 +0000
//
_QWORD *__fastcall sub_1005038D0(_QWORD *result)
{
_QWORD *v1; // x20
int v2; // w0
__int64 v3; // x19
void *v4; // x0
__int64 CString; // x1
int v6; // [xsp+0h] [xbp-30h]
if ( result[109] )
{
v1 = result;
result = (_QWORD *)result[99];
if ( result )
{
v2 = (*(__int64 (__fastcall **)(_QWORD *))(*result + 16LL))(result);
v3 = v1[109];
if ( *((_BYTE *)v1 + 828) == 1 )
{
v6 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v1[99] + 56LL))(v1[99]) + v2;
v4 = sub_1003065B0("%i/%i", v6, 10);
}
else
{
v4 = sub_1003065B0("%i/%i", v2, 9);
}
CString = cocos2d::CCString::getCString((__int64)v4);
return (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 928LL))(v3, CString);
}
}
return result;
}