//
// EmotePickerPopup::addCell from 0x1009033f0 to 0x1009034c4 (212 bytes)
//
// 2 xrefs:
// > EmotePickerPopup::onBuildWindowContent @ 0x1009031de
// > EmotePickerPopup::onBuildWindowContent @ 0x10090332a
//
// 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
//
void *__fastcall EmotePickerPopup::addCell(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v3; // rax
__int64 v5; // rax
__int64 v6; // r12
void *v7; // r15
float v9[12]; // [rsp+0h] [rbp-30h] BYREF
*(_QWORD *)v9 = v3;
v5 = sub_100904430(a2);
if ( !v5 )
return nullptr;
v6 = v5;
v7 = CCMenuItemSpriteExtra::create(v5, 0, a1, (__int64)EmotePickerPopup::onPickEmote, 0);
sub_100278260(v9, 26.0, 26.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 320LL))(v7, v9);
sub_100278250(v9, 13.0, 13.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, v9);
EmoteSprite::fitToHeight(v6, 20.0, 0.0);
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v7 + 72LL))(v7, a3);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v7);
return v7;
}