{"type": "func", "start": 5372727280, "end": 5372727589, "name": "EditorSoundsSettingsPopup::onClearAll", "pseudocode": "// \n// EditorSoundsSettingsPopup::onClearAll from 0x1403d4ff0 to 0x1403d5125 (309 bytes)\n// \n// 2 xrefs:\n// > EditorSoundsSettingsPopup::init @ 0x1403d4ccc\n// > <???> @ 0x140924938\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:31:36 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditorSoundsSettingsPopup::onClearAll(__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  *(_BYTE *)(a1 + 680) = 1;\n  v1 = a1 + 664;\n  if ( !a1 )\n    v1 = 0;\n  v5 = 0;\n  *(_QWORD *)&v5 = sub_14003D460(0x40u);\n  v6 = 63;\n  v7 = 63;\n  strcpy((char *)v5, \"Remove ALL editor sound effect bindings? This cannot be undone.\");\n  v2 = sub_14003F4F0((__int64)v8, (__int64)&v5);\n  v3 = FLAlertLayer::create(v1, (int)\"Clear All\", v2, (__int64)\"Cancel\", (__int64)\"Clear\", 1134559232, 0, 0, 1065353216);\n  sub_14003D310((__int64)&v5);\n  return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n}", "assembly": "; \n; EditorSoundsSettingsPopup::onClearAll from 0x1403d4ff0 to 0x1403d5125 (309 bytes)\n; \n; 2 xrefs:\n; > EditorSoundsSettingsPopup::init @ 0x1403d4ccc\n; > <???> @ 0x140924938\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:31:36 +0000\n; \npush    rbx                                                            ; +0x0, 0x1403d4ff0\nsub     rsp, 90h                                                       ; +0x2, 0x1403d4ff2\nmov     byte ptr [rcx+2A8h], 1                                         ; +0x9, 0x1403d4ff9\nlea     rbx, [rcx+298h]                                                ; +0x10, 0x1403d5000\nxor     eax, eax                                                       ; +0x17, 0x1403d5007\ntest    rcx, rcx                                                       ; +0x19, 0x1403d5009\ncmovz   rbx, rax                                                       ; +0x1c, 0x1403d500c\nxorps   xmm0, xmm0                                                     ; +0x20, 0x1403d5010\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x23, 0x1403d5013\nmov     [rsp+98h+var_38], rax                                          ; +0x28, 0x1403d5018\nmov     [rsp+98h+var_30], rax                                          ; +0x2d, 0x1403d501d\nmov     ecx, 40h ; '@'                                                 ; +0x32, 0x1403d5022\ncall    sub_14003D460                                                  ; +0x37, 0x1403d5027\nmov     rcx, rax                                                       ; +0x3c, 0x1403d502c\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x3f, 0x1403d502f\nmov     [rsp+98h+var_38], 3Fh ; '?'                                    ; +0x44, 0x1403d5034\nmov     [rsp+98h+var_30], 3Fh ; '?'                                    ; +0x4d, 0x1403d503d\nmovaps  xmm0, cs:xmmword_1407859A0                                     ; +0x56, 0x1403d5046\nmovups  xmmword ptr [rax], xmm0                                        ; +0x5d, 0x1403d504d\nmovaps  xmm1, cs:xmmword_1407859B0                                     ; +0x60, 0x1403d5050\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x67, 0x1403d5057\nmovaps  xmm0, cs:xmmword_1407859C0                                     ; +0x6b, 0x1403d505b\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x72, 0x1403d5062\nmovsd   xmm0, cs:qword_1407859D0                                       ; +0x76, 0x1403d5066\nmovsd   qword ptr [rax+30h], xmm0                                      ; +0x7e, 0x1403d506e\nmov     eax, cs:dword_1407859D8                                        ; +0x83, 0x1403d5073\nmov     [rcx+38h], eax                                                 ; +0x89, 0x1403d5079\nmovzx   eax, cs:word_1407859DC                                         ; +0x8c, 0x1403d507c\nmov     [rcx+3Ch], ax                                                  ; +0x93, 0x1403d5083\nmovzx   eax, cs:byte_1407859DE                                         ; +0x97, 0x1403d5087\nmov     [rcx+3Eh], al                                                  ; +0x9e, 0x1403d508e\nmov     byte ptr [rcx+3Fh], 0                                          ; +0xa1, 0x1403d5091\nlea     rax, [rsp+98h+var_48]                                          ; +0xa5, 0x1403d5095\nmov     [rsp+98h+arg_0], rax                                           ; +0xaa, 0x1403d509a\nlea     rdx, [rsp+98h+var_48]                                          ; +0xb2, 0x1403d50a2\nlea     rcx, [rsp+98h+var_28]                                          ; +0xb7, 0x1403d50a7\ncall    sub_14003F4F0                                                  ; +0xbc, 0x1403d50ac\nmovss   xmm0, cs:flt_140835080                                         ; +0xc1, 0x1403d50b1\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xc9, 0x1403d50b9\nxorps   xmm1, xmm1                                                     ; +0xcf, 0x1403d50bf\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xd2, 0x1403d50c2\nmov     [rsp+98h+var_68], 0                                            ; +0xd8, 0x1403d50c8\nmovss   xmm0, cs:dword_1408359C0                                       ; +0xdd, 0x1403d50cd\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xe5, 0x1403d50d5\nlea     rcx, aClear; \"Clear\"                                           ; +0xeb, 0x1403d50db\nmov     [rsp+98h+var_78], rcx                                          ; +0xf2, 0x1403d50e2\nlea     r9, aCancel; \"Cancel\"                                          ; +0xf7, 0x1403d50e7\nmov     r8, rax                                                        ; +0xfe, 0x1403d50ee\nlea     rdx, aClearAll; \"Clear All\"                                    ; +0x101, 0x1403d50f1\nmov     rcx, rbx                                                       ; +0x108, 0x1403d50f8\ncall    FLAlertLayer__create                                           ; +0x10b, 0x1403d50fb\nmov     rbx, rax                                                       ; +0x110, 0x1403d5100\nlea     rcx, [rsp+98h+var_48]                                          ; +0x113, 0x1403d5103\ncall    sub_14003D310                                                  ; +0x118, 0x1403d5108\nmov     rcx, [rbx]                                                     ; +0x11d, 0x1403d510d\nmov     rdx, [rcx+428h]                                                ; +0x120, 0x1403d5110\nmov     rcx, rbx                                                       ; +0x127, 0x1403d5117\ncall    rdx                                                            ; +0x12a, 0x1403d511a\nadd     rsp, 90h                                                       ; +0x12c, 0x1403d511c\npop     rbx                                                            ; +0x133, 0x1403d5123\nretn                                                                   ; +0x134, 0x1403d5124", "xrefs": ["EditorSoundsSettingsPopup::init @ 0x1403d4ccc", "<???> @ 0x140924938"], "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"}