{"type": "func", "start": 4297449520, "end": 4297449552, "name": "GameObject::getSecondaryColorMode", "pseudocode": "// \n// GameObject::getSecondaryColorMode from 0x10025e030 to 0x10025e050 (32 bytes)\n// \n// 12 xrefs:\n// > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9f8\n// > LevelEditorLayer::updateVisibility @ 0x10035ecd4\n// > LevelEditorLayer::updateVisibility @ 0x10035eed0\n// > LevelEditorLayer::updateVisibility @ 0x10035ef68\n// > LevelEditorLayer::updateObjectColors @ 0x10035f2f4\n// > LevelEditorLayer::updateObjectColors @ 0x10035f4b0\n// > LevelEditorLayer::getNextColorChannel @ 0x1003602fc\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1003604a8\n// > EditorUI::copyObjects @ 0x1003e88c4\n// > EditorUI::spriteFromObjectString @ 0x1003ea958\n// > EditorUI::canSelectObject @ 0x1003ed5b8\n// > EditorUI::selectObjects @ 0x1003ed774\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::getSecondaryColorMode(GameObject *a1)\n{\n  GJSpriteColor *m_detailColor; // x8\n  int m_colorID; // w8\n\n  m_detailColor = a1->m_detailColor;\n  if ( !m_detailColor )\n    return 0;\n  m_colorID = m_detailColor->m_colorID;\n  if ( m_colorID )\n    return m_colorID;\n  else\n    return a1->m_detailColor->m_defaultColorID;\n}", "assembly": "; \n; GameObject::getSecondaryColorMode from 0x10025e030 to 0x10025e050 (32 bytes)\n; \n; 12 xrefs:\n; > GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9f8\n; > LevelEditorLayer::updateVisibility @ 0x10035ecd4\n; > LevelEditorLayer::updateVisibility @ 0x10035eed0\n; > LevelEditorLayer::updateVisibility @ 0x10035ef68\n; > LevelEditorLayer::updateObjectColors @ 0x10035f2f4\n; > LevelEditorLayer::updateObjectColors @ 0x10035f4b0\n; > LevelEditorLayer::getNextColorChannel @ 0x1003602fc\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1003604a8\n; > EditorUI::copyObjects @ 0x1003e88c4\n; > EditorUI::spriteFromObjectString @ 0x1003ea958\n; > EditorUI::canSelectObject @ 0x1003ed5b8\n; > EditorUI::selectObjects @ 0x1003ed774\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,#0x450]                                        ; +0x0, 0x10025e030\nCBZ             X8, loc_10025E048                                      ; +0x4, 0x10025e034\nLDP             W8, W9, [X8]                                           ; +0x8, 0x10025e038\nCMP             W8, #0                                                 ; +0xc, 0x10025e03c\nCSEL            W0, W9, W8, EQ                                         ; +0x10, 0x10025e040\nRET                                                                    ; +0x14, 0x10025e044\nMOV             W0, #0                                                 ; +0x18, 0x10025e048\nRET                                                                    ; +0x1c, 0x10025e04c", "xrefs": ["GJBaseGameLayer::triggerGradientCommand @ 0x1001ef9f8", "LevelEditorLayer::updateVisibility @ 0x10035ecd4", "LevelEditorLayer::updateVisibility @ 0x10035eed0", "LevelEditorLayer::updateVisibility @ 0x10035ef68", "LevelEditorLayer::updateObjectColors @ 0x10035f2f4", "LevelEditorLayer::updateObjectColors @ 0x10035f4b0", "LevelEditorLayer::getNextColorChannel @ 0x1003602fc", "LevelEditorLayer::resetUnusedColorChannels @ 0x1003604a8", "EditorUI::copyObjects @ 0x1003e88c4", "EditorUI::spriteFromObjectString @ 0x1003ea958", "EditorUI::canSelectObject @ 0x1003ed5b8", "EditorUI::selectObjects @ 0x1003ed774"], "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"}