{"type": "func", "start": 5369613040, "end": 5369613391, "name": "EditorPauseLayer::onResetUnusedColors", "pseudocode": "// \n// EditorPauseLayer::onResetUnusedColors from 0x1400dcaf0 to 0x1400dcc4f (351 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400dabb9\n// > <???> @ 0x1406c8934\n// > <???> @ 0x1406c8940\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 EditorPauseLayer::onResetUnusedColors(EditorPauseLayer *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_saved )\n  {\n    v2 = (_DWORD)a1 + 552;\n    if ( !a1 )\n      v2 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x60u);\n    v6 = 95;\n    v7 = 95;\n    strcpy(\n      (char *)v5,\n      \"Reset all unused color channels?\\n<cy>This will make those channels available as 'next free'</c>\");\n    v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    v4 = FLAlertLayer::create(\n           v2,\n           (int)\"Reset Unused Colors\",\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, 2);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onResetUnusedColors from 0x1400dcaf0 to 0x1400dcc4f (351 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400dabb9\n; > <???> @ 0x1406c8934\n; > <???> @ 0x1406c8940\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, 0x1400dcaf0\nsub     rsp, 90h                                                       ; +0x2, 0x1400dcaf2\ncmp     byte ptr [rcx+230h], 0                                         ; +0x9, 0x1400dcaf9\njnz     loc_1400DCC46                                                  ; +0x10, 0x1400dcb00\nlea     rbx, [rcx+228h]                                                ; +0x16, 0x1400dcb06\nxor     eax, eax                                                       ; +0x1d, 0x1400dcb0d\ntest    rcx, rcx                                                       ; +0x1f, 0x1400dcb0f\ncmovz   rbx, rax                                                       ; +0x22, 0x1400dcb12\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1400dcb16\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x1400dcb19\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x1400dcb1e\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x33, 0x1400dcb23\nlea     ecx, [rax+60h]                                                 ; +0x3c, 0x1400dcb2c\ncall    sub_14003AA10                                                  ; +0x3f, 0x1400dcb2f\nmov     rcx, rax                                                       ; +0x44, 0x1400dcb34\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x47, 0x1400dcb37\nmov     [rsp+98h+var_38], 5Fh ; '_'                                    ; +0x4c, 0x1400dcb3c\nmov     [rsp+98h+var_30], 5Fh ; '_'                                    ; +0x55, 0x1400dcb45\nmovaps  xmm0, cs:xmmword_140551ED0                                     ; +0x5e, 0x1400dcb4e\nmovups  xmmword ptr [rax], xmm0                                        ; +0x65, 0x1400dcb55\nmovaps  xmm1, cs:xmmword_140551EE0                                     ; +0x68, 0x1400dcb58\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x6f, 0x1400dcb5f\nmovaps  xmm0, cs:xmmword_140551EF0                                     ; +0x73, 0x1400dcb63\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x7a, 0x1400dcb6a\nmovaps  xmm1, cs:xmmword_140551F00                                     ; +0x7e, 0x1400dcb6e\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x85, 0x1400dcb75\nmovaps  xmm0, cs:xmmword_140551F10                                     ; +0x89, 0x1400dcb79\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x90, 0x1400dcb80\nmovsd   xmm0, cs:qword_140551F20                                       ; +0x94, 0x1400dcb84\nmovsd   qword ptr [rax+50h], xmm0                                      ; +0x9c, 0x1400dcb8c\nmov     eax, cs:dword_140551F28                                        ; +0xa1, 0x1400dcb91\nmov     [rcx+58h], eax                                                 ; +0xa7, 0x1400dcb97\nmovzx   eax, cs:word_140551F2C                                         ; +0xaa, 0x1400dcb9a\nmov     [rcx+5Ch], ax                                                  ; +0xb1, 0x1400dcba1\nmovzx   eax, cs:byte_140551F2E                                         ; +0xb5, 0x1400dcba5\nmov     [rcx+5Eh], al                                                  ; +0xbc, 0x1400dcbac\nmov     byte ptr [rcx+5Fh], 0                                          ; +0xbf, 0x1400dcbaf\nlea     rax, [rsp+98h+var_48]                                          ; +0xc3, 0x1400dcbb3\nmov     [rsp+98h+arg_0], rax                                           ; +0xc8, 0x1400dcbb8\nlea     rdx, [rsp+98h+var_48]                                          ; +0xd0, 0x1400dcbc0\nlea     rcx, [rsp+98h+var_28]                                          ; +0xd5, 0x1400dcbc5\ncall    sub_14003BDB0                                                  ; +0xda, 0x1400dcbca\nmovss   xmm0, cs:flt_140622C24                                         ; +0xdf, 0x1400dcbcf\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xe7, 0x1400dcbd7\nxorps   xmm1, xmm1                                                     ; +0xed, 0x1400dcbdd\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xf0, 0x1400dcbe0\nmov     [rsp+98h+var_68], 0                                            ; +0xf6, 0x1400dcbe6\nmovss   xmm0, cs:dword_14062343C                                       ; +0xfb, 0x1400dcbeb\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x103, 0x1400dcbf3\nlea     rcx, aYes_0; \"YES\"                                             ; +0x109, 0x1400dcbf9\nmov     [rsp+98h+var_78], rcx                                          ; +0x110, 0x1400dcc00\nlea     r9, unk_140547160                                              ; +0x115, 0x1400dcc05\nmov     r8, rax                                                        ; +0x11c, 0x1400dcc0c\nlea     rdx, aResetUnusedCol; \"Reset Unused Colors\"                    ; +0x11f, 0x1400dcc0f\nmov     rcx, rbx                                                       ; +0x126, 0x1400dcc16\ncall    FLAlertLayer__create                                           ; +0x129, 0x1400dcc19\nmov     rbx, rax                                                       ; +0x12e, 0x1400dcc1e\nlea     rcx, [rsp+98h+var_48]                                          ; +0x131, 0x1400dcc21\ncall    sub_14003A830                                                  ; +0x136, 0x1400dcc26\nmov     r8, [rbx]                                                      ; +0x13b, 0x1400dcc2b\nmov     edx, 2                                                         ; +0x13e, 0x1400dcc2e\nmov     rcx, rbx                                                       ; +0x143, 0x1400dcc33\ncall    qword ptr [r8+40h]                                             ; +0x146, 0x1400dcc36\nmov     rdx, [rbx]                                                     ; +0x14a, 0x1400dcc3a\nmov     rcx, rbx                                                       ; +0x14d, 0x1400dcc3d\ncall    qword ptr [rdx+410h]                                           ; +0x150, 0x1400dcc40\nadd     rsp, 90h                                                       ; +0x156, 0x1400dcc46\npop     rbx                                                            ; +0x15d, 0x1400dcc4d\nretn                                                                   ; +0x15e, 0x1400dcc4e", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400dabb9", "<???> @ 0x1406c8934", "<???> @ 0x1406c8940"], "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"}