{"type": "func", "start": 13340916, "end": 13341204, "name": "EmotePickerPopup::addCell", "pseudocode": "// \n// EmotePickerPopup::addCell from 0xcb90f4 to 0xcb9214 (288 bytes)\n// \n// 3 xrefs:\n// > EmotePickerPopup::onBuildWindowContent @ 0xcbaa48\n// > EmotePickerPopup::onBuildWindowContent @ 0xcbaab8\n// > <???> @ 0x8e918\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:13 +0000\n// \n\n__int64 __fastcall EmotePickerPopup::addCell(__int64 a1, __int64 a2, unsigned int a3)\n{\n  cocos2d::CCSprite *v5; // x0\n  EmoteSprite *v6; // x22\n  __int64 v7; // x19\n  void (__fastcall *v8)(__int64, _BYTE *); // x25\n  void (__fastcall *v9)(EmoteSprite *, _BYTE *); // x25\n  long double v10; // q1\n  _BYTE v12[8]; // [xsp+50h] [xbp+50h] BYREF\n\n  v5 = EmoteSprite::createWithDef(a2);\n  v6 = v5;\n  if ( !v5 )\n    return 0;\n  v7 = CCMenuItemSpriteExtra::create((__int64)v5, 0, a1, (__int64)EmotePickerPopup::onPickEmote, 0);\n  v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 320LL);\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, 26.0, 26.0);\n  v8(v7, v12);\n  v9 = *(void (__fastcall **)(EmoteSprite *, _BYTE *))(*(_QWORD *)v6 + 184LL);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 13.0, 13.0);\n  v9(v6, v12);\n  LODWORD(v10) = 0;\n  EmoteSprite::fitToHeight(v6, 20.0, v10);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 72LL))(v7, a3);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v7);\n  return v7;\n}", "assembly": "; \n; EmotePickerPopup::addCell from 0xcb90f4 to 0xcb9214 (288 bytes)\n; \n; 3 xrefs:\n; > EmotePickerPopup::onBuildWindowContent @ 0xcbaa48\n; > EmotePickerPopup::onBuildWindowContent @ 0xcbaab8\n; > <???> @ 0x8e918\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:13 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xcb90f4\nMOV             X29, SP                                                ; +0x4, 0xcb90f8\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x8, 0xcb90fc\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcb9100\nSTR             X25, [SP,#0x60+var_20]                                 ; +0x10, 0xcb9104\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x14, 0xcb9108\nMOV             X23, X0                                                ; +0x18, 0xcb910c\nMOV             X0, X1                                                 ; +0x1c, 0xcb9110\nLDR             X1, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xcb9114\nMOV             W24, W2                                                ; +0x24, 0xcb9118\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x28, 0xcb911c\nLDR             X1, [X1]                                               ; +0x2c, 0xcb9120\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x30, 0xcb9124\nBL              _ZN11EmoteSprite13createWithDefEPK8EmoteDef; EmoteSprite::createWithDef(EmoteDef const*) ; +0x34, 0xcb9128\nMOV             X22, X0                                                ; +0x38, 0xcb912c\nCBZ             X0, loc_CB9208                                         ; +0x3c, 0xcb9130\nADRP            X3, #_ZN16EmotePickerPopup11onPickEmoteEPN7cocos2d8CCObjectE_ptr@PAGE ; +0x40, 0xcb9134\nMOV             X4, #0                                                 ; +0x44, 0xcb9138\nMOV             X2, X23                                                ; +0x48, 0xcb913c\nMOV             X1, #0                                                 ; +0x4c, 0xcb9140\nADD             X20, X29, #0x60+var_10                                 ; +0x50, 0xcb9144\nLDR             X3, [X3,#_ZN16EmotePickerPopup11onPickEmoteEPN7cocos2d8CCObjectE_ptr@PAGEOFF]; EmotePickerPopup::onPickEmote(cocos2d::CCObject *) ... ; +0x54, 0xcb9148\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x58, 0xcb914c\nMOV             X19, X0                                                ; +0x5c, 0xcb9150\nFMOV            S0, #26.0; float                                       ; +0x60, 0xcb9154\nMOV             X0, X20; this                                          ; +0x64, 0xcb9158\nFMOV            S1, S0; float                                          ; +0x68, 0xcb915c\nLDR             X1, [X19]                                              ; +0x6c, 0xcb9160\nLDR             X25, [X1,#0x140]                                       ; +0x70, 0xcb9164\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x74, 0xcb9168\nMOV             X0, X19                                                ; +0x78, 0xcb916c\nMOV             X1, X20                                                ; +0x7c, 0xcb9170\nBLR             X25                                                    ; +0x80, 0xcb9174\nFMOV            S0, #13.0; float                                       ; +0x84, 0xcb9178\nLDR             X1, [X22]                                              ; +0x88, 0xcb917c\nMOV             X0, X20; this                                          ; +0x8c, 0xcb9180\nFMOV            S1, S0; float                                          ; +0x90, 0xcb9184\nLDR             X25, [X1,#0xB8]                                        ; +0x94, 0xcb9188\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x98, 0xcb918c\nMOV             X1, X20                                                ; +0x9c, 0xcb9190\nMOV             X0, X22                                                ; +0xa0, 0xcb9194\nBLR             X25                                                    ; +0xa4, 0xcb9198\nFMOV            S1, WZR; float                                         ; +0xa8, 0xcb919c\nMOV             X0, X22; this                                          ; +0xac, 0xcb91a0\nFMOV            S0, #20.0; float                                       ; +0xb0, 0xcb91a4\nBL              _ZN11EmoteSprite11fitToHeightEff; EmoteSprite::fitToHeight(float,float) ; +0xb4, 0xcb91a8\nLDR             X2, [X19]                                              ; +0xb8, 0xcb91ac\nMOV             X0, X19                                                ; +0xbc, 0xcb91b0\nMOV             W1, W24                                                ; +0xc0, 0xcb91b4\nLDR             X2, [X2,#0x48]                                         ; +0xc4, 0xcb91b8\nBLR             X2                                                     ; +0xc8, 0xcb91bc\nLDR             X2, [X23,#0x418]                                       ; +0xcc, 0xcb91c0\nMOV             X1, X19                                                ; +0xd0, 0xcb91c4\nMOV             X0, X2                                                 ; +0xd4, 0xcb91c8\nLDR             X2, [X2]                                               ; +0xd8, 0xcb91cc\nLDR             X2, [X2,#0x1C8]                                        ; +0xdc, 0xcb91d0\nBLR             X2                                                     ; +0xe0, 0xcb91d4\nMOV             X0, X19                                                ; +0xe4, 0xcb91d8\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xe8, 0xcb91dc\nLDR             X2, [X29,#0x60+var_8]                                  ; +0xec, 0xcb91e0\nLDR             X1, [X21]                                              ; +0xf0, 0xcb91e4\nCMP             X2, X1                                                 ; +0xf4, 0xcb91e8\nB.NE            loc_CB9210                                             ; +0xf8, 0xcb91ec\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xfc, 0xcb91f0\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x100, 0xcb91f4\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x104, 0xcb91f8\nLDR             X25, [SP,#0x60+var_20]                                 ; +0x108, 0xcb91fc\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x10c, 0xcb9200\nRET                                                                    ; +0x110, 0xcb9204\nMOV             X0, #0                                                 ; +0x114, 0xcb9208\nB               loc_CB91DC                                             ; +0x118, 0xcb920c\nBL              .__stack_chk_fail                                      ; +0x11c, 0xcb9210", "xrefs": ["EmotePickerPopup::onBuildWindowContent @ 0xcbaa48", "EmotePickerPopup::onBuildWindowContent @ 0xcbaab8", "<???> @ 0x8e918"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}