//
// sub_1005070C0 from 0x1005070c0 to 0x100507158 (152 bytes)
//
// 1 xrefs:
// > MemberListPopup::init @ 0x100506f80
//
// 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:57 +0000
//
__int64 __fastcall sub_1005070C0(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
_QWORD *v3; // x0
char *v4; // x0
if ( (*(_BYTE *)(result + 864) & 1) == 0 )
{
v1 = result;
if ( *(int *)(result + 868) <= 0
&& *(int *)(result + 872) <= 0
&& *(int *)(result + 876) <= 0
&& (*(_BYTE *)(result + 848) & 1) == 0 )
{
v2 = *(_QWORD *)(result + 856);
if ( !v2 )
{
v3 = sub_1002E736C();
*(_QWORD *)(v1 + 856) = v3;
cocos2d::CCObject::retain((__int64)v3);
v2 = *(_QWORD *)(v1 + 856);
}
sub_1002E7674(v2);
v4 = FriendPickerPopup::create(v1 + 784, 1, 1, 0, 1);
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v4 + 1312LL))(v4);
}
}
return result;
}