{"type": "func", "start": 5369905008, "end": 5369905227, "name": "EmotePickerPopup::addCell", "pseudocode": "// \n// EmotePickerPopup::addCell from 0x140123f70 to 0x14012404b (219 bytes)\n// \n// 3 xrefs:\n// > EmotePickerPopup::onBuildWindowContent @ 0x140123dab\n// > EmotePickerPopup::onBuildWindowContent @ 0x140123f1c\n// > <???> @ 0x140916844\n// \n// This function is hookable on this platform (idp: pc, 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 11:26:57 +0000\n// \n\ncocos2d::CCObject *__fastcall EmotePickerPopup::addCell(__int64 a1, __int64 a2, unsigned int a3)\n{\n  cocos2d::CCObject *result; // rax\n  cocos2d::CCObject *v6; // rsi\n  cocos2d::CCObject *v7; // rdi\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  char v12; // [rsp+58h] [rbp+20h] BYREF\n\n  result = (cocos2d::CCObject *)EmoteSprite::createWithDef(a2);\n  v6 = result;\n  if ( result )\n  {\n    v7 = CCMenuItemSpriteExtra::create((int)result, 0, a1, (__int64)EmotePickerPopup::onPickEmote);\n    v8 = *(_QWORD *)v7;\n    cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v12, 26.0, 26.0);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v8 + 312))(v7, v9);\n    v10 = *(_QWORD *)v6;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, 13.0, 13.0);\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v10 + 184))(v6, v11);\n    EmoteSprite::fitToHeight(v6, 20.0, 0.0);\n    (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v7 + 64LL))(v7, a3);\n    (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 1032) + 464LL))(*(_QWORD *)(a1 + 1032), v7);\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; EmotePickerPopup::addCell from 0x140123f70 to 0x14012404b (219 bytes)\n; \n; 3 xrefs:\n; > EmotePickerPopup::onBuildWindowContent @ 0x140123dab\n; > EmotePickerPopup::onBuildWindowContent @ 0x140123f1c\n; > <???> @ 0x140916844\n; \n; This function is hookable on this platform (idp: pc, 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 11:26:57 +0000\n; \npush    rbp                                                            ; +0x0, 0x140123f70\npush    rsi                                                            ; +0x2, 0x140123f72\npush    r14                                                            ; +0x3, 0x140123f73\nsub     rsp, 20h                                                       ; +0x5, 0x140123f75\nmov     rbp, rcx                                                       ; +0x9, 0x140123f79\nmov     r14d, r8d                                                      ; +0xc, 0x140123f7c\nmov     rcx, rdx                                                       ; +0xf, 0x140123f7f\ncall    EmoteSprite__createWithDef                                     ; +0x12, 0x140123f82\nmov     rsi, rax                                                       ; +0x17, 0x140123f87\ntest    rax, rax                                                       ; +0x1a, 0x140123f8a\njnz     short loc_140123F98                                            ; +0x1d, 0x140123f8d\nadd     rsp, 20h                                                       ; +0x1f, 0x140123f8f\npop     r14                                                            ; +0x23, 0x140123f93\npop     rsi                                                            ; +0x25, 0x140123f95\npop     rbp                                                            ; +0x26, 0x140123f96\nretn                                                                   ; +0x27, 0x140123f97\nmov     [rsp+38h+arg_0], rbx                                           ; +0x28, 0x140123f98\nlea     r9, EmotePickerPopup__onPickEmote                              ; +0x2d, 0x140123f9d\nmov     r8, rbp                                                        ; +0x34, 0x140123fa4\nmov     [rsp+38h+arg_8], rdi                                           ; +0x37, 0x140123fa7\nxor     edx, edx                                                       ; +0x3c, 0x140123fac\nmov     rcx, rsi                                                       ; +0x3e, 0x140123fae\ncall    CCMenuItemSpriteExtra__create                                  ; +0x41, 0x140123fb1\nmovss   xmm1, cs:dword_1408355F8                                       ; +0x46, 0x140123fb6\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x4e, 0x140123fbe\nmovaps  xmm2, xmm1                                                     ; +0x53, 0x140123fc3\nmov     rdi, rax                                                       ; +0x56, 0x140123fc6\nmov     rbx, [rax]                                                     ; +0x59, 0x140123fc9\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x5c, 0x140123fcc\nmov     rdx, rax                                                       ; +0x62, 0x140123fd2\nmov     rcx, rdi                                                       ; +0x65, 0x140123fd5\ncall    qword ptr [rbx+138h]                                           ; +0x68, 0x140123fd8\nmovss   xmm1, cs:dword_14083551C                                       ; +0x6e, 0x140123fde\nlea     rcx, [rsp+38h+arg_18]                                          ; +0x76, 0x140123fe6\nmov     rbx, [rsi]                                                     ; +0x7b, 0x140123feb\nmovaps  xmm2, xmm1                                                     ; +0x7e, 0x140123fee\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x81, 0x140123ff1\nmov     rdx, rax                                                       ; +0x87, 0x140123ff7\nmov     rcx, rsi                                                       ; +0x8a, 0x140123ffa\ncall    qword ptr [rbx+0B8h]                                           ; +0x8d, 0x140123ffd\nmovss   xmm1, cs:dword_1408355B4                                       ; +0x93, 0x140124003\nxorps   xmm2, xmm2                                                     ; +0x9b, 0x14012400b\nmov     rcx, rsi                                                       ; +0x9e, 0x14012400e\ncall    EmoteSprite__fitToHeight                                       ; +0xa1, 0x140124011\nmov     rax, [rdi]                                                     ; +0xa6, 0x140124016\nmov     edx, r14d                                                      ; +0xa9, 0x140124019\nmov     rcx, rdi                                                       ; +0xac, 0x14012401c\ncall    qword ptr [rax+40h]                                            ; +0xaf, 0x14012401f\nmov     rcx, [rbp+408h]                                                ; +0xb2, 0x140124022\nmov     rdx, rdi                                                       ; +0xb9, 0x140124029\nmov     rax, [rcx]                                                     ; +0xbc, 0x14012402c\ncall    qword ptr [rax+1D0h]                                           ; +0xbf, 0x14012402f\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc5, 0x140124035\nmov     rax, rdi                                                       ; +0xca, 0x14012403a\nmov     rdi, [rsp+38h+arg_8]                                           ; +0xcd, 0x14012403d\nadd     rsp, 20h                                                       ; +0xd2, 0x140124042\npop     r14                                                            ; +0xd6, 0x140124046\npop     rsi                                                            ; +0xd8, 0x140124048\npop     rbp                                                            ; +0xd9, 0x140124049\nretn                                                                   ; +0xda, 0x14012404a", "xrefs": ["EmotePickerPopup::onBuildWindowContent @ 0x140123dab", "EmotePickerPopup::onBuildWindowContent @ 0x140123f1c", "<???> @ 0x140916844"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}