{"type": "func", "start": 5371888752, "end": 5371889049, "name": "LevelListLayer::confirmDelete", "pseudocode": "// \n// LevelListLayer::confirmDelete from 0x140308470 to 0x140308599 (297 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::init @ 0x1403048e2\n// > <???> @ 0x1406d458c\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 LevelListLayer::confirmDelete(LevelListLayer *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_exiting )\n  {\n    v2 = (_DWORD)a1 + 552;\n    if ( !a1 )\n      v2 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x40u);\n    v6 = 50;\n    v7 = 63;\n    strcpy((char *)v5, \"Are you sure you want to <cr>delete</c> this list?\");\n    v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    v4 = FLAlertLayer::create(\n           v2,\n           (int)\"Delete List\",\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, 1001);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; LevelListLayer::confirmDelete from 0x140308470 to 0x140308599 (297 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::init @ 0x1403048e2\n; > <???> @ 0x1406d458c\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, 0x140308470\nsub     rsp, 90h                                                       ; +0x2, 0x140308472\ncmp     byte ptr [rcx+398h], 0                                         ; +0x9, 0x140308479\njnz     loc_140308590                                                  ; +0x10, 0x140308480\nlea     rbx, [rcx+228h]                                                ; +0x16, 0x140308486\nxor     eax, eax                                                       ; +0x1d, 0x14030848d\ntest    rcx, rcx                                                       ; +0x1f, 0x14030848f\ncmovz   rbx, rax                                                       ; +0x22, 0x140308492\nxorps   xmm0, xmm0                                                     ; +0x26, 0x140308496\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x140308499\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x14030849e\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x33, 0x1403084a3\nlea     ecx, [rax+40h]                                                 ; +0x3c, 0x1403084ac\ncall    sub_14003AA10                                                  ; +0x3f, 0x1403084af\nmov     rcx, rax                                                       ; +0x44, 0x1403084b4\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x47, 0x1403084b7\nmov     [rsp+98h+var_38], 32h ; '2'                                    ; +0x4c, 0x1403084bc\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x55, 0x1403084c5\nmovups  xmm0, cs:xmmword_1405887E0                                     ; +0x5e, 0x1403084ce\nmovups  xmmword ptr [rax], xmm0                                        ; +0x65, 0x1403084d5\nmovups  xmm1, cs:xmmword_1405887F0                                     ; +0x68, 0x1403084d8\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6f, 0x1403084df\nmovups  xmm0, cs:xmmword_140588800                                     ; +0x73, 0x1403084e3\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x7a, 0x1403084ea\nmovzx   eax, cs:word_140588810                                         ; +0x7e, 0x1403084ee\nmov     [rcx+30h], ax                                                  ; +0x85, 0x1403084f5\nmov     byte ptr [rcx+32h], 0                                          ; +0x89, 0x1403084f9\nlea     rax, [rsp+98h+var_48]                                          ; +0x8d, 0x1403084fd\nmov     [rsp+98h+arg_0], rax                                           ; +0x92, 0x140308502\nlea     rdx, [rsp+98h+var_48]                                          ; +0x9a, 0x14030850a\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9f, 0x14030850f\ncall    sub_14003BDB0                                                  ; +0xa4, 0x140308514\nmovss   xmm0, cs:flt_140622C24                                         ; +0xa9, 0x140308519\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xb1, 0x140308521\nxorps   xmm1, xmm1                                                     ; +0xb7, 0x140308527\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xba, 0x14030852a\nmov     [rsp+98h+var_68], 0                                            ; +0xc0, 0x140308530\nmovss   xmm0, cs:dword_14062343C                                       ; +0xc5, 0x140308535\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xcd, 0x14030853d\nlea     rcx, aYes_0; \"YES\"                                             ; +0xd3, 0x140308543\nmov     [rsp+98h+var_78], rcx                                          ; +0xda, 0x14030854a\nlea     r9, unk_140547160                                              ; +0xdf, 0x14030854f\nmov     r8, rax                                                        ; +0xe6, 0x140308556\nlea     rdx, aDeleteList; \"Delete List\"                                ; +0xe9, 0x140308559\nmov     rcx, rbx                                                       ; +0xf0, 0x140308560\ncall    FLAlertLayer__create                                           ; +0xf3, 0x140308563\nmov     rbx, rax                                                       ; +0xf8, 0x140308568\nlea     rcx, [rsp+98h+var_48]                                          ; +0xfb, 0x14030856b\ncall    sub_14003A830                                                  ; +0x100, 0x140308570\nmov     r8, [rbx]                                                      ; +0x105, 0x140308575\nmov     edx, 3E9h                                                      ; +0x108, 0x140308578\nmov     rcx, rbx                                                       ; +0x10d, 0x14030857d\ncall    qword ptr [r8+40h]                                             ; +0x110, 0x140308580\nmov     rdx, [rbx]                                                     ; +0x114, 0x140308584\nmov     rcx, rbx                                                       ; +0x117, 0x140308587\ncall    qword ptr [rdx+410h]                                           ; +0x11a, 0x14030858a\nadd     rsp, 90h                                                       ; +0x120, 0x140308590\npop     rbx                                                            ; +0x127, 0x140308597\nretn                                                                   ; +0x128, 0x140308598", "xrefs": ["LevelListLayer::init @ 0x1403048e2", "<???> @ 0x1406d458c"], "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"}