//
// EmotePickerPopup::onClose from 0xcb8da8 to 0xcb8e10 (104 bytes)
//
// 2 xrefs:
// > ??> @ 0x99fd0
// > ??> @ 0x14fa2f8
//
// 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:13 +0000
//
__int64 __fastcall EmotePickerPopup::onClose(EmotePickerPopup *this, cocos2d::CCObject *a2)
{
__int64 v4; // x0
void (__fastcall ***v5)(_QWORD, EmotePickerPopup *); // x2
v4 = *((_QWORD *)this + 146);
if ( v4 && *(EmotePickerPopup **)(v4 + 496) == (EmotePickerPopup *)((char *)this + 544) )
*(_QWORD *)(v4 + 496) = 0;
v5 = *((void (__fastcall ****)(_QWORD, EmotePickerPopup *))this + 148);
if ( v5 )
{
*((_QWORD *)this + 148) = 0;
(**v5)(v5, this);
}
return EditorWindowPopup::onClose(this, a2);
}