//
// EmotePickerPopup::addCell from 0x1004db728 to 0x1004db810 (232 bytes)
//
// 2 xrefs:
// > EmotePickerPopup::onBuildWindowContent @ 0x1004db634
// > EmotePickerPopup::onBuildWindowContent @ 0x1004db6a0
//
// 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 11:06:34 +0000
//
void *__fastcall EmotePickerPopup::addCell(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v5; // x0
__int64 v6; // x22
void *v7; // x21
__n128 v8; // q0
float v10; // [xsp+8h] [xbp-28h] BYREF
v5 = EmoteSprite::createWithDef(a2);
if ( !v5 )
return nullptr;
v6 = v5;
v7 = CCMenuItemSpriteExtra::create(v5, 0, a1, (__int64)EmotePickerPopup::onPickEmote, 0);
sub_1000262C4(&v10, 26.0, 26.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 320LL))(v7, &v10);
sub_1000262BC(&v10, 13.0, 13.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v10);
v8 = EmoteSprite::fitToHeight(v6, 20.0, 0.0);
(*(void (__fastcall **)(void *, __int64, __n128))(*(_QWORD *)v7 + 72LL))(v7, a3, v8);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v7);
return v7;
}