{"type": "func", "start": 5371170464, "end": 5371170697, "name": "ColorAction::create", "pseudocode": "// \n// ColorAction::create from 0x140258ea0 to 0x140258f89 (233 bytes)\n// \n// 16 xrefs:\n// > GJEffectManager::getColorAction @ 0x14025bc45\n// > GJEffectManager::setupFromString @ 0x140263d17\n// > GJEffectManager::loadFromState @ 0x140264537\n// > LevelEditorLayer::init @ 0x1402d2a07\n// > LevelEditorLayer::init @ 0x1402d2a90\n// > LevelEditorLayer::getNextColorChannel @ 0x1402db342\n// > LevelEditorLayer::transferDefaultColors @ 0x1402dbf0d\n// > LevelEditorLayer::transferDefaultColors @ 0x1402dbf8c\n// > LevelSettingsObject::init @ 0x1402eacbb\n// > LevelSettingsObject::init @ 0x1402ead1a\n// > LevelSettingsObject::init @ 0x1402ead79\n// > LevelSettingsObject::init @ 0x1402eadd8\n// > LevelSettingsObject::init @ 0x1402eae3b\n// > LevelSettingsObject::init @ 0x1402eae9a\n// > CreateParticlePopup::onSelectColor @ 0x1404318e3\n// > <???> @ 0x1406cfbe8\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\nColorAction *ColorAction::create()\n{\n  char *v1; // [rsp+30h] [rbp+8h]\n\n  v1 = (char *)operator new(0xA8u);\n  cocos2d::CCObject::CCObject((cocos2d::CCObject *)v1);\n  *(_QWORD *)v1 = &ColorAction::`vftable';\n  *((_WORD *)v1 + 28) = 0;\n  *((_QWORD *)v1 + 8) = 1065353216;\n  *((_DWORD *)v1 + 20) = 0;\n  v1[84] = 0;\n  *((_QWORD *)v1 + 11) = 0;\n  *((_DWORD *)v1 + 24) = 1065353216;\n  *((_DWORD *)v1 + 25) = 1065353216;\n  *(_OWORD *)(v1 + 104) = xmmword_1406BA178;\n  *((_DWORD *)v1 + 30) = 0;\n  *((_WORD *)v1 + 62) = 0;\n  v1[126] = 0;\n  *((_QWORD *)v1 + 16) = 0;\n  v1[136] = 0;\n  *((_QWORD *)v1 + 18) = 0;\n  *((_QWORD *)v1 + 19) = 0;\n  *((_QWORD *)v1 + 20) = 0;\n  *((_WORD *)v1 + 36) = -1;\n  v1[74] = -1;\n  *(_WORD *)(v1 + 75) = -1;\n  v1[77] = -1;\n  *((_DWORD *)v1 + 20) = 0;\n  v1[84] = 0;\n  *((_DWORD *)v1 + 22) = -1;\n  *((_DWORD *)v1 + 23) = 0;\n  *((_DWORD *)v1 + 24) = 1065353216;\n  *((_DWORD *)v1 + 25) = 1065353216;\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  return (ColorAction *)v1;\n}", "assembly": "; \n; ColorAction::create from 0x140258ea0 to 0x140258f89 (233 bytes)\n; \n; 16 xrefs:\n; > GJEffectManager::getColorAction @ 0x14025bc45\n; > GJEffectManager::setupFromString @ 0x140263d17\n; > GJEffectManager::loadFromState @ 0x140264537\n; > LevelEditorLayer::init @ 0x1402d2a07\n; > LevelEditorLayer::init @ 0x1402d2a90\n; > LevelEditorLayer::getNextColorChannel @ 0x1402db342\n; > LevelEditorLayer::transferDefaultColors @ 0x1402dbf0d\n; > LevelEditorLayer::transferDefaultColors @ 0x1402dbf8c\n; > LevelSettingsObject::init @ 0x1402eacbb\n; > LevelSettingsObject::init @ 0x1402ead1a\n; > LevelSettingsObject::init @ 0x1402ead79\n; > LevelSettingsObject::init @ 0x1402eadd8\n; > LevelSettingsObject::init @ 0x1402eae3b\n; > LevelSettingsObject::init @ 0x1402eae9a\n; > CreateParticlePopup::onSelectColor @ 0x1404318e3\n; > <???> @ 0x1406cfbe8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140258ea0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140258ea5\npush    rdi                                                            ; +0xa, 0x140258eaa\nsub     rsp, 20h                                                       ; +0xb, 0x140258eab\nmovzx   esi, cs:word_140529AB0                                         ; +0xf, 0x140258eaf\nmovzx   ebx, cs:byte_140529AB2                                         ; +0x16, 0x140258eb6\nmov     ecx, 0A8h; Size                                                ; +0x1d, 0x140258ebd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x140258ec2\nmov     rdi, rax                                                       ; +0x27, 0x140258ec7\nmov     [rsp+28h+arg_0], rax                                           ; +0x2a, 0x140258eca\nmov     rcx, rax                                                       ; +0x2f, 0x140258ecf\ncall    cs:??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x32, 0x140258ed2\nlea     rax, ??_7ColorAction@@6B@; const ColorAction::`vftable'        ; +0x38, 0x140258ed8\nmov     [rdi], rax                                                     ; +0x3f, 0x140258edf\nmov     word ptr [rdi+38h], 0                                          ; +0x42, 0x140258ee2\nmov     qword ptr [rdi+40h], 3F800000h                                 ; +0x48, 0x140258ee8\nxor     eax, eax                                                       ; +0x50, 0x140258ef0\nmov     [rdi+50h], eax                                                 ; +0x52, 0x140258ef2\nmov     [rdi+54h], al                                                  ; +0x55, 0x140258ef5\nmov     [rdi+58h], rax                                                 ; +0x58, 0x140258ef8\nmov     dword ptr [rdi+60h], 3F800000h                                 ; +0x5c, 0x140258efc\nmov     dword ptr [rdi+64h], 3F800000h                                 ; +0x63, 0x140258f03\nmovups  xmm0, cs:xmmword_1406BA178                                     ; +0x6a, 0x140258f0a\nmovups  xmmword ptr [rdi+68h], xmm0                                    ; +0x71, 0x140258f11\nmov     [rdi+78h], eax                                                 ; +0x75, 0x140258f15\nmov     [rdi+7Ch], ax                                                  ; +0x78, 0x140258f18\nmov     [rdi+7Eh], al                                                  ; +0x7c, 0x140258f1c\nmov     [rdi+80h], rax                                                 ; +0x7f, 0x140258f1f\nmov     [rdi+88h], al                                                  ; +0x86, 0x140258f26\nmov     [rdi+90h], rax                                                 ; +0x8c, 0x140258f2c\nmov     [rdi+98h], rax                                                 ; +0x93, 0x140258f33\nmov     [rdi+0A0h], rax                                                ; +0x9a, 0x140258f3a\nmov     [rdi+48h], si                                                  ; +0xa1, 0x140258f41\nmov     [rdi+4Ah], bl                                                  ; +0xa5, 0x140258f45\nmov     [rdi+4Bh], si                                                  ; +0xa8, 0x140258f48\nmov     [rdi+4Dh], bl                                                  ; +0xac, 0x140258f4c\nmov     [rdi+50h], eax                                                 ; +0xaf, 0x140258f4f\nmov     [rdi+54h], al                                                  ; +0xb2, 0x140258f52\nmov     dword ptr [rdi+58h], 0FFFFFFFFh                                ; +0xb5, 0x140258f55\nmov     [rdi+5Ch], eax                                                 ; +0xbc, 0x140258f5c\nmov     dword ptr [rdi+60h], 3F800000h                                 ; +0xbf, 0x140258f5f\nmov     dword ptr [rdi+64h], 3F800000h                                 ; +0xc6, 0x140258f66\nmov     rcx, rdi                                                       ; +0xcd, 0x140258f6d\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd0, 0x140258f70\nmov     rax, rdi                                                       ; +0xd6, 0x140258f76\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd9, 0x140258f79\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xde, 0x140258f7e\nadd     rsp, 20h                                                       ; +0xe3, 0x140258f83\npop     rdi                                                            ; +0xe7, 0x140258f87\nretn                                                                   ; +0xe8, 0x140258f88", "xrefs": ["GJEffectManager::getColorAction @ 0x14025bc45", "GJEffectManager::setupFromString @ 0x140263d17", "GJEffectManager::loadFromState @ 0x140264537", "LevelEditorLayer::init @ 0x1402d2a07", "LevelEditorLayer::init @ 0x1402d2a90", "LevelEditorLayer::getNextColorChannel @ 0x1402db342", "LevelEditorLayer::transferDefaultColors @ 0x1402dbf0d", "LevelEditorLayer::transferDefaultColors @ 0x1402dbf8c", "LevelSettingsObject::init @ 0x1402eacbb", "LevelSettingsObject::init @ 0x1402ead1a", "LevelSettingsObject::init @ 0x1402ead79", "LevelSettingsObject::init @ 0x1402eadd8", "LevelSettingsObject::init @ 0x1402eae3b", "LevelSettingsObject::init @ 0x1402eae9a", "CreateParticlePopup::onSelectColor @ 0x1404318e3", "<???> @ 0x1406cfbe8"], "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"}