{"type": "func", "start": 4300995744, "end": 4300995774, "name": "GameObject::getMainColorMode", "pseudocode": "// \n// GameObject::getMainColorMode from 0x1005bfca0 to 0x1005bfcbe (30 bytes)\n// \n// 17 xrefs:\n// > EditorUI::onDelete @ 0x10002dd9c\n// > EditorUI::updateCreateMenu @ 0x10002e416\n// > EditorUI::updateCreateMenu @ 0x10002e5a6\n// > EditorUI::enableButton @ 0x10002e962\n// > EditorUI::copyObjects @ 0x100030eee\n// > EditorUI::spriteFromObjectString @ 0x100034018\n// > EditorUI::canSelectObject @ 0x10003c12b\n// > EditorUI::selectObjects @ 0x10003c331\n// > LevelEditorLayer::updateVisibility @ 0x1000eaea8\n// > LevelEditorLayer::updateVisibility @ 0x1000eb1ea\n// > LevelEditorLayer::updateVisibility @ 0x1000eb24f\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb8af\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb914\n// > LevelEditorLayer::getNextColorChannel @ 0x1000ed6d4\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000eda34\n// > GJBaseGameLayer::triggerGradientCommand @ 0x100138faa\n// > GameObject::setupCustomSprites @ 0x1004463c7\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\nint __fastcall GameObject::getMainColorMode(GameObject *a1)\n{\n  GJSpriteColor *m_baseColor; // rcx\n  int result; // eax\n\n  m_baseColor = a1->m_baseColor;\n  if ( !m_baseColor )\n    return 0;\n  result = m_baseColor->m_colorID;\n  if ( !m_baseColor->m_colorID )\n    return m_baseColor->m_defaultColorID;\n  return result;\n}", "assembly": "; \n; GameObject::getMainColorMode from 0x1005bfca0 to 0x1005bfcbe (30 bytes)\n; \n; 17 xrefs:\n; > EditorUI::onDelete @ 0x10002dd9c\n; > EditorUI::updateCreateMenu @ 0x10002e416\n; > EditorUI::updateCreateMenu @ 0x10002e5a6\n; > EditorUI::enableButton @ 0x10002e962\n; > EditorUI::copyObjects @ 0x100030eee\n; > EditorUI::spriteFromObjectString @ 0x100034018\n; > EditorUI::canSelectObject @ 0x10003c12b\n; > EditorUI::selectObjects @ 0x10003c331\n; > LevelEditorLayer::updateVisibility @ 0x1000eaea8\n; > LevelEditorLayer::updateVisibility @ 0x1000eb1ea\n; > LevelEditorLayer::updateVisibility @ 0x1000eb24f\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb8af\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb914\n; > LevelEditorLayer::getNextColorChannel @ 0x1000ed6d4\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1000eda34\n; > GJBaseGameLayer::triggerGradientCommand @ 0x100138faa\n; > GameObject::setupCustomSprites @ 0x1004463c7\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     rcx, [rdi+448h]                                                ; +0x0, 0x1005bfca0\ntest    rcx, rcx                                                       ; +0x7, 0x1005bfca7\njz      short loc_1005BFCBB                                            ; +0xa, 0x1005bfcaa\npush    rbp                                                            ; +0xc, 0x1005bfcac\nmov     rbp, rsp                                                       ; +0xd, 0x1005bfcad\nmov     eax, [rcx]                                                     ; +0x10, 0x1005bfcb0\ntest    eax, eax                                                       ; +0x12, 0x1005bfcb2\njnz     short loc_1005BFCB9                                            ; +0x14, 0x1005bfcb4\nmov     eax, [rcx+4]                                                   ; +0x16, 0x1005bfcb6\npop     rbp                                                            ; +0x19, 0x1005bfcb9\nretn                                                                   ; +0x1a, 0x1005bfcba\nxor     eax, eax                                                       ; +0x1b, 0x1005bfcbb\nretn                                                                   ; +0x1d, 0x1005bfcbd", "xrefs": ["EditorUI::onDelete @ 0x10002dd9c", "EditorUI::updateCreateMenu @ 0x10002e416", "EditorUI::updateCreateMenu @ 0x10002e5a6", "EditorUI::enableButton @ 0x10002e962", "EditorUI::copyObjects @ 0x100030eee", "EditorUI::spriteFromObjectString @ 0x100034018", "EditorUI::canSelectObject @ 0x10003c12b", "EditorUI::selectObjects @ 0x10003c331", "LevelEditorLayer::updateVisibility @ 0x1000eaea8", "LevelEditorLayer::updateVisibility @ 0x1000eb1ea", "LevelEditorLayer::updateVisibility @ 0x1000eb24f", "LevelEditorLayer::updateObjectColors @ 0x1000eb8af", "LevelEditorLayer::updateObjectColors @ 0x1000eb914", "LevelEditorLayer::getNextColorChannel @ 0x1000ed6d4", "LevelEditorLayer::resetUnusedColorChannels @ 0x1000eda34", "GJBaseGameLayer::triggerGradientCommand @ 0x100138faa", "GameObject::setupCustomSprites @ 0x1004463c7"], "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"}