//
// EmotePickerPopup::addCell from 0x140123f70 to 0x14012404b (219 bytes)
//
// 3 xrefs:
// > EmotePickerPopup::onBuildWindowContent @ 0x140123dab
// > EmotePickerPopup::onBuildWindowContent @ 0x140123f1c
// > ??> @ 0x140916844
//
// 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 11:26:57 +0000
//
cocos2d::CCObject *__fastcall EmotePickerPopup::addCell(__int64 a1, __int64 a2, unsigned int a3)
{
cocos2d::CCObject *result; // rax
cocos2d::CCObject *v6; // rsi
cocos2d::CCObject *v7; // rdi
__int64 v8; // rbx
__int64 v9; // rax
__int64 v10; // rbx
__int64 v11; // rax
char v12; // [rsp+58h] [rbp+20h] BYREF
result = (cocos2d::CCObject *)EmoteSprite::createWithDef(a2);
v6 = result;
if ( result )
{
v7 = CCMenuItemSpriteExtra::create((int)result, 0, a1, (__int64)EmotePickerPopup::onPickEmote);
v8 = *(_QWORD *)v7;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v12, 26.0, 26.0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v8 + 312))(v7, v9);
v10 = *(_QWORD *)v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 13.0, 13.0);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v10 + 184))(v6, v11);
EmoteSprite::fitToHeight(v6, 20.0, 0.0);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v7 + 64LL))(v7, a3);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 1032) + 464LL))(*(_QWORD *)(a1 + 1032), v7);
return v7;
}
return result;
}