{"type": "func", "start": 5370263232, "end": 5370263521, "name": "EditLevelLayer::onEmotes", "pseudocode": "// \n// EditLevelLayer::onEmotes from 0x14017b6c0 to 0x14017b7e1 (289 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x140178fbe\n// > <???> @ 0x140918764\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:27:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditLevelLayer::onEmotes(__int64 *a1, __int64 a2, __int64 a3, double a4)\n{\n  __int64 v5; // rbp\n  __int64 v6; // rdx\n  __int64 v7; // rcx\n  __int64 v8; // r8\n  int v9; // r12d\n  __int64 v10; // rsi\n  __int64 v11; // rcx\n  const struct cocos2d::CCPoint *v12; // r15\n  void *v13; // rbx\n  cocos2d::CCObject *v14; // rbx\n  float *v15; // rax\n  char v16; // [rsp+60h] [rbp+8h] BYREF\n  void *v17; // [rsp+70h] [rbp+18h] BYREF\n\n  v5 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*a1 + 472))(a1, 2);\n  ensureEmotesAreLoaded(v7, v6, v8, a4);\n  v9 = dword_1408FE3A4;\n  v10 = a1[69];\n  v11 = a1[70];\n  if ( v11 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1104LL))(v11, 0);\nLABEL_3:\n    a1[70] = 0;\n    return;\n  }\n  if ( !v10 || !v5 )\n    goto LABEL_3;\n  v12 = (const struct cocos2d::CCPoint *)EmotePickerPopup::buttonAnchor((__int64)&v16, a1[69]);\n  v13 = operator new(0x4C8u);\n  v17 = v13;\n  memset(v13, 0, 0x4C8u);\n  v14 = (cocos2d::CCObject *)EmotePickerPopup::EmotePickerPopup((__int64)v13);\n  if ( !v14 )\n    goto LABEL_10;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, v12);\n  if ( !EmotePickerPopup::init((__int64)v14, v5, v15, v9, 180) )\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v14 + 8LL))(v14, 1);\nLABEL_10:\n    v14 = nullptr;\n    goto LABEL_11;\n  }\n  cocos2d::CCObject::autorelease(v14);\nLABEL_11:\n  a1[70] = (__int64)EmotePickerPopup::openAt(v14, (__int64)(a1 + 57), v10);\n}", "assembly": "; \n; EditLevelLayer::onEmotes from 0x14017b6c0 to 0x14017b7e1 (289 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x140178fbe\n; > <???> @ 0x140918764\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:27:35 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14017b6c0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14017b6c5\npush    rsi                                                            ; +0xa, 0x14017b6ca\npush    rdi                                                            ; +0xb, 0x14017b6cb\npush    r12                                                            ; +0xc, 0x14017b6cc\npush    r14                                                            ; +0xe, 0x14017b6ce\npush    r15                                                            ; +0x10, 0x14017b6d0\nsub     rsp, 30h                                                       ; +0x12, 0x14017b6d2\nmov     rdi, rcx                                                       ; +0x16, 0x14017b6d6\nmov     rax, [rcx]                                                     ; +0x19, 0x14017b6d9\nmov     edx, 2                                                         ; +0x1c, 0x14017b6dc\ncall    qword ptr [rax+1D8h]                                           ; +0x21, 0x14017b6e1\nmov     rbp, rax                                                       ; +0x27, 0x14017b6e7\ncall    ensureEmotesAreLoaded                                          ; +0x2a, 0x14017b6ea\nmov     r12d, cs:dword_1408FE3A4                                       ; +0x2f, 0x14017b6ef\nmov     rsi, [rdi+228h]                                                ; +0x36, 0x14017b6f6\nmov     rcx, [rdi+230h]                                                ; +0x3d, 0x14017b6fd\ntest    rcx, rcx                                                       ; +0x44, 0x14017b704\njz      short loc_14017B734                                            ; +0x47, 0x14017b707\nmov     rax, [rcx]                                                     ; +0x49, 0x14017b709\nxor     edx, edx                                                       ; +0x4c, 0x14017b70c\ncall    qword ptr [rax+450h]                                           ; +0x4e, 0x14017b70e\nxor     ebx, ebx                                                       ; +0x54, 0x14017b714\nmov     [rdi+230h], rbx                                                ; +0x56, 0x14017b716\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x5d, 0x14017b71d\nmov     rbp, [rsp+58h+arg_18]                                          ; +0x62, 0x14017b722\nadd     rsp, 30h                                                       ; +0x67, 0x14017b727\npop     r15                                                            ; +0x6b, 0x14017b72b\npop     r14                                                            ; +0x6d, 0x14017b72d\npop     r12                                                            ; +0x6f, 0x14017b72f\npop     rdi                                                            ; +0x71, 0x14017b731\npop     rsi                                                            ; +0x72, 0x14017b732\nretn                                                                   ; +0x73, 0x14017b733\ntest    rsi, rsi                                                       ; +0x74, 0x14017b734\njz      short loc_14017B714                                            ; +0x77, 0x14017b737\ntest    rbp, rbp                                                       ; +0x79, 0x14017b739\njz      short loc_14017B714                                            ; +0x7c, 0x14017b73c\nmov     rdx, rsi                                                       ; +0x7e, 0x14017b73e\nlea     rcx, [rsp+58h+arg_0]                                           ; +0x81, 0x14017b741\ncall    EmotePickerPopup__buttonAnchor                                 ; +0x86, 0x14017b746\nmov     r15, rax                                                       ; +0x8b, 0x14017b74b\nmov     ecx, 4C8h; Size                                                ; +0x8e, 0x14017b74e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x93, 0x14017b753\nmov     rbx, rax                                                       ; +0x98, 0x14017b758\nmov     [rsp+58h+arg_10], rax                                          ; +0x9b, 0x14017b75b\nxor     edx, edx; Val                                                  ; +0xa0, 0x14017b760\nmov     r8d, 4C8h; Size                                                ; +0xa2, 0x14017b762\nmov     rcx, rax; void *                                               ; +0xa8, 0x14017b768\ncall    memset                                                         ; +0xab, 0x14017b76b\nmov     rcx, rbx                                                       ; +0xb0, 0x14017b770\ncall    EmotePickerPopup__EmotePickerPopup                             ; +0xb3, 0x14017b773\nmov     rbx, rax                                                       ; +0xb8, 0x14017b778\ntest    rax, rax                                                       ; +0xbb, 0x14017b77b\njz      short loc_14017B7C1                                            ; +0xbe, 0x14017b77e\nmov     rdx, r15                                                       ; +0xc0, 0x14017b780\nlea     rcx, [rsp+58h+arg_10]                                          ; +0xc3, 0x14017b783\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xc8, 0x14017b788\nmov     r8, rax                                                        ; +0xce, 0x14017b78e\nmov     [rsp+58h+var_38], 0B4h                                         ; +0xd1, 0x14017b791\nmov     r9d, r12d                                                      ; +0xd9, 0x14017b799\nmov     rdx, rbp                                                       ; +0xdc, 0x14017b79c\nmov     rcx, rbx                                                       ; +0xdf, 0x14017b79f\ncall    EmotePickerPopup__init                                         ; +0xe2, 0x14017b7a2\nmov     rcx, rbx                                                       ; +0xe7, 0x14017b7a7\ntest    al, al                                                         ; +0xea, 0x14017b7aa\njz      short loc_14017B7B6                                            ; +0xec, 0x14017b7ac\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xee, 0x14017b7ae\njmp     short loc_14017B7C3                                            ; +0xf4, 0x14017b7b4\nmov     rax, [rbx]                                                     ; +0xf6, 0x14017b7b6\nmov     edx, 1                                                         ; +0xf9, 0x14017b7b9\ncall    qword ptr [rax+8]                                              ; +0xfe, 0x14017b7be\nxor     ebx, ebx                                                       ; +0x101, 0x14017b7c1\nmov     r8, rsi                                                        ; +0x103, 0x14017b7c3\nlea     rdx, [rdi+1C8h]                                                ; +0x106, 0x14017b7c6\nmov     rcx, rbx                                                       ; +0x10d, 0x14017b7cd\ncall    EmotePickerPopup__openAt                                       ; +0x110, 0x14017b7d0\nmov     [rdi+230h], rax                                                ; +0x115, 0x14017b7d5\njmp     loc_14017B71D                                                  ; +0x11c, 0x14017b7dc", "xrefs": ["EditLevelLayer::init @ 0x140178fbe", "<???> @ 0x140918764"], "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"}