{"type": "func", "start": 5373035888, "end": 5373036055, "name": "SetupEnterEffectPopup::onNextFreeEnterChannel", "pseudocode": "// \n// SetupEnterEffectPopup::onNextFreeEnterChannel from 0x140420570 to 0x140420617 (167 bytes)\n// \n// 2 xrefs:\n// > SetupEnterEffectPopup::init @ 0x14041fd82\n// > <???> @ 0x1406d94d0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid SetupEnterEffectPopup::onNextFreeEnterChannel(SetupEnterEffectPopup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // r8\n  __int64 v4; // rcx\n  int NextFreeEnterChannel; // ebx\n  std::unordered_set<int> v6; // [rsp+20h] [rbp-48h] BYREF\n  void *v7; // [rsp+80h] [rbp+18h] BYREF\n\n  LODWORD(v7) = 0;\n  sub_14005E660((__int64)&v6, &v7, v2);\n  v4 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v4 = qword_1406C2ED8;\n  }\n  NextFreeEnterChannel = LevelEditorLayer::getNextFreeEnterChannel(*(LevelEditorLayer **)(v4 + 528), &v6);\n  sub_14005D100((__int64)&v6._Vec);\n  sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);\n  SetupTriggerPopup::updateValue(a1, 344, (float)NextFreeEnterChannel);\n}", "assembly": "; \n; SetupEnterEffectPopup::onNextFreeEnterChannel from 0x140420570 to 0x140420617 (167 bytes)\n; \n; 2 xrefs:\n; > SetupEnterEffectPopup::init @ 0x14041fd82\n; > <???> @ 0x1406d94d0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rax, rsp                                                       ; +0x0, 0x140420570\nmov     [rax+8], rbx                                                   ; +0x3, 0x140420573\npush    rdi                                                            ; +0x7, 0x140420577\nsub     rsp, 60h                                                       ; +0x8, 0x140420578\nmov     rdi, rcx                                                       ; +0xc, 0x14042057c\nmov     dword ptr [rax+18h], 0                                         ; +0xf, 0x14042057f\nlea     rdx, [rax+18h]                                                 ; +0x16, 0x140420586\nlea     rcx, [rax-48h]                                                 ; +0x1a, 0x14042058a\ncall    sub_14005E660                                                  ; +0x1e, 0x14042058e\nnop                                                                    ; +0x23, 0x140420593\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x24, 0x140420594\ntest    rcx, rcx                                                       ; +0x2b, 0x14042059b\njnz     short loc_1404205D2                                            ; +0x2e, 0x14042059e\nmov     ecx, 668h; Size                                                ; +0x30, 0x1404205a0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x1404205a5\nmov     [rsp+68h+arg_10], rax                                          ; +0x3a, 0x1404205aa\nmov     rcx, rax                                                       ; +0x42, 0x1404205b2\ncall    sub_14017AB00                                                  ; +0x45, 0x1404205b5\nnop                                                                    ; +0x4a, 0x1404205ba\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4b, 0x1404205bb\nmov     rdx, [rax]                                                     ; +0x52, 0x1404205c2\nmov     rcx, rax                                                       ; +0x55, 0x1404205c5\ncall    qword ptr [rdx+48h]                                            ; +0x58, 0x1404205c8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5b, 0x1404205cb\nlea     rdx, [rsp+68h+var_48]                                          ; +0x62, 0x1404205d2\nmov     rcx, [rcx+210h]                                                ; +0x67, 0x1404205d7\ncall    LevelEditorLayer__getNextFreeEnterChannel                      ; +0x6e, 0x1404205de\nmov     ebx, eax                                                       ; +0x73, 0x1404205e3\nlea     rcx, [rsp+68h+var_30]                                          ; +0x75, 0x1404205e5\ncall    sub_14005D100                                                  ; +0x7a, 0x1404205ea\nlea     rcx, [rsp+68h+var_40]                                          ; +0x7f, 0x1404205ef\ncall    sub_14005D870                                                  ; +0x84, 0x1404205f4\nmovd    xmm2, ebx                                                      ; +0x89, 0x1404205f9\ncvtdq2ps xmm2, xmm2                                                    ; +0x8d, 0x1404205fd\nmov     edx, 158h                                                      ; +0x90, 0x140420600\nmov     rcx, rdi                                                       ; +0x95, 0x140420605\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x98, 0x140420608\nadd     rsp, 60h                                                       ; +0x9d, 0x14042060d\npop     rdi                                                            ; +0xa1, 0x140420611\njmp     SetupTriggerPopup__updateValue                                 ; +0xa2, 0x140420612", "xrefs": ["SetupEnterEffectPopup::init @ 0x14041fd82", "<???> @ 0x1406d94d0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}