{"type": "func", "start": 4297887504, "end": 4297887747, "name": "GJEffectManager::getColorSprite", "pseudocode": "// \n// GJEffectManager::getColorSprite from 0x1002c8f10 to 0x1002c9003 (243 bytes)\n// \n// 21 xrefs:\n// > LevelEditorLayer::transferDefaultColors @ 0x1000c2205\n// > LevelEditorLayer::transferDefaultColors @ 0x1000c2238\n// > LevelEditorLayer::transferDefaultColors @ 0x1000c226b\n// > LevelEditorLayer::transferDefaultColors @ 0x1000c229e\n// > GJBaseGameLayer::updateColor @ 0x100119d76\n// > GJEffectManager::getColorAction @ 0x1002c8e70\n// > GJEffectManager::activeColorForIndex @ 0x1002c8ee0\n// > GJEffectManager::activeOpacityForIndex @ 0x1002c9024\n// > GJEffectManager::processCopyColorPulseActions @ 0x1002c97e8\n// > GJEffectManager::processCopyColorPulseActions @ 0x1002c982a\n// > GJEffectManager::calculateInheritedColor @ 0x1002c9c25\n// > GJEffectManager::colorForPulseEffect @ 0x1002c9f2b\n// > GJEffectManager::setColorAction @ 0x1002ca02a\n// > GJEffectManager::calculateLightBGColor @ 0x1002d8835\n// > GJEffectManager::calculateLightBGColor @ 0x1002d896d\n// > GJEffectManager::calculateLightBGColor @ 0x1002d898f\n// > GJEffectManager::setupFromString @ 0x1002d9521\n// > GJEffectManager::loadFromState @ 0x1002d9d68\n// > GameObject::saveActiveColors @ 0x10069a372\n// > GameObject::saveActiveColors @ 0x10069a38b\n// > GameObject::setupColorSprite @ 0x10069a473\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 12:28:09 +0000\n// \n\nchar *__fastcall GJEffectManager::getColorSprite(_QWORD *a1, int a2)\n{\n  int v2; // eax\n  __int64 v3; // rbx\n  char *v4; // r14\n\n  v2 = 0;\n  if ( a2 > 0 )\n    v2 = a2;\n  v3 = 1101;\n  if ( v2 < 1101 )\n    v3 = (unsigned int)v2;\n  v4 = *(char **)(a1[83] + 8 * v3);\n  if ( !v4 )\n  {\n    v4 = (char *)operator new(0x158u);\n    cocos2d::CCNode::CCNode((__int64)v4);\n    *(_QWORD *)v4 = off_100B11410;\n    *((_DWORD *)v4 + 79) = 1132396544;\n    *((_DWORD *)v4 + 82) = 0;\n    *((_QWORD *)v4 + 42) = 0;\n    if ( cocos2d::CCNode::init() )\n    {\n      *((_WORD *)v4 + 162) = -1;\n      *(_QWORD *)(v4 + 316) = -3162570752LL;\n      cocos2d::CCObject::autorelease(v4);\n    }\n    else\n    {\n      (*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);\n      v4 = nullptr;\n    }\n    *((_DWORD *)v4 + 82) = v3;\n    (*(void (__fastcall **)(_QWORD *, char *))(*a1 + 456LL))(a1, v4);\n    *(_QWORD *)(a1[83] + 8 * v3) = v4;\n    cocos2d::CCDictionary::setObject_1(a1[42], v4, v3);\n  }\n  return v4;\n}", "assembly": "; \n; GJEffectManager::getColorSprite from 0x1002c8f10 to 0x1002c9003 (243 bytes)\n; \n; 21 xrefs:\n; > LevelEditorLayer::transferDefaultColors @ 0x1000c2205\n; > LevelEditorLayer::transferDefaultColors @ 0x1000c2238\n; > LevelEditorLayer::transferDefaultColors @ 0x1000c226b\n; > LevelEditorLayer::transferDefaultColors @ 0x1000c229e\n; > GJBaseGameLayer::updateColor @ 0x100119d76\n; > GJEffectManager::getColorAction @ 0x1002c8e70\n; > GJEffectManager::activeColorForIndex @ 0x1002c8ee0\n; > GJEffectManager::activeOpacityForIndex @ 0x1002c9024\n; > GJEffectManager::processCopyColorPulseActions @ 0x1002c97e8\n; > GJEffectManager::processCopyColorPulseActions @ 0x1002c982a\n; > GJEffectManager::calculateInheritedColor @ 0x1002c9c25\n; > GJEffectManager::colorForPulseEffect @ 0x1002c9f2b\n; > GJEffectManager::setColorAction @ 0x1002ca02a\n; > GJEffectManager::calculateLightBGColor @ 0x1002d8835\n; > GJEffectManager::calculateLightBGColor @ 0x1002d896d\n; > GJEffectManager::calculateLightBGColor @ 0x1002d898f\n; > GJEffectManager::setupFromString @ 0x1002d9521\n; > GJEffectManager::loadFromState @ 0x1002d9d68\n; > GameObject::saveActiveColors @ 0x10069a372\n; > GameObject::saveActiveColors @ 0x10069a38b\n; > GameObject::setupColorSprite @ 0x10069a473\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 12:28:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002c8f10\nmov     rbp, rsp                                                       ; +0x1, 0x1002c8f11\npush    r15                                                            ; +0x4, 0x1002c8f14\npush    r14                                                            ; +0x6, 0x1002c8f16\npush    rbx                                                            ; +0x8, 0x1002c8f18\npush    rax                                                            ; +0x9, 0x1002c8f19\nxor     eax, eax                                                       ; +0xa, 0x1002c8f1a\ntest    esi, esi                                                       ; +0xc, 0x1002c8f1c\ncmovg   eax, esi                                                       ; +0xe, 0x1002c8f1e\ncmp     eax, 44Dh                                                      ; +0x11, 0x1002c8f21\nmov     ebx, 44Dh                                                      ; +0x16, 0x1002c8f26\ncmovl   ebx, eax                                                       ; +0x1b, 0x1002c8f2b\nmov     rax, [rdi+298h]                                                ; +0x1e, 0x1002c8f2e\nmov     r14, [rax+rbx*8]                                               ; +0x25, 0x1002c8f35\ntest    r14, r14                                                       ; +0x29, 0x1002c8f39\njnz     loc_1002C8FF5                                                  ; +0x2c, 0x1002c8f3c\nmov     r15, rdi                                                       ; +0x32, 0x1002c8f42\nmov     edi, 158h; __sz                                                ; +0x35, 0x1002c8f45\ncall    __Znwm; operator new(ulong)                                    ; +0x3a, 0x1002c8f4a\nmov     r14, rax                                                       ; +0x3f, 0x1002c8f4f\nmov     rdi, rax                                                       ; +0x42, 0x1002c8f52\ncall    cocos2d__CCNode__CCNode                                        ; +0x45, 0x1002c8f55\nlea     rax, off_100B11410                                             ; +0x4a, 0x1002c8f5a\nmov     [r14], rax                                                     ; +0x51, 0x1002c8f61\nmov     dword ptr [r14+13Ch], 437F0000h                                ; +0x54, 0x1002c8f64\nmov     dword ptr [r14+148h], 0                                        ; +0x5f, 0x1002c8f6f\nmov     qword ptr [r14+150h], 0                                        ; +0x6a, 0x1002c8f7a\nmov     rdi, r14                                                       ; +0x75, 0x1002c8f85\ncall    cocos2d__CCNode__init                                          ; +0x78, 0x1002c8f88\ntest    al, al                                                         ; +0x7d, 0x1002c8f8d\njz      short loc_1002C8FB6                                            ; +0x7f, 0x1002c8f8f\nmov     word ptr [r14+144h], 0FFFFh                                    ; +0x81, 0x1002c8f91\nmov     rax, 0FFFFFFFF437F0000h                                        ; +0x8b, 0x1002c8f9b\nmov     [r14+13Ch], rax                                                ; +0x95, 0x1002c8fa5\nmov     rdi, r14                                                       ; +0x9c, 0x1002c8fac\ncall    cocos2d__CCObject__autorelease                                 ; +0x9f, 0x1002c8faf\njmp     short loc_1002C8FC2                                            ; +0xa4, 0x1002c8fb4\nmov     rax, [r14]                                                     ; +0xa6, 0x1002c8fb6\nmov     rdi, r14                                                       ; +0xa9, 0x1002c8fb9\ncall    qword ptr [rax+10h]                                            ; +0xac, 0x1002c8fbc\nxor     r14d, r14d                                                     ; +0xaf, 0x1002c8fbf\nmov     [r14+148h], ebx                                                ; +0xb2, 0x1002c8fc2\nmov     rax, [r15]                                                     ; +0xb9, 0x1002c8fc9\nmov     rdi, r15                                                       ; +0xbc, 0x1002c8fcc\nmov     rsi, r14                                                       ; +0xbf, 0x1002c8fcf\ncall    qword ptr [rax+1C8h]                                           ; +0xc2, 0x1002c8fd2\nmov     rax, [r15+298h]                                                ; +0xc8, 0x1002c8fd8\nmov     [rax+rbx*8], r14                                               ; +0xcf, 0x1002c8fdf\nmov     rdi, [r15+150h]                                                ; +0xd3, 0x1002c8fe3\nmov     rsi, r14                                                       ; +0xda, 0x1002c8fea\nmov     rdx, rbx                                                       ; +0xdd, 0x1002c8fed\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xe0, 0x1002c8ff0\nmov     rax, r14                                                       ; +0xe5, 0x1002c8ff5\nadd     rsp, 8                                                         ; +0xe8, 0x1002c8ff8\npop     rbx                                                            ; +0xec, 0x1002c8ffc\npop     r14                                                            ; +0xed, 0x1002c8ffd\npop     r15                                                            ; +0xef, 0x1002c8fff\npop     rbp                                                            ; +0xf1, 0x1002c9001\nretn                                                                   ; +0xf2, 0x1002c9002", "xrefs": ["LevelEditorLayer::transferDefaultColors @ 0x1000c2205", "LevelEditorLayer::transferDefaultColors @ 0x1000c2238", "LevelEditorLayer::transferDefaultColors @ 0x1000c226b", "LevelEditorLayer::transferDefaultColors @ 0x1000c229e", "GJBaseGameLayer::updateColor @ 0x100119d76", "GJEffectManager::getColorAction @ 0x1002c8e70", "GJEffectManager::activeColorForIndex @ 0x1002c8ee0", "GJEffectManager::activeOpacityForIndex @ 0x1002c9024", "GJEffectManager::processCopyColorPulseActions @ 0x1002c97e8", "GJEffectManager::processCopyColorPulseActions @ 0x1002c982a", "GJEffectManager::calculateInheritedColor @ 0x1002c9c25", "GJEffectManager::colorForPulseEffect @ 0x1002c9f2b", "GJEffectManager::setColorAction @ 0x1002ca02a", "GJEffectManager::calculateLightBGColor @ 0x1002d8835", "GJEffectManager::calculateLightBGColor @ 0x1002d896d", "GJEffectManager::calculateLightBGColor @ 0x1002d898f", "GJEffectManager::setupFromString @ 0x1002d9521", "GJEffectManager::loadFromState @ 0x1002d9d68", "GameObject::saveActiveColors @ 0x10069a372", "GameObject::saveActiveColors @ 0x10069a38b", "GameObject::setupColorSprite @ 0x10069a473"], "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"}