{"type": "func", "start": 7835024, "end": 7835180, "name": "EmotePickerPopup::addCell", "pseudocode": "// \n// EmotePickerPopup::addCell from 0x778d90 to 0x778e2c (156 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::onBuildWindowContent @ 0x779852\n// > EmotePickerPopup::onBuildWindowContent @ 0x7798a2\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:21 +0000\n// \n\ncocos2d::CCSprite *__fastcall EmotePickerPopup::addCell(int a1, int a2, int a3)\n{\n  cocos2d::CCSprite *result; // r0\n  EmoteSprite *v6; // r4\n  int v7; // r5\n  void (__fastcall *v8)(int, _BYTE *); // r10\n  void (__fastcall *v9)(EmoteSprite *, _BYTE *); // r10\n  _BYTE v10[8]; // [sp+Ch] [bp-14h] BYREF\n  _DWORD (*v11)(EmotePickerPopup *__hidden, cocos2d::CCObject *); // [sp+14h] [bp-Ch]\n  int v12; // [sp+18h] [bp-8h]\n\n  result = EmoteSprite::createWithDef(a2);\n  v6 = result;\n  if ( result )\n  {\n    v12 = 0;\n    v11 = EmotePickerPopup::onPickEmote;\n    v7 = CCMenuItemSpriteExtra::create((int)result, 0, a1, (int)EmotePickerPopup::onPickEmote, 0);\n    v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 160);\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)v10, 26.0, 26.0);\n    v8(v7, v10);\n    v9 = *(void (__fastcall **)(EmoteSprite *, _BYTE *))(*(_DWORD *)v6 + 92);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 13.0, 13.0);\n    v9(v6, v10);\n    EmoteSprite::fitToHeight(v6, 20.0, 0.0);\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 36))(v7, a3);\n    (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 728) + 228))(*(_DWORD *)(a1 + 728), v7);\n    return (cocos2d::CCSprite *)v7;\n  }\n  return result;\n}", "assembly": "; \n; EmotePickerPopup::addCell from 0x778d90 to 0x778e2c (156 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::onBuildWindowContent @ 0x779852\n; > EmotePickerPopup::onBuildWindowContent @ 0x7798a2\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:21 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x778d90\nSUB             SP, SP, #0x20                                          ; +0x4, 0x778d94\nLDR             R7, =(__stack_chk_guard_ptr - 0x778DA2)                ; +0x6, 0x778d96\nMOV             R8, R0                                                 ; +0x8, 0x778d98\nMOV             R0, R1                                                 ; +0xa, 0x778d9a\nMOV             R9, R2                                                 ; +0xc, 0x778d9c\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x778d9e\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x778da0\nLDR             R3, [R7]                                               ; +0x12, 0x778da2\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x14, 0x778da4\nBL              _ZN11EmoteSprite13createWithDefEPK8EmoteDef; EmoteSprite::createWithDef(EmoteDef const*) ; +0x16, 0x778da6\nMOVS            R1, #0                                                 ; +0x1a, 0x778daa\nMOV             R4, R0                                                 ; +0x1c, 0x778dac\nCMP             R0, #0                                                 ; +0x1e, 0x778dae\nBEQ             loc_778E1A                                             ; +0x20, 0x778db0\nLDR             R3, =(_ZN16EmotePickerPopup11onPickEmoteEPN7cocos2d8CCObjectE_ptr - 0x778DBE) ; +0x22, 0x778db2\nMOV             R2, R8                                                 ; +0x24, 0x778db4\nSTR             R1, [SP,#0x20+var_20]                                  ; +0x26, 0x778db6\nADD             R6, SP, #0x20+var_14                                   ; +0x28, 0x778db8\nADD             R3, PC; _ZN16EmotePickerPopup11onPickEmoteEPN7cocos2d8CCObjectE_ptr ; +0x2a, 0x778dba\nLDR             R3, [R3]; EmotePickerPopup::onPickEmote(cocos2d::CCObject *) ; +0x2c, 0x778dbc\nSTR             R1, [SP,#0x20+var_8]                                   ; +0x2e, 0x778dbe\nSTR             R3, [SP,#0x20+var_C]                                   ; +0x30, 0x778dc0\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x32, 0x778dc2\nLDR             R1, flt_778E2C; float                                  ; +0x36, 0x778dc6\nMOV             R2, R1; float                                          ; +0x38, 0x778dc8\nLDR             R3, [R0]                                               ; +0x3a, 0x778dca\nMOV             R5, R0                                                 ; +0x3c, 0x778dcc\nMOV             R0, R6; this                                           ; +0x3e, 0x778dce\nLDR.W           R10, [R3,#0xA0]                                        ; +0x40, 0x778dd0\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x44, 0x778dd4\nMOV             R0, R5                                                 ; +0x48, 0x778dd8\nMOV             R1, R6                                                 ; +0x4a, 0x778dda\nBLX             R10                                                    ; +0x4c, 0x778ddc\nLDR             R1, flt_778E30; float                                  ; +0x4e, 0x778dde\nLDR             R3, [R4]                                               ; +0x50, 0x778de0\nMOV             R0, R6; this                                           ; +0x52, 0x778de2\nMOV             R2, R1; float                                          ; +0x54, 0x778de4\nLDR.W           R10, [R3,#0x5C]                                        ; +0x56, 0x778de6\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x5a, 0x778dea\nMOV             R0, R4                                                 ; +0x5e, 0x778dee\nMOV             R1, R6                                                 ; +0x60, 0x778df0\nBLX             R10                                                    ; +0x62, 0x778df2\nMOVS            R2, #0; float                                          ; +0x64, 0x778df4\nMOV             R0, R4; this                                           ; +0x66, 0x778df6\nLDR             R1, flt_778E34; float                                  ; +0x68, 0x778df8\nBL              _ZN11EmoteSprite11fitToHeightEff; EmoteSprite::fitToHeight(float,float) ; +0x6a, 0x778dfa\nLDR             R3, [R5]                                               ; +0x6e, 0x778dfe\nMOV             R0, R5                                                 ; +0x70, 0x778e00\nMOV             R1, R9                                                 ; +0x72, 0x778e02\nLDR             R3, [R3,#0x24]                                         ; +0x74, 0x778e04\nBLX             R3                                                     ; +0x76, 0x778e06\nLDR.W           R0, [R8,#0x2D8]                                        ; +0x78, 0x778e08\nMOV             R1, R5                                                 ; +0x7c, 0x778e0c\nLDR             R3, [R0]                                               ; +0x7e, 0x778e0e\nLDR.W           R3, [R3,#0xE4]                                         ; +0x80, 0x778e10\nBLX             R3                                                     ; +0x84, 0x778e14\nMOV             R0, R5                                                 ; +0x86, 0x778e16\nB               loc_778E1A                                             ; +0x88, 0x778e18\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x8a, 0x778e1a\nLDR             R3, [R7]                                               ; +0x8c, 0x778e1c\nCMP             R2, R3                                                 ; +0x8e, 0x778e1e\nBEQ             loc_778E26                                             ; +0x90, 0x778e20\nBLX             __stack_chk_fail                                       ; +0x92, 0x778e22\nADD             SP, SP, #0x20 ; ' '                                    ; +0x96, 0x778e26\nPOP.W           {R4-R10,PC}                                            ; +0x98, 0x778e28", "xrefs": ["EmotePickerPopup::onBuildWindowContent @ 0x779852", "EmotePickerPopup::onBuildWindowContent @ 0x7798a2"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}