{"type": "func", "start": 5370267808, "end": 5370268105, "name": "EditLevelLayer::confirmMoveToTop", "pseudocode": "// \n// EditLevelLayer::confirmMoveToTop from 0x14017c8a0 to 0x14017c9c9 (297 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x140179356\n// > <???> @ 0x1409187ac\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\n__int64 __fastcall EditLevelLayer::confirmMoveToTop(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  v1 = a1 + 416;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x40u);\n  v6 = 54;\n  v7 = 63;\n  strcpy((char *)v5, \"Move this level to the top of the created levels list?\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(\n         v1,\n         (int)\"Move to Top\",\n         v2,\n         (__int64)&unk_14073A058,\n         (__int64)\"YES\",\n         1133903872,\n         0,\n         0,\n         1065353216);\n  sub_14003D310((__int64)&v5);\n  (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 8);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; EditLevelLayer::confirmMoveToTop from 0x14017c8a0 to 0x14017c9c9 (297 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x140179356\n; > <???> @ 0x1409187ac\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; \npush    rbx                                                            ; +0x0, 0x14017c8a0\nsub     rsp, 90h                                                       ; +0x2, 0x14017c8a2\nlea     rbx, [rcx+1A0h]                                                ; +0x9, 0x14017c8a9\nxor     eax, eax                                                       ; +0x10, 0x14017c8b0\ntest    rcx, rcx                                                       ; +0x12, 0x14017c8b2\ncmovz   rbx, rax                                                       ; +0x15, 0x14017c8b5\nxorps   xmm0, xmm0                                                     ; +0x19, 0x14017c8b9\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x1c, 0x14017c8bc\nmov     [rsp+98h+var_38], rax                                          ; +0x21, 0x14017c8c1\nmov     [rsp+98h+var_30], rax                                          ; +0x26, 0x14017c8c6\nmov     ecx, 40h ; '@'                                                 ; +0x2b, 0x14017c8cb\ncall    sub_14003D460                                                  ; +0x30, 0x14017c8d0\nmov     rdx, rax                                                       ; +0x35, 0x14017c8d5\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x38, 0x14017c8d8\nmov     [rsp+98h+var_38], 36h ; '6'                                    ; +0x3d, 0x14017c8dd\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x46, 0x14017c8e6\nmovups  xmm0, cs:xmmword_1407480C8                                     ; +0x4f, 0x14017c8ef\nmovups  xmmword ptr [rax], xmm0                                        ; +0x56, 0x14017c8f6\nmovups  xmm1, cs:xmmword_1407480D8                                     ; +0x59, 0x14017c8f9\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x60, 0x14017c900\nmovups  xmm0, cs:xmmword_1407480E8                                     ; +0x64, 0x14017c904\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x6b, 0x14017c90b\nmov     ecx, cs:dword_1407480F8                                        ; +0x6f, 0x14017c90f\nmov     [rax+30h], ecx                                                 ; +0x75, 0x14017c915\nmovzx   eax, cs:word_1407480FC                                         ; +0x78, 0x14017c918\nmov     [rdx+34h], ax                                                  ; +0x7f, 0x14017c91f\nmov     byte ptr [rdx+36h], 0                                          ; +0x83, 0x14017c923\nlea     rax, [rsp+98h+var_48]                                          ; +0x87, 0x14017c927\nmov     [rsp+98h+arg_0], rax                                           ; +0x8c, 0x14017c92c\nlea     rdx, [rsp+98h+var_48]                                          ; +0x94, 0x14017c934\nlea     rcx, [rsp+98h+var_28]                                          ; +0x99, 0x14017c939\ncall    sub_14003F4F0                                                  ; +0x9e, 0x14017c93e\nmovss   xmm0, cs:flt_140835080                                         ; +0xa3, 0x14017c943\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xab, 0x14017c94b\nxorps   xmm1, xmm1                                                     ; +0xb1, 0x14017c951\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb4, 0x14017c954\nmov     [rsp+98h+var_68], 0                                            ; +0xba, 0x14017c95a\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xbf, 0x14017c95f\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc7, 0x14017c967\nlea     rcx, aYes_0; \"YES\"                                             ; +0xcd, 0x14017c96d\nmov     [rsp+98h+var_78], rcx                                          ; +0xd4, 0x14017c974\nlea     r9, unk_14073A058                                              ; +0xd9, 0x14017c979\nmov     r8, rax                                                        ; +0xe0, 0x14017c980\nlea     rdx, aMoveToTop; \"Move to Top\"                                 ; +0xe3, 0x14017c983\nmov     rcx, rbx                                                       ; +0xea, 0x14017c98a\ncall    FLAlertLayer__create                                           ; +0xed, 0x14017c98d\nmov     rbx, rax                                                       ; +0xf2, 0x14017c992\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf5, 0x14017c995\ncall    sub_14003D310                                                  ; +0xfa, 0x14017c99a\nmov     rcx, [rbx]                                                     ; +0xff, 0x14017c99f\nmov     r8, [rcx+40h]                                                  ; +0x102, 0x14017c9a2\nmov     edx, 8                                                         ; +0x106, 0x14017c9a6\nmov     rcx, rbx                                                       ; +0x10b, 0x14017c9ab\ncall    r8                                                             ; +0x10e, 0x14017c9ae\nmov     rcx, [rbx]                                                     ; +0x111, 0x14017c9b1\nmov     rdx, [rcx+428h]                                                ; +0x114, 0x14017c9b4\nmov     rcx, rbx                                                       ; +0x11b, 0x14017c9bb\ncall    rdx                                                            ; +0x11e, 0x14017c9be\nadd     rsp, 90h                                                       ; +0x120, 0x14017c9c0\npop     rbx                                                            ; +0x127, 0x14017c9c7\nretn                                                                   ; +0x128, 0x14017c9c8", "xrefs": ["EditLevelLayer::init @ 0x140179356", "<???> @ 0x1409187ac"], "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"}