//
// ShareCommentLayer::onEmotes from 0x540c2c to 0x540c58 (44 bytes)
//
// 0 xrefs:
//
// 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:52:19 +0000
//
int __fastcall ShareCommentLayer::onEmotes(ShareCommentLayer *this, cocos2d::CCObject *a2)
{
int v3; // r5
cocos2d::CCNode *v4; // r6
int v5; // r7
int v6; // r0
int result; // r0
v3 = *((_DWORD *)this + 137);
v4 = *((cocos2d::CCNode **)this + 138);
v5 = *((_DWORD *)this + 139);
v6 = EmoteSprite::maxEmotesComment(this);
result = EmotePickerPopup::toggle(v5, (int)this + 528, v4, v3, v6, *((_DWORD *)this + 133));
*((_DWORD *)this + 139) = result;
return result;
}