//
// FriendsProfilePage::getUserListFailed from 0x100273704 to 0x1002737ec (232 bytes)
//
// 2 xrefs:
// > sub_1002737EC @ 0x1002737f0
// > ??> @ 0x100918320
//
// 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:01:48 +0000
//
__int64 __fastcall FriendsProfilePage::getUserListFailed(__int64 result, int a2, int a3)
{
__int64 v4; // x19
int v5; // w8
_DWORD *v6; // x0
const char *v7; // x1
v4 = result;
v5 = *(_DWORD *)(result + 816);
if ( a2 == 2 )
{
if ( v5 != 1 )
{
sub_10051B1EC(result);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 904) + 344LL))(*(_QWORD *)(v4 + 904), 1);
if ( a3 == -2 )
{
v6 = *(_DWORD **)(v4 + 872);
if ( v6 )
{
cocos2d::CCObject::release(v6);
*(_QWORD *)(v4 + 872) = 0;
}
*(_BYTE *)(v4 + 920) = 1;
sub_1002726C0(v4);
sub_100526440(*(_QWORD *)(v4 + 688), 0.0);
v7 = "Nothing found";
}
else
{
v7 = "Something went wrong";
}
return sub_10051B1FC(v4, v7);
}
}
else if ( v5 == a2 )
{
sub_10051B1EC(result);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v4 + 904) + 344LL))(*(_QWORD *)(v4 + 904), 1);
if ( a3 == -2 )
v7 = "Nothing found";
else
v7 = "Something went wrong";
return sub_10051B1FC(v4, v7);
}
return result;
}