//
// EmotePickerPopup::openAt from 0xcb900c to 0xcb90f4 (232 bytes)
//
// 3 xrefs:
// > EmotePickerPopup::toggle @ 0xcb9f14
// > EmotePickerPopup::togglePicker @ 0xcba444
// > ??> @ 0x101d58
//
// 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
//
_QWORD *__fastcall EmotePickerPopup::openAt(_QWORD *a1, __int64 a2, EmotePickerPopup *this)
{
const cocos2d::CCSize *v4; // x0
__int64 v7; // [xsp+48h] [xbp+48h] BYREF
float v8; // [xsp+50h] [xbp+50h] BYREF
float v9; // [xsp+54h] [xbp+54h]
_BYTE v10[16]; // [xsp+58h] [xbp+58h] BYREF
if ( a1 )
{
a1[148] = a2;
EmotePickerPopup::buttonAnchor(this, &v7);
v4 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(EmotePickerPopup *))(*(_QWORD *)this + 328LL))(this);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v8, v4);
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)v10,
(float)(*(float *)&v7 - (float)(v8 * 0.5)) - 4.0,
(float)(*((float *)&v7 + 1) - (float)(v9 * 0.5)) - 4.0,
v8 + 8.0,
v9 + 8.0);
cocos2d::CCRect::operator=(a1 + 149, v10);
(*(void (__fastcall **)(_QWORD *))(*a1 + 1312LL))(a1);
}
return a1;
}