//
// EmotePickerPopup::togglePicker from 0x1004db290 to 0x1004db328 (152 bytes)
//
// 3 xrefs:
// > sub_1004D5158 @ 0x1004d5174
// > sub_10050A2F0 @ 0x10050a314
// > sub_100513820 @ 0x10051383c
//
// 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:34 +0000
//
_QWORD *__fastcall EmotePickerPopup::togglePicker(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x21
__int64 v7; // x0
_QWORD *Picker; // x0
__int64 v9; // [xsp+8h] [xbp-28h] BYREF
if ( a1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
return nullptr;
}
if ( !a3 )
return nullptr;
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 512LL))(a3);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 192LL))(a3);
cocos2d::CCNode::convertToWorldSpace(v6, v7, &v9);
Picker = EmotePickerPopup::createPicker((double *)&v9);
return EmotePickerPopup::openAt(Picker, a2, a3);
}