{"type": "func", "start": 4297669904, "end": 4297670127, "name": "EditorPauseLayer::onResetUnusedColors", "pseudocode": "// \n// EditorPauseLayer::onResetUnusedColors from 0x100293d10 to 0x100293def (223 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x100291fc0\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 __fastcall EditorPauseLayer::onResetUnusedColors(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( !a1->m_saved )\n  {\n    __p = operator new(0x60u);\n    v3[0] = 97;\n    v3[1] = 95;\n    strcpy(\n      (char *)__p,\n      \"Reset all unused color channels?\\n<cy>This will make those channels available as 'next free'</c>\");\n    v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Reset Unused Colors\", v3, \"NO\", \"YES\", 300.0);\n    if ( (v3[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 2);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onResetUnusedColors from 0x100293d10 to 0x100293def (223 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x100291fc0\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    rbp                                                            ; +0x0, 0x100293d10\nmov     rbp, rsp                                                       ; +0x1, 0x100293d11\npush    rbx                                                            ; +0x4, 0x100293d14\nsub     rsp, 18h                                                       ; +0x5, 0x100293d15\ncmp     byte ptr [rdi+230h], 0                                         ; +0x9, 0x100293d19\njnz     loc_100293DE8                                                  ; +0x10, 0x100293d20\nadd     rdi, 228h                                                      ; +0x16, 0x100293d26\nmov     rbx, rdi                                                       ; +0x1d, 0x100293d2d\nmov     edi, 60h ; '`'; __sz                                           ; +0x20, 0x100293d30\ncall    __Znwm; operator new(ulong)                                    ; +0x25, 0x100293d35\nmov     [rbp+__p], rax                                                 ; +0x2a, 0x100293d3a\nmov     [rbp+var_20], 61h ; 'a'                                        ; +0x2e, 0x100293d3e\nmov     [rbp+var_18], 5Fh ; '_'                                        ; +0x36, 0x100293d46\nmovups  xmm0, xmmword ptr cs:aResetAllUnused+4Fh; \" 'next free'</c>\"   ; +0x3e, 0x100293d4e\nmovups  xmmword ptr [rax+4Fh], xmm0                                    ; +0x45, 0x100293d55\nmovups  xmm0, xmmword ptr cs:aResetAllUnused+40h; \"ls available as 'next free'</c>\" ; +0x49, 0x100293d59\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x50, 0x100293d60\nmovups  xmm0, xmmword ptr cs:aResetAllUnused+30h; \"ake those channels available as 'next f\"... ; +0x54, 0x100293d64\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x5b, 0x100293d6b\nmovups  xmm0, xmmword ptr cs:aResetAllUnused+20h; \"\\n<cy>This will make those channels ava\"... ; +0x5f, 0x100293d6f\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x66, 0x100293d76\nmovups  xmm0, xmmword ptr cs:aResetAllUnused+10h; \" color channels?\\n<cy>This will make th\"... ; +0x6a, 0x100293d7a\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x71, 0x100293d81\nmovups  xmm0, xmmword ptr cs:aResetAllUnused; \"Reset all unused color channels?\\n<cy>T\"... ; +0x75, 0x100293d85\nmovups  xmmword ptr [rax], xmm0                                        ; +0x7c, 0x100293d8c\nmov     byte ptr [rax+5Fh], 0                                          ; +0x7f, 0x100293d8f\nlea     rsi, aResetUnusedCol; \"Reset Unused Colors\"                    ; +0x83, 0x100293d93\nlea     rcx, aNo; \"NO\"                                                 ; +0x8a, 0x100293d9a\nlea     r8, aYes_0; \"YES\"                                              ; +0x91, 0x100293da1\nlea     rdx, [rbp+var_20]                                              ; +0x98, 0x100293da8\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x9c, 0x100293dac\nmov     rdi, rbx                                                       ; +0xa4, 0x100293db4\ncall    FLAlertLayer__create_1                                         ; +0xa7, 0x100293db7\nmov     rbx, rax                                                       ; +0xac, 0x100293dbc\ntest    byte ptr [rbp+var_20], 1                                       ; +0xaf, 0x100293dbf\njz      short loc_100293DCE                                            ; +0xb3, 0x100293dc3\nmov     rdi, [rbp+__p]; __p                                            ; +0xb5, 0x100293dc5\ncall    __ZdlPv; operator delete(void *)                               ; +0xb9, 0x100293dc9\nmov     rax, [rbx]                                                     ; +0xbe, 0x100293dce\nmov     rdi, rbx                                                       ; +0xc1, 0x100293dd1\nmov     esi, 2                                                         ; +0xc4, 0x100293dd4\ncall    qword ptr [rax+48h]                                            ; +0xc9, 0x100293dd9\nmov     rax, [rbx]                                                     ; +0xcc, 0x100293ddc\nmov     rdi, rbx                                                       ; +0xcf, 0x100293ddf\ncall    qword ptr [rax+508h]                                           ; +0xd2, 0x100293de2\nadd     rsp, 18h                                                       ; +0xd8, 0x100293de8\npop     rbx                                                            ; +0xdc, 0x100293dec\npop     rbp                                                            ; +0xdd, 0x100293ded\nretn                                                                   ; +0xde, 0x100293dee", "xrefs": ["EditorPauseLayer::customSetup @ 0x100291fc0"], "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"}