{"type": "func", "start": 5371851184, "end": 5371851492, "name": "LevelInfoLayer::confirmMoveToTop", "pseudocode": "// \n// LevelInfoLayer::confirmMoveToTop from 0x1402ff1b0 to 0x1402ff2e4 (308 bytes)\n// \n// 3 xrefs:\n// > LevelInfoLayer::init @ 0x1402f9177\n// > <???> @ 0x1406d4304\n// > <???> @ 0x1406d4310\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\n// Hidden C++ exception states: #wind=1\nvoid LevelInfoLayer::confirmMoveToTop(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // 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  if ( !a1->m_isBusy )\n  {\n    v2 = (_DWORD)a1 + 440;\n    if ( !a1 )\n      v2 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x30u);\n    v6 = 46;\n    v7 = 47;\n    strcpy((char *)v5, \"Move this level to the top of the levels list?\");\n    v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    v4 = FLAlertLayer::create(\n           v2,\n           (int)\"Move to Top\",\n           v3,\n           (__int64)&unk_140547160,\n           (__int64)\"YES\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003A830((__int64)&v5);\n    v4->setTag(v4, 11);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; LevelInfoLayer::confirmMoveToTop from 0x1402ff1b0 to 0x1402ff2e4 (308 bytes)\n; \n; 3 xrefs:\n; > LevelInfoLayer::init @ 0x1402f9177\n; > <???> @ 0x1406d4304\n; > <???> @ 0x1406d4310\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\npush    rbx                                                            ; +0x0, 0x1402ff1b0\nsub     rsp, 90h                                                       ; +0x2, 0x1402ff1b2\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x9, 0x1402ff1b9\njnz     loc_1402FF2DB                                                  ; +0x10, 0x1402ff1c0\nlea     rbx, [rcx+1B8h]                                                ; +0x16, 0x1402ff1c6\nxor     eax, eax                                                       ; +0x1d, 0x1402ff1cd\ntest    rcx, rcx                                                       ; +0x1f, 0x1402ff1cf\ncmovz   rbx, rax                                                       ; +0x22, 0x1402ff1d2\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1402ff1d6\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x1402ff1d9\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x1402ff1de\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x33, 0x1402ff1e3\nlea     ecx, [rax+30h]                                                 ; +0x3c, 0x1402ff1ec\ncall    sub_14003AA10                                                  ; +0x3f, 0x1402ff1ef\nmov     rcx, rax                                                       ; +0x44, 0x1402ff1f4\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x47, 0x1402ff1f7\nmov     [rsp+98h+var_38], 2Eh ; '.'                                    ; +0x4c, 0x1402ff1fc\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x55, 0x1402ff205\nmovups  xmm0, cs:xmmword_140587860                                     ; +0x5e, 0x1402ff20e\nmovups  xmmword ptr [rax], xmm0                                        ; +0x65, 0x1402ff215\nmovups  xmm1, cs:xmmword_140587870                                     ; +0x68, 0x1402ff218\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6f, 0x1402ff21f\nmovsd   xmm0, cs:qword_140587880                                       ; +0x73, 0x1402ff223\nmovsd   qword ptr [rax+20h], xmm0                                      ; +0x7b, 0x1402ff22b\nmov     eax, cs:dword_140587888                                        ; +0x80, 0x1402ff230\nmov     [rcx+28h], eax                                                 ; +0x86, 0x1402ff236\nmovzx   eax, cs:word_14058788C                                         ; +0x89, 0x1402ff239\nmov     [rcx+2Ch], ax                                                  ; +0x90, 0x1402ff240\nmov     byte ptr [rcx+2Eh], 0                                          ; +0x94, 0x1402ff244\nlea     rax, [rsp+98h+var_48]                                          ; +0x98, 0x1402ff248\nmov     [rsp+98h+arg_0], rax                                           ; +0x9d, 0x1402ff24d\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa5, 0x1402ff255\nlea     rcx, [rsp+98h+var_28]                                          ; +0xaa, 0x1402ff25a\ncall    sub_14003BDB0                                                  ; +0xaf, 0x1402ff25f\nmovss   xmm0, cs:flt_140622C24                                         ; +0xb4, 0x1402ff264\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xbc, 0x1402ff26c\nxorps   xmm1, xmm1                                                     ; +0xc2, 0x1402ff272\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xc5, 0x1402ff275\nmov     [rsp+98h+var_68], 0                                            ; +0xcb, 0x1402ff27b\nmovss   xmm0, cs:dword_14062343C                                       ; +0xd0, 0x1402ff280\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xd8, 0x1402ff288\nlea     rcx, aYes_0; \"YES\"                                             ; +0xde, 0x1402ff28e\nmov     [rsp+98h+var_78], rcx                                          ; +0xe5, 0x1402ff295\nlea     r9, unk_140547160                                              ; +0xea, 0x1402ff29a\nmov     r8, rax                                                        ; +0xf1, 0x1402ff2a1\nlea     rdx, aMoveToTop; \"Move to Top\"                                 ; +0xf4, 0x1402ff2a4\nmov     rcx, rbx                                                       ; +0xfb, 0x1402ff2ab\ncall    FLAlertLayer__create                                           ; +0xfe, 0x1402ff2ae\nmov     rbx, rax                                                       ; +0x103, 0x1402ff2b3\nlea     rcx, [rsp+98h+var_48]                                          ; +0x106, 0x1402ff2b6\ncall    sub_14003A830                                                  ; +0x10b, 0x1402ff2bb\nmov     r8, [rbx]                                                      ; +0x110, 0x1402ff2c0\nmov     edx, 0Bh                                                       ; +0x113, 0x1402ff2c3\nmov     rcx, rbx                                                       ; +0x118, 0x1402ff2c8\ncall    qword ptr [r8+40h]                                             ; +0x11b, 0x1402ff2cb\nmov     rdx, [rbx]                                                     ; +0x11f, 0x1402ff2cf\nmov     rcx, rbx                                                       ; +0x122, 0x1402ff2d2\ncall    qword ptr [rdx+410h]                                           ; +0x125, 0x1402ff2d5\nadd     rsp, 90h                                                       ; +0x12b, 0x1402ff2db\npop     rbx                                                            ; +0x132, 0x1402ff2e2\nretn                                                                   ; +0x133, 0x1402ff2e3", "xrefs": ["LevelInfoLayer::init @ 0x1402f9177", "<???> @ 0x1406d4304", "<???> @ 0x1406d4310"], "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"}