//
// NewThreadPopup::onOpenPicker from 0xc69f00 to 0xc69f54 (84 bytes)
//
// 3 xrefs:
// > ??> @ 0xd3c78
// > NewThreadPopup::init @ 0xc7e67c
// > ??> @ 0x1546488
//
// 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 13:05:26 +0000
//
_BYTE *__fastcall NewThreadPopup::onOpenPicker(_BYTE *this, cocos2d::CCObject *a2)
{
FriendPickerDelegate *v2; // x1
FriendPickerPopup *v3; // x0
char *v4; // x2
__int64 v5; // x0
if ( !*(this + 736) )
{
if ( *(this + 737) )
{
v3 = (FriendPickerPopup *)(this + 672);
v2 = nullptr;
LOBYTE(v4) = 0;
}
else
{
v2 = (FriendPickerDelegate *)((char *)&dword_0 + 1);
v3 = (FriendPickerPopup *)(this + 672);
v4 = (char *)&dword_0 + 1;
}
v5 = FriendPickerPopup::create(v3, v2, (unsigned __int8)v4, 0, 0);
return (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
return this;
}