//
// EmotePickerPopup::togglePicker from 0x7794e0 to 0x779532 (82 bytes)
//
// 3 xrefs:
// > ThreadDescPopup::onPickIcon @ 0x7463ba
// > NewThreadPopup::onPickIcon @ 0x7464a8
// > SoundPackDescPopup::onPickIcon @ 0x784bde
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:22 +0000
//
_DWORD *__fastcall EmotePickerPopup::togglePicker(int a1, int a2, cocos2d::CCNode *a3)
{
_DWORD *Picker; // r0
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
if ( a1 )
{
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 684))(a1, 0);
return nullptr;
}
else if ( a3 )
{
EmotePickerPopup::buttonAnchor((EmotePickerPopup *)v7, a3);
Picker = EmotePickerPopup::createPicker((const cocos2d::CCPoint *)v7);
return EmotePickerPopup::openAt(Picker, a2, a3);
}
else
{
return nullptr;
}
}