{"type": "func", "start": 5369501296, "end": 5369501602, "name": "CustomSFXWidget::onDelete", "pseudocode": "// \n// CustomSFXWidget::onDelete from 0x1400c1670 to 0x1400c17a2 (306 bytes)\n// \n// 2 xrefs:\n// > CustomSFXWidget::init @ 0x1400c0e27\n// > <???> @ 0x1406c7f20\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 CustomSFXWidget::onDelete(CustomSFXWidget *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_sfxObject )\n  {\n    v2 = (_DWORD)a1 + 328;\n    if ( !a1 )\n      v2 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x30u);\n    v6 = 39;\n    v7 = 47;\n    strcpy((char *)v5, \"Do you want to <cr>Delete</c> this SFX?\");\n    v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    v4 = FLAlertLayer::create(\n           v2,\n           (int)\"Delete SFX\",\n           v3,\n           (__int64)\"Cancel\",\n           (__int64)\"Delete\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003A830((__int64)&v5);\n    v4->setTag(v4, 3);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; CustomSFXWidget::onDelete from 0x1400c1670 to 0x1400c17a2 (306 bytes)\n; \n; 2 xrefs:\n; > CustomSFXWidget::init @ 0x1400c0e27\n; > <???> @ 0x1406c7f20\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, 0x1400c1670\nsub     rsp, 90h                                                       ; +0x2, 0x1400c1672\ncmp     qword ptr [rcx+150h], 0                                        ; +0x9, 0x1400c1679\njz      loc_1400C1799                                                  ; +0x11, 0x1400c1681\nlea     rbx, [rcx+148h]                                                ; +0x17, 0x1400c1687\nxor     eax, eax                                                       ; +0x1e, 0x1400c168e\ntest    rcx, rcx                                                       ; +0x20, 0x1400c1690\ncmovz   rbx, rax                                                       ; +0x23, 0x1400c1693\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1400c1697\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x2a, 0x1400c169a\nmov     [rsp+98h+var_38], rax                                          ; +0x2f, 0x1400c169f\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x34, 0x1400c16a4\nlea     ecx, [rax+30h]                                                 ; +0x3d, 0x1400c16ad\ncall    sub_14003AA10                                                  ; +0x40, 0x1400c16b0\nmov     rdx, rax                                                       ; +0x45, 0x1400c16b5\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x48, 0x1400c16b8\nmov     [rsp+98h+var_38], 27h ; '''                                    ; +0x4d, 0x1400c16bd\nmov     [rsp+98h+var_30], 2Fh ; '/'                                    ; +0x56, 0x1400c16c6\nmovups  xmm0, cs:xmmword_14054C588                                     ; +0x5f, 0x1400c16cf\nmovups  xmmword ptr [rax], xmm0                                        ; +0x66, 0x1400c16d6\nmovups  xmm1, cs:xmmword_14054C598                                     ; +0x69, 0x1400c16d9\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x70, 0x1400c16e0\nmov     ecx, cs:dword_14054C5A8                                        ; +0x74, 0x1400c16e4\nmov     [rax+20h], ecx                                                 ; +0x7a, 0x1400c16ea\nmovzx   eax, cs:word_14054C5AC                                         ; +0x7d, 0x1400c16ed\nmov     [rdx+24h], ax                                                  ; +0x84, 0x1400c16f4\nmovzx   eax, cs:byte_14054C5AE                                         ; +0x88, 0x1400c16f8\nmov     [rdx+26h], al                                                  ; +0x8f, 0x1400c16ff\nmov     byte ptr [rdx+27h], 0                                          ; +0x92, 0x1400c1702\nlea     rax, [rsp+98h+var_48]                                          ; +0x96, 0x1400c1706\nmov     [rsp+98h+arg_0], rax                                           ; +0x9b, 0x1400c170b\nlea     rdx, [rsp+98h+var_48]                                          ; +0xa3, 0x1400c1713\nlea     rcx, [rsp+98h+var_28]                                          ; +0xa8, 0x1400c1718\ncall    sub_14003BDB0                                                  ; +0xad, 0x1400c171d\nmovss   xmm0, cs:flt_140622C24                                         ; +0xb2, 0x1400c1722\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xba, 0x1400c172a\nxorps   xmm1, xmm1                                                     ; +0xc0, 0x1400c1730\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xc3, 0x1400c1733\nmov     [rsp+98h+var_68], 0                                            ; +0xc9, 0x1400c1739\nmovss   xmm0, cs:dword_14062343C                                       ; +0xce, 0x1400c173e\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xd6, 0x1400c1746\nlea     rcx, aDelete_0; \"Delete\"                                       ; +0xdc, 0x1400c174c\nmov     [rsp+98h+var_78], rcx                                          ; +0xe3, 0x1400c1753\nlea     r9, aCancel; \"Cancel\"                                          ; +0xe8, 0x1400c1758\nmov     r8, rax                                                        ; +0xef, 0x1400c175f\nlea     rdx, aDeleteSfx; \"Delete SFX\"                                  ; +0xf2, 0x1400c1762\nmov     rcx, rbx                                                       ; +0xf9, 0x1400c1769\ncall    FLAlertLayer__create                                           ; +0xfc, 0x1400c176c\nmov     rbx, rax                                                       ; +0x101, 0x1400c1771\nlea     rcx, [rsp+98h+var_48]                                          ; +0x104, 0x1400c1774\ncall    sub_14003A830                                                  ; +0x109, 0x1400c1779\nmov     r8, [rbx]                                                      ; +0x10e, 0x1400c177e\nmov     edx, 3                                                         ; +0x111, 0x1400c1781\nmov     rcx, rbx                                                       ; +0x116, 0x1400c1786\ncall    qword ptr [r8+40h]                                             ; +0x119, 0x1400c1789\nmov     rdx, [rbx]                                                     ; +0x11d, 0x1400c178d\nmov     rcx, rbx                                                       ; +0x120, 0x1400c1790\ncall    qword ptr [rdx+410h]                                           ; +0x123, 0x1400c1793\nadd     rsp, 90h                                                       ; +0x129, 0x1400c1799\npop     rbx                                                            ; +0x130, 0x1400c17a0\nretn                                                                   ; +0x131, 0x1400c17a1", "xrefs": ["CustomSFXWidget::init @ 0x1400c0e27", "<???> @ 0x1406c7f20"], "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"}