//
// EmotePickerPopup::toggle from 0xcb9e98 to 0xcb9f60 (200 bytes)
//
// 8 xrefs:
// > EditLevelLayer::onEmotes @ 0x7ed5b4
// > ShareCommentLayer::onEmotes @ 0x90df98
// > SetTextPopup::onEmotes @ 0xa1e004
// > ThreadViewPopup::onEmotes @ 0xc62f94
// > ThreadDescPopup::onEmotes @ 0xc640e0
// > NewThreadPopup::onEmotes @ 0xc67d58
// > SoundPackDescPopup::onEmotes @ 0xcccd78
// > ??> @ 0x798e8
//
// 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::toggle(__int64 a1, __int64 a2, EmotePickerPopup *this, __int64 a4, int a5, int a6)
{
_QWORD *v8; // x0
__int64 v13; // [xsp+50h] [xbp+50h] BYREF
if ( a1 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
return nullptr;
}
else if ( this && a4 )
{
EmotePickerPopup::buttonAnchor(this, &v13);
v8 = (_QWORD *)EmotePickerPopup::create(a4, (const cocos2d::CCPoint *)&v13, a5, a6);
return EmotePickerPopup::openAt(v8, a2, this);
}
else
{
return nullptr;
}
}