{"type": "func", "start": 5373173536, "end": 5373173703, "name": "SetupRotateGameplayPopup::onPlusButton", "pseudocode": "// \n// SetupRotateGameplayPopup::onPlusButton from 0x140441f20 to 0x140441fc7 (167 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405ed918\n// > <???> @ 0x1406da418\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 SetupRotateGameplayPopup::onPlusButton(SetupRotateGameplayPopup *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // r8\n  __int64 v4; // rcx\n  int NextFreeOrderChannel; // 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  NextFreeOrderChannel = LevelEditorLayer::getNextFreeOrderChannel(*(LevelEditorLayer **)(v4 + 528), &v6);\n  sub_14005D100((__int64)&v6._Vec);\n  sub_14005D870((void **)&v6._List._Mypair._Myval2._Myhead);\n  SetupTriggerPopup::updateValue(a1, 173, (float)NextFreeOrderChannel);\n}", "assembly": "; \n; SetupRotateGameplayPopup::onPlusButton from 0x140441f20 to 0x140441fc7 (167 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405ed918\n; > <???> @ 0x1406da418\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, 0x140441f20\nmov     [rax+8], rbx                                                   ; +0x3, 0x140441f23\npush    rdi                                                            ; +0x7, 0x140441f27\nsub     rsp, 60h                                                       ; +0x8, 0x140441f28\nmov     rdi, rcx                                                       ; +0xc, 0x140441f2c\nmov     dword ptr [rax+18h], 0                                         ; +0xf, 0x140441f2f\nlea     rdx, [rax+18h]                                                 ; +0x16, 0x140441f36\nlea     rcx, [rax-48h]                                                 ; +0x1a, 0x140441f3a\ncall    sub_14005E660                                                  ; +0x1e, 0x140441f3e\nnop                                                                    ; +0x23, 0x140441f43\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x24, 0x140441f44\ntest    rcx, rcx                                                       ; +0x2b, 0x140441f4b\njnz     short loc_140441F82                                            ; +0x2e, 0x140441f4e\nmov     ecx, 668h; Size                                                ; +0x30, 0x140441f50\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x140441f55\nmov     [rsp+68h+arg_10], rax                                          ; +0x3a, 0x140441f5a\nmov     rcx, rax                                                       ; +0x42, 0x140441f62\ncall    sub_14017AB00                                                  ; +0x45, 0x140441f65\nnop                                                                    ; +0x4a, 0x140441f6a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4b, 0x140441f6b\nmov     rdx, [rax]                                                     ; +0x52, 0x140441f72\nmov     rcx, rax                                                       ; +0x55, 0x140441f75\ncall    qword ptr [rdx+48h]                                            ; +0x58, 0x140441f78\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x5b, 0x140441f7b\nlea     rdx, [rsp+68h+var_48]                                          ; +0x62, 0x140441f82\nmov     rcx, [rcx+210h]                                                ; +0x67, 0x140441f87\ncall    LevelEditorLayer__getNextFreeOrderChannel                      ; +0x6e, 0x140441f8e\nmov     ebx, eax                                                       ; +0x73, 0x140441f93\nlea     rcx, [rsp+68h+var_30]                                          ; +0x75, 0x140441f95\ncall    sub_14005D100                                                  ; +0x7a, 0x140441f9a\nlea     rcx, [rsp+68h+var_40]                                          ; +0x7f, 0x140441f9f\ncall    sub_14005D870                                                  ; +0x84, 0x140441fa4\nmovd    xmm2, ebx                                                      ; +0x89, 0x140441fa9\ncvtdq2ps xmm2, xmm2                                                    ; +0x8d, 0x140441fad\nmov     edx, 0ADh                                                      ; +0x90, 0x140441fb0\nmov     rcx, rdi                                                       ; +0x95, 0x140441fb5\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x98, 0x140441fb8\nadd     rsp, 60h                                                       ; +0x9d, 0x140441fbd\npop     rdi                                                            ; +0xa1, 0x140441fc1\njmp     SetupTriggerPopup__updateValue                                 ; +0xa2, 0x140441fc2", "xrefs": ["<???> @ 0x1405ed918", "<???> @ 0x1406da418"], "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"}