{"type": "func", "start": 4301853520, "end": 4301853550, "name": "GameObject::getMainColorMode", "pseudocode": "// \n// GameObject::getMainColorMode from 0x100691350 to 0x10069136e (30 bytes)\n// \n// 17 xrefs:\n// > EditorUI::updateCreateMenu @ 0x10000d126\n// > EditorUI::updateCreateMenu @ 0x10000d2b6\n// > EditorUI::enableButton @ 0x10000d662\n// > LevelEditorLayer::updateVisibility @ 0x1000bdd6b\n// > LevelEditorLayer::updateVisibility @ 0x1000be0be\n// > LevelEditorLayer::updateVisibility @ 0x1000be123\n// > LevelEditorLayer::updateObjectColors @ 0x1000be76f\n// > LevelEditorLayer::updateObjectColors @ 0x1000be7d4\n// > LevelEditorLayer::getNextColorChannel @ 0x1000c0e64\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11c4\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1001168ea\n// > GameObject::setupCustomSprites @ 0x10043a7b7\n// > EditorUI::copyObjects @ 0x1005b611e\n// > EditorUI::canSelectObject @ 0x1005b88cb\n// > EditorUI::selectObjects @ 0x1005b8bc1\n// > sub_1005B9640 @ 0x1005b96a1\n// > EditorUI::spriteFromObjectString @ 0x100638958\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::getMainColorMode(__int64 a1)\n{\n  unsigned int *v1; // rcx\n  __int64 result; // rax\n\n  v1 = *(unsigned int **)(a1 + 1096);\n  if ( !v1 )\n    return 0;\n  result = *v1;\n  if ( !(_DWORD)result )\n    return v1[1];\n  return result;\n}", "assembly": "; \n; GameObject::getMainColorMode from 0x100691350 to 0x10069136e (30 bytes)\n; \n; 17 xrefs:\n; > EditorUI::updateCreateMenu @ 0x10000d126\n; > EditorUI::updateCreateMenu @ 0x10000d2b6\n; > EditorUI::enableButton @ 0x10000d662\n; > LevelEditorLayer::updateVisibility @ 0x1000bdd6b\n; > LevelEditorLayer::updateVisibility @ 0x1000be0be\n; > LevelEditorLayer::updateVisibility @ 0x1000be123\n; > LevelEditorLayer::updateObjectColors @ 0x1000be76f\n; > LevelEditorLayer::updateObjectColors @ 0x1000be7d4\n; > LevelEditorLayer::getNextColorChannel @ 0x1000c0e64\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11c4\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1001168ea\n; > GameObject::setupCustomSprites @ 0x10043a7b7\n; > EditorUI::copyObjects @ 0x1005b611e\n; > EditorUI::canSelectObject @ 0x1005b88cb\n; > EditorUI::selectObjects @ 0x1005b8bc1\n; > sub_1005B9640 @ 0x1005b96a1\n; > EditorUI::spriteFromObjectString @ 0x100638958\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+448h]                                                ; +0x0, 0x100691350\ntest    rcx, rcx                                                       ; +0x7, 0x100691357\njz      short loc_10069136B                                            ; +0xa, 0x10069135a\npush    rbp                                                            ; +0xc, 0x10069135c\nmov     rbp, rsp                                                       ; +0xd, 0x10069135d\nmov     eax, [rcx]                                                     ; +0x10, 0x100691360\ntest    eax, eax                                                       ; +0x12, 0x100691362\njnz     short loc_100691369                                            ; +0x14, 0x100691364\nmov     eax, [rcx+4]                                                   ; +0x16, 0x100691366\npop     rbp                                                            ; +0x19, 0x100691369\nretn                                                                   ; +0x1a, 0x10069136a\nxor     eax, eax                                                       ; +0x1b, 0x10069136b\nretn                                                                   ; +0x1d, 0x10069136d", "xrefs": ["EditorUI::updateCreateMenu @ 0x10000d126", "EditorUI::updateCreateMenu @ 0x10000d2b6", "EditorUI::enableButton @ 0x10000d662", "LevelEditorLayer::updateVisibility @ 0x1000bdd6b", "LevelEditorLayer::updateVisibility @ 0x1000be0be", "LevelEditorLayer::updateVisibility @ 0x1000be123", "LevelEditorLayer::updateObjectColors @ 0x1000be76f", "LevelEditorLayer::updateObjectColors @ 0x1000be7d4", "LevelEditorLayer::getNextColorChannel @ 0x1000c0e64", "LevelEditorLayer::resetUnusedColorChannels @ 0x1000c11c4", "GJBaseGameLayer::triggerGradientCommand @ 0x1001168ea", "GameObject::setupCustomSprites @ 0x10043a7b7", "EditorUI::copyObjects @ 0x1005b611e", "EditorUI::canSelectObject @ 0x1005b88cb", "EditorUI::selectObjects @ 0x1005b8bc1", "sub_1005B9640 @ 0x1005b96a1", "EditorUI::spriteFromObjectString @ 0x100638958"], "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"}