{"type": "func", "start": 4301853552, "end": 4301853582, "name": "GameObject::getSecondaryColorMode", "pseudocode": "// \n// GameObject::getSecondaryColorMode from 0x100691370 to 0x10069138e (30 bytes)\n// \n// 13 xrefs:\n// > LevelEditorLayer::updateVisibility @ 0x1000be0fa\n// > LevelEditorLayer::updateVisibility @ 0x1000be2db\n// > LevelEditorLayer::updateVisibility @ 0x1000be37a\n// > LevelEditorLayer::updateObjectColors @ 0x1000be7ab\n// > LevelEditorLayer::updateObjectColors @ 0x1000be982\n// > LevelEditorLayer::getNextColorChannel @ 0x1000c0e6f\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11cf\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1001168f8\n// > EditorUI::copyObjects @ 0x1005b614b\n// > EditorUI::canSelectObject @ 0x1005b88d8\n// > EditorUI::selectObjects @ 0x1005b8bce\n// > sub_1005B9640 @ 0x1005b96ae\n// > EditorUI::spriteFromObjectString @ 0x1006389c7\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:35:08 +0000\n// \n\n__int64 __fastcall GameObject::getSecondaryColorMode(__int64 a1)\n{\n  unsigned int *v1; // rcx\n  __int64 result; // rax\n\n  v1 = *(unsigned int **)(a1 + 1104);\n  if ( !v1 )\n    return 0;\n  result = *v1;\n  if ( !(_DWORD)result )\n    return v1[1];\n  return result;\n}", "assembly": "; \n; GameObject::getSecondaryColorMode from 0x100691370 to 0x10069138e (30 bytes)\n; \n; 13 xrefs:\n; > LevelEditorLayer::updateVisibility @ 0x1000be0fa\n; > LevelEditorLayer::updateVisibility @ 0x1000be2db\n; > LevelEditorLayer::updateVisibility @ 0x1000be37a\n; > LevelEditorLayer::updateObjectColors @ 0x1000be7ab\n; > LevelEditorLayer::updateObjectColors @ 0x1000be982\n; > LevelEditorLayer::getNextColorChannel @ 0x1000c0e6f\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11cf\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1001168f8\n; > EditorUI::copyObjects @ 0x1005b614b\n; > EditorUI::canSelectObject @ 0x1005b88d8\n; > EditorUI::selectObjects @ 0x1005b8bce\n; > sub_1005B9640 @ 0x1005b96ae\n; > EditorUI::spriteFromObjectString @ 0x1006389c7\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:35:08 +0000\n; \nmov     rcx, [rdi+450h]                                                ; +0x0, 0x100691370\ntest    rcx, rcx                                                       ; +0x7, 0x100691377\njz      short loc_10069138B                                            ; +0xa, 0x10069137a\npush    rbp                                                            ; +0xc, 0x10069137c\nmov     rbp, rsp                                                       ; +0xd, 0x10069137d\nmov     eax, [rcx]                                                     ; +0x10, 0x100691380\ntest    eax, eax                                                       ; +0x12, 0x100691382\njnz     short loc_100691389                                            ; +0x14, 0x100691384\nmov     eax, [rcx+4]                                                   ; +0x16, 0x100691386\npop     rbp                                                            ; +0x19, 0x100691389\nretn                                                                   ; +0x1a, 0x10069138a\nxor     eax, eax                                                       ; +0x1b, 0x10069138b\nretn                                                                   ; +0x1d, 0x10069138d", "xrefs": ["LevelEditorLayer::updateVisibility @ 0x1000be0fa", "LevelEditorLayer::updateVisibility @ 0x1000be2db", "LevelEditorLayer::updateVisibility @ 0x1000be37a", "LevelEditorLayer::updateObjectColors @ 0x1000be7ab", "LevelEditorLayer::updateObjectColors @ 0x1000be982", "LevelEditorLayer::getNextColorChannel @ 0x1000c0e6f", "LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11cf", "GJBaseGameLayer::triggerGradientCommand @ 0x1001168f8", "EditorUI::copyObjects @ 0x1005b614b", "EditorUI::canSelectObject @ 0x1005b88d8", "EditorUI::selectObjects @ 0x1005b8bce", "sub_1005B9640 @ 0x1005b96ae", "EditorUI::spriteFromObjectString @ 0x1006389c7"], "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"}