{"type": "func", "start": 4300060456, "end": 4300060688, "name": "EmotePickerPopup::addCell", "pseudocode": "// \n// EmotePickerPopup::addCell from 0x1004db728 to 0x1004db810 (232 bytes)\n// \n// 2 xrefs:\n// > EmotePickerPopup::onBuildWindowContent @ 0x1004db634\n// > EmotePickerPopup::onBuildWindowContent @ 0x1004db6a0\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 11:06:34 +0000\n// \n\nvoid *__fastcall EmotePickerPopup::addCell(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v5; // x0\n  __int64 v6; // x22\n  void *v7; // x21\n  __n128 v8; // q0\n  float v10; // [xsp+8h] [xbp-28h] BYREF\n\n  v5 = EmoteSprite::createWithDef(a2);\n  if ( !v5 )\n    return nullptr;\n  v6 = v5;\n  v7 = CCMenuItemSpriteExtra::create(v5, 0, a1, (__int64)EmotePickerPopup::onPickEmote, 0);\n  sub_1000262C4(&v10, 26.0, 26.0);\n  (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v7 + 320LL))(v7, &v10);\n  sub_1000262BC(&v10, 13.0, 13.0);\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v10);\n  v8 = EmoteSprite::fitToHeight(v6, 20.0, 0.0);\n  (*(void (__fastcall **)(void *, __int64, __n128))(*(_QWORD *)v7 + 72LL))(v7, a3, v8);\n  (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 1048) + 456LL))(*(_QWORD *)(a1 + 1048), v7);\n  return v7;\n}", "assembly": "; \n; EmotePickerPopup::addCell from 0x1004db728 to 0x1004db810 (232 bytes)\n; \n; 2 xrefs:\n; > EmotePickerPopup::onBuildWindowContent @ 0x1004db634\n; > EmotePickerPopup::onBuildWindowContent @ 0x1004db6a0\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 11:06:34 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1004db728\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1004db72c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1004db730\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1004db734\nADD             X29, SP, #0x30                                         ; +0x10, 0x1004db738\nMOV             X20, X2                                                ; +0x14, 0x1004db73c\nMOV             X19, X0                                                ; +0x18, 0x1004db740\nMOV             X0, X1                                                 ; +0x1c, 0x1004db744\nBL              EmoteSprite__createWithDef                             ; +0x20, 0x1004db748\nCBZ             X0, loc_1004DB7F4                                      ; +0x24, 0x1004db74c\nMOV             X22, X0                                                ; +0x28, 0x1004db750\nADRL            X3, EmotePickerPopup__onPickEmote                      ; +0x2c, 0x1004db754\nMOV             X1, #0                                                 ; +0x34, 0x1004db75c\nMOV             X2, X19                                                ; +0x38, 0x1004db760\nMOV             X4, #0                                                 ; +0x3c, 0x1004db764\nBL              CCMenuItemSpriteExtra__create                          ; +0x40, 0x1004db768\nMOV             X21, X0                                                ; +0x44, 0x1004db76c\nADD             X0, SP, #0x30+var_28                                   ; +0x48, 0x1004db770\nFMOV            S0, #26.0                                              ; +0x4c, 0x1004db774\nFMOV            S1, #26.0                                              ; +0x50, 0x1004db778\nBL              sub_1000262C4                                          ; +0x54, 0x1004db77c\nLDR             X8, [X21]                                              ; +0x58, 0x1004db780\nLDR             X8, [X8,#0x140]                                        ; +0x5c, 0x1004db784\nADD             X1, SP, #0x30+var_28                                   ; +0x60, 0x1004db788\nMOV             X0, X21                                                ; +0x64, 0x1004db78c\nBLR             X8                                                     ; +0x68, 0x1004db790\nADD             X0, SP, #0x30+var_28                                   ; +0x6c, 0x1004db794\nFMOV            S0, #13.0                                              ; +0x70, 0x1004db798\nFMOV            S1, #13.0                                              ; +0x74, 0x1004db79c\nBL              sub_1000262BC                                          ; +0x78, 0x1004db7a0\nLDR             X8, [X22]                                              ; +0x7c, 0x1004db7a4\nLDR             X8, [X8,#0xB8]                                         ; +0x80, 0x1004db7a8\nADD             X1, SP, #0x30+var_28                                   ; +0x84, 0x1004db7ac\nMOV             X0, X22                                                ; +0x88, 0x1004db7b0\nBLR             X8                                                     ; +0x8c, 0x1004db7b4\nFMOV            S0, #20.0                                              ; +0x90, 0x1004db7b8\nFMOV            S1, WZR                                                ; +0x94, 0x1004db7bc\nMOV             X0, X22                                                ; +0x98, 0x1004db7c0\nBL              EmoteSprite__fitToHeight                               ; +0x9c, 0x1004db7c4\nLDR             X8, [X21]                                              ; +0xa0, 0x1004db7c8\nLDR             X8, [X8,#0x48]                                         ; +0xa4, 0x1004db7cc\nMOV             X0, X21                                                ; +0xa8, 0x1004db7d0\nMOV             X1, X20                                                ; +0xac, 0x1004db7d4\nBLR             X8                                                     ; +0xb0, 0x1004db7d8\nLDR             X0, [X19,#0x418]                                       ; +0xb4, 0x1004db7dc\nLDR             X8, [X0]                                               ; +0xb8, 0x1004db7e0\nLDR             X8, [X8,#0x1C8]                                        ; +0xbc, 0x1004db7e4\nMOV             X1, X21                                                ; +0xc0, 0x1004db7e8\nBLR             X8                                                     ; +0xc4, 0x1004db7ec\nB               loc_1004DB7F8                                          ; +0xc8, 0x1004db7f0\nMOV             X21, #0                                                ; +0xcc, 0x1004db7f4\nMOV             X0, X21                                                ; +0xd0, 0x1004db7f8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xd4, 0x1004db7fc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xd8, 0x1004db800\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xdc, 0x1004db804\nADD             SP, SP, #0x40 ; '@'                                    ; +0xe0, 0x1004db808\nRET                                                                    ; +0xe4, 0x1004db80c", "xrefs": ["EmotePickerPopup::onBuildWindowContent @ 0x1004db634", "EmotePickerPopup::onBuildWindowContent @ 0x1004db6a0"], "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"}