//
// EmotePickerPopup::create from 0x1009024e0 to 0x10090264b (363 bytes)
//
// 1 xrefs:
// > EmotePickerPopup::toggle @ 0x100902b31
//
// This function is hookable on this platform (idp: pc, 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 12:38:03 +0000
//
_QWORD *__fastcall EmotePickerPopup::create(__int64 a1, _QWORD *a2, unsigned int a3, unsigned int a4)
{
_QWORD *v6; // rbx
__int64 v8; // [rsp+8h] [rbp-38h] BYREF
_QWORD *v9; // [rsp+10h] [rbp-30h]
v6 = operator new(0x4D8u);
__bzero(v6, 1240);
EditorWindowPopup::EditorWindowPopup((__int64)v6);
v9 = a2;
*v6 = off_100BB8E50;
v6[40] = off_100BB9460;
v6[41] = &off_100BB94D0;
v6[42] = off_100BB94E8;
v6[43] = off_100BB9508;
v6[44] = off_100BB9530;
v6[51] = off_100BB9560;
v6[54] = off_100BB95E0;
v6[68] = off_100BB9600;
v6[83] = &off_100BB9648;
v6[84] = off_100BB9660;
*((_OWORD *)v6 + 73) = 0;
v6[148] = 0;
sub_1002787A0(v6 + 149);
*((_DWORD *)v6 + 302) = -1;
*((_OWORD *)v6 + 76) = 0;
v6[154] = 0;
sub_1002782D0(&v8, v9);
if ( (unsigned __int8)EmotePickerPopup::init(v6, a1, &v8, a3, a4) )
{
cocos2d::CCObject::autorelease((__int64)v6);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v6 + 16LL))(v6);
return nullptr;
}
return v6;
}