//
// EmotePickerPopup::togglePicker from 0xcba3f8 to 0xcba48c (148 bytes)
//
// 4 xrefs:
// > ThreadDescPopup::onPickIcon @ 0xc64090
// > NewThreadPopup::onPickIcon @ 0xc64250
// > SoundPackDescPopup::onPickIcon @ 0xcccd28
// > ??> @ 0x63718
//
// 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:06:14 +0000
//
_QWORD *__fastcall EmotePickerPopup::togglePicker(__int64 a1, __int64 a2, EmotePickerPopup *this)
{
_QWORD *Picker; // x0
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
if ( a1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
return nullptr;
}
else if ( this )
{
EmotePickerPopup::buttonAnchor(this, &v7);
Picker = (_QWORD *)EmotePickerPopup::createPicker((const cocos2d::CCPoint *)&v7);
return EmotePickerPopup::openAt(Picker, a2, this);
}
else
{
return nullptr;
}
}