//
// EmotePickerPopup::addCell from 0xcb90f4 to 0xcb9214 (288 bytes)
//
// 3 xrefs:
// > EmotePickerPopup::onBuildWindowContent @ 0xcbaa48
// > EmotePickerPopup::onBuildWindowContent @ 0xcbaab8
// > ??> @ 0x8e918
//
// 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::addCell(__int64 a1, __int64 a2, unsigned int a3)
{
cocos2d::CCSprite *v5; // x0
EmoteSprite *v6; // x22
__int64 v7; // x19
void (__fastcall *v8)(__int64, _BYTE *); // x25
void (__fastcall *v9)(EmoteSprite *, _BYTE *); // x25
long double v10; // q1
_BYTE v12[8]; // [xsp+50h] [xbp+50h] BYREF
v5 = EmoteSprite::createWithDef(a2);
v6 = v5;
if ( !v5 )
return 0;
v7 = CCMenuItemSpriteExtra::create((__int64)v5, 0, a1, (__int64)EmotePickerPopup::onPickEmote, 0);
v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, 26.0, 26.0);
v8(v7, v12);
v9 = *(void (__fastcall **)(EmoteSprite *, _BYTE *))(*(_QWORD *)v6 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 13.0, 13.0);
v9(v6, v12);
LODWORD(v10) = 0;
EmoteSprite::fitToHeight(v6, 20.0, v10);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 72LL))(v7, a3);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v7);
return v7;
}