{"type": "func", "start": 4300995776, "end": 4300995806, "name": "GameObject::getSecondaryColorMode", "pseudocode": "// \n// GameObject::getSecondaryColorMode from 0x1005bfcc0 to 0x1005bfcde (30 bytes)\n// \n// 13 xrefs:\n// > EditorUI::onDelete @ 0x10002ddad\n// > EditorUI::copyObjects @ 0x100030f1b\n// > EditorUI::spriteFromObjectString @ 0x100034087\n// > EditorUI::canSelectObject @ 0x10003c138\n// > EditorUI::selectObjects @ 0x10003c33e\n// > LevelEditorLayer::updateVisibility @ 0x1000eb226\n// > LevelEditorLayer::updateVisibility @ 0x1000eb42a\n// > LevelEditorLayer::updateVisibility @ 0x1000eb4ca\n// > LevelEditorLayer::updateObjectColors @ 0x1000eb8eb\n// > LevelEditorLayer::updateObjectColors @ 0x1000ebac2\n// > LevelEditorLayer::getNextColorChannel @ 0x1000ed6df\n// > LevelEditorLayer::resetUnusedColorChannels @ 0x1000eda3f\n// > GJBaseGameLayer::triggerGradientCommand @ 0x100138fb8\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; // rcx\n  int result; // eax\n\n  m_detailColor = a1->m_detailColor;\n  if ( !m_detailColor )\n    return 0;\n  result = m_detailColor->m_colorID;\n  if ( !m_detailColor->m_colorID )\n    return m_detailColor->m_defaultColorID;\n  return result;\n}", "assembly": "; \n; GameObject::getSecondaryColorMode from 0x1005bfcc0 to 0x1005bfcde (30 bytes)\n; \n; 13 xrefs:\n; > EditorUI::onDelete @ 0x10002ddad\n; > EditorUI::copyObjects @ 0x100030f1b\n; > EditorUI::spriteFromObjectString @ 0x100034087\n; > EditorUI::canSelectObject @ 0x10003c138\n; > EditorUI::selectObjects @ 0x10003c33e\n; > LevelEditorLayer::updateVisibility @ 0x1000eb226\n; > LevelEditorLayer::updateVisibility @ 0x1000eb42a\n; > LevelEditorLayer::updateVisibility @ 0x1000eb4ca\n; > LevelEditorLayer::updateObjectColors @ 0x1000eb8eb\n; > LevelEditorLayer::updateObjectColors @ 0x1000ebac2\n; > LevelEditorLayer::getNextColorChannel @ 0x1000ed6df\n; > LevelEditorLayer::resetUnusedColorChannels @ 0x1000eda3f\n; > GJBaseGameLayer::triggerGradientCommand @ 0x100138fb8\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+450h]                                                ; +0x0, 0x1005bfcc0\ntest    rcx, rcx                                                       ; +0x7, 0x1005bfcc7\njz      short loc_1005BFCDB                                            ; +0xa, 0x1005bfcca\npush    rbp                                                            ; +0xc, 0x1005bfccc\nmov     rbp, rsp                                                       ; +0xd, 0x1005bfccd\nmov     eax, [rcx]                                                     ; +0x10, 0x1005bfcd0\ntest    eax, eax                                                       ; +0x12, 0x1005bfcd2\njnz     short loc_1005BFCD9                                            ; +0x14, 0x1005bfcd4\nmov     eax, [rcx+4]                                                   ; +0x16, 0x1005bfcd6\npop     rbp                                                            ; +0x19, 0x1005bfcd9\nretn                                                                   ; +0x1a, 0x1005bfcda\nxor     eax, eax                                                       ; +0x1b, 0x1005bfcdb\nretn                                                                   ; +0x1d, 0x1005bfcdd", "xrefs": ["EditorUI::onDelete @ 0x10002ddad", "EditorUI::copyObjects @ 0x100030f1b", "EditorUI::spriteFromObjectString @ 0x100034087", "EditorUI::canSelectObject @ 0x10003c138", "EditorUI::selectObjects @ 0x10003c33e", "LevelEditorLayer::updateVisibility @ 0x1000eb226", "LevelEditorLayer::updateVisibility @ 0x1000eb42a", "LevelEditorLayer::updateVisibility @ 0x1000eb4ca", "LevelEditorLayer::updateObjectColors @ 0x1000eb8eb", "LevelEditorLayer::updateObjectColors @ 0x1000ebac2", "LevelEditorLayer::getNextColorChannel @ 0x1000ed6df", "LevelEditorLayer::resetUnusedColorChannels @ 0x1000eda3f", "GJBaseGameLayer::triggerGradientCommand @ 0x100138fb8"], "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"}