//
// EmotePickerPopup::addCell from 0x778d90 to 0x778e2c (156 bytes)
//
// 2 xrefs:
// > EmotePickerPopup::onBuildWindowContent @ 0x779852
// > EmotePickerPopup::onBuildWindowContent @ 0x7798a2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:21 +0000
//
cocos2d::CCSprite *__fastcall EmotePickerPopup::addCell(int a1, int a2, int a3)
{
cocos2d::CCSprite *result; // r0
EmoteSprite *v6; // r4
int v7; // r5
void (__fastcall *v8)(int, _BYTE *); // r10
void (__fastcall *v9)(EmoteSprite *, _BYTE *); // r10
_BYTE v10[8]; // [sp+Ch] [bp-14h] BYREF
_DWORD (*v11)(EmotePickerPopup *__hidden, cocos2d::CCObject *); // [sp+14h] [bp-Ch]
int v12; // [sp+18h] [bp-8h]
result = EmoteSprite::createWithDef(a2);
v6 = result;
if ( result )
{
v12 = 0;
v11 = EmotePickerPopup::onPickEmote;
v7 = CCMenuItemSpriteExtra::create((int)result, 0, a1, (int)EmotePickerPopup::onPickEmote, 0);
v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, 26.0, 26.0);
v8(v7, v10);
v9 = *(void (__fastcall **)(EmoteSprite *, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 13.0, 13.0);
v9(v6, v10);
EmoteSprite::fitToHeight(v6, 20.0, 0.0);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 36))(v7, a3);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 728) + 228))(*(_DWORD *)(a1 + 728), v7);
return (cocos2d::CCSprite *)v7;
}
return result;
}