{"type": "func", "start": 4297449488, "end": 4297449520, "name": "GameObject::getMainColorMode", "pseudocode": "// \n// GameObject::getMainColorMode from 0x10025e010 to 0x10025e030 (32 bytes)\n// \n// 14 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9ec\n// > GameObject::setupCustomSprites @ 0x1002b0a30\n// > LevelEditorLayer::updateVisibility @ 0x10035eca0\n// > LevelEditorLayer::updateVisibility @ 0x10035ecf8\n// > LevelEditorLayer::updateVisibility @ 0x10035ee3c\n// > LevelEditorLayer::updateObjectColors @ 0x10035f2c0\n// > LevelEditorLayer::updateObjectColors @ 0x10035f318\n// > LevelEditorLayer::getNextColorChannel @ 0x1003602f0\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x10036049c\n// > EditorUI::enableButton @ 0x1003e7008\n// > EditorUI::copyObjects @ 0x1003e889c\n// > EditorUI::spriteFromObjectString @ 0x1003ea8f4\n// > EditorUI::canSelectObject @ 0x1003ed5a8\n// > EditorUI::selectObjects @ 0x1003ed764\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; // x8\n  int m_colorID; // w8\n\n  m_baseColor = a1->m_baseColor;\n  if ( !m_baseColor )\n    return 0;\n  m_colorID = m_baseColor->m_colorID;\n  if ( m_colorID )\n    return m_colorID;\n  else\n    return a1->m_baseColor->m_defaultColorID;\n}", "assembly": "; \n; GameObject::getMainColorMode from 0x10025e010 to 0x10025e030 (32 bytes)\n; \n; 14 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9ec\n; > GameObject::setupCustomSprites @ 0x1002b0a30\n; > LevelEditorLayer::updateVisibility @ 0x10035eca0\n; > LevelEditorLayer::updateVisibility @ 0x10035ecf8\n; > LevelEditorLayer::updateVisibility @ 0x10035ee3c\n; > LevelEditorLayer::updateObjectColors @ 0x10035f2c0\n; > LevelEditorLayer::updateObjectColors @ 0x10035f318\n; > LevelEditorLayer::getNextColorChannel @ 0x1003602f0\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x10036049c\n; > EditorUI::enableButton @ 0x1003e7008\n; > EditorUI::copyObjects @ 0x1003e889c\n; > EditorUI::spriteFromObjectString @ 0x1003ea8f4\n; > EditorUI::canSelectObject @ 0x1003ed5a8\n; > EditorUI::selectObjects @ 0x1003ed764\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\nLDR             X8, [X0,#0x448]                                        ; +0x0, 0x10025e010\nCBZ             X8, loc_10025E028                                      ; +0x4, 0x10025e014\nLDP             W8, W9, [X8]                                           ; +0x8, 0x10025e018\nCMP             W8, #0                                                 ; +0xc, 0x10025e01c\nCSEL            W0, W9, W8, EQ                                         ; +0x10, 0x10025e020\nRET                                                                    ; +0x14, 0x10025e024\nMOV             W0, #0                                                 ; +0x18, 0x10025e028\nRET                                                                    ; +0x1c, 0x10025e02c", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9ec", "GameObject::setupCustomSprites @ 0x1002b0a30", "LevelEditorLayer::updateVisibility @ 0x10035eca0", "LevelEditorLayer::updateVisibility @ 0x10035ecf8", "LevelEditorLayer::updateVisibility @ 0x10035ee3c", "LevelEditorLayer::updateObjectColors @ 0x10035f2c0", "LevelEditorLayer::updateObjectColors @ 0x10035f318", "LevelEditorLayer::getNextColorChannel @ 0x1003602f0", "LevelEditorLayer::resetUnusedColorChannels @ 0x10036049c", "EditorUI::enableButton @ 0x1003e7008", "EditorUI::copyObjects @ 0x1003e889c", "EditorUI::spriteFromObjectString @ 0x1003ea8f4", "EditorUI::canSelectObject @ 0x1003ed5a8", "EditorUI::selectObjects @ 0x1003ed764"], "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"}