//
// GameObject::setDefaultMainColorMode from 0x64850c to 0x64854c (64 bytes)
//
// 127 xrefs:
// > PlayLayer::addObject @ 0x5ccb4c
// > GameObject::commonInteractiveSetup @ 0x648598
// > GameObject::customSetup @ 0x64e2fc
// > GameObject::customSetup @ 0x64e428
// > GameObject::customSetup @ 0x64e478
// > GameObject::customSetup @ 0x64eac8
// > GameObject::customSetup @ 0x64eb60
// > GameObject::customSetup @ 0x64ec20
// > GameObject::customSetup @ 0x64ec4c
// > GameObject::customSetup @ 0x64ec78
// > GameObject::customSetup @ 0x64eca4
// > GameObject::customSetup @ 0x64ecb8
// > GameObject::customSetup @ 0x64ecf4
// > GameObject::customSetup @ 0x64ed10
// > GameObject::customSetup @ 0x64ed74
// > GameObject::customSetup @ 0x64ed9c
// > GameObject::customSetup @ 0x64edb0
// > GameObject::customSetup @ 0x64edd4
// > GameObject::customSetup @ 0x64f0a8
// > GameObject::customSetup @ 0x64f0f4
// > GameObject::customSetup @ 0x64f234
// > GameObject::customSetup @ 0x64f2b4
// > GameObject::customSetup @ 0x64f2ec
// > GameObject::customSetup @ 0x64f320
// > GameObject::customSetup @ 0x64f368
// > GameObject::customSetup @ 0x64f3b0
// > GameObject::customSetup @ 0x64f4e0
// > GameObject::customSetup @ 0x64f560
// > GameObject::customSetup @ 0x64f5a0
// > GameObject::customSetup @ 0x64f5cc
// > GameObject::customSetup @ 0x64f7bc
// > GameObject::customSetup @ 0x64f7e0
// > GameObject::customSetup @ 0x64f808
// > GameObject::customSetup @ 0x64f834
// > GameObject::customSetup @ 0x64f860
// > GameObject::customSetup @ 0x64f88c
// > GameObject::customSetup @ 0x64f918
// > GameObject::customSetup @ 0x64f96c
// > GameObject::customSetup @ 0x64f9b8
// > GameObject::customSetup @ 0x64f9e8
// > GameObject::customSetup @ 0x64fa40
// > GameObject::customSetup @ 0x64fa6c
// > GameObject::customSetup @ 0x64fa84
// > GameObject::customSetup @ 0x64fad4
// > GameObject::customSetup @ 0x64fb0c
// > GameObject::customSetup @ 0x64fb3c
// > GameObject::customSetup @ 0x64fb68
// > GameObject::customSetup @ 0x64fba8
// > GameObject::customSetup @ 0x64fc14
// > GameObject::customSetup @ 0x64fc8c
// > GameObject::customSetup @ 0x64fcc8
// > GameObject::customSetup @ 0x64fd3c
// > GameObject::customSetup @ 0x64fd68
// > GameObject::customSetup @ 0x64fd8c
// > GameObject::customSetup @ 0x64fdb8
// > GameObject::customSetup @ 0x64fde4
// > GameObject::customSetup @ 0x64fe18
// > GameObject::customSetup @ 0x64fe4c
// > GameObject::customSetup @ 0x64fea4
// > GameObject::customSetup @ 0x64fec0
// > GameObject::customSetup @ 0x64ffb8
// > GameObject::customSetup @ 0x64ffd4
// > GameObject::customSetup @ 0x650004
// > GameObject::customSetup @ 0x650084
// > GameObject::customSetup @ 0x6500bc
// > GameObject::customSetup @ 0x6500e8
// > GameObject::customSetup @ 0x650114
// > GameObject::customSetup @ 0x650140
// > GameObject::customSetup @ 0x65016c
// > GameObject::customSetup @ 0x65028c
// > GameObject::customSetup @ 0x650308
// > GameObject::customSetup @ 0x65039c
// > GameObject::customSetup @ 0x650464
// > GameObject::customSetup @ 0x650490
// > GameObject::customSetup @ 0x6504d8
// > GameObject::customSetup @ 0x650504
// > GameObject::customSetup @ 0x650610
// > GameObject::customSetup @ 0x6508c0
// > GameObject::customSetup @ 0x6508f4
// > GameObject::customSetup @ 0x65091c
// > GameObject::customSetup @ 0x650964
// > GameObject::customSetup @ 0x650a0c
// > GameObject::customSetup @ 0x650a44
// > GameObject::customSetup @ 0x650d54
// > GameObject::customSetup @ 0x650d88
// > GameObject::customSetup @ 0x650fac
// > GameObject::customSetup @ 0x65125c
// > GameObject::customSetup @ 0x651290
// > GameObject::customSetup @ 0x6512c4
// > GameObject::customSetup @ 0x651348
// > GameObject::customSetup @ 0x65137c
// > GameObject::customSetup @ 0x6513b8
// > GameObject::customSetup @ 0x6513f8
// > GameObject::customSetup @ 0x651460
// > GameObject::customSetup @ 0x651490
// > GameObject::customSetup @ 0x6514d0
// > EnhancedGameObject::customSetup @ 0x652be8
// > EnhancedGameObject::customSetup @ 0x652d24
// > EnhancedGameObject::customSetup @ 0x652ddc
// > EnhancedGameObject::customSetup @ 0x652e3c
// > EnhancedGameObject::customSetup @ 0x652ec4
// > EnhancedGameObject::customSetup @ 0x652f60
// > EnhancedGameObject::customSetup @ 0x652fdc
// > EnhancedGameObject::customSetup @ 0x653014
// > EnhancedGameObject::customSetup @ 0x65306c
// > EnhancedGameObject::customSetup @ 0x653214
// > EnhancedGameObject::customSetup @ 0x65329c
// > EnhancedGameObject::customSetup @ 0x653350
// > EnhancedGameObject::customSetup @ 0x6533ac
// > EnhancedGameObject::customSetup @ 0x6533dc
// > EnhancedGameObject::customSetup @ 0x653490
// > EnhancedGameObject::customSetup @ 0x6535a0
// > EnhancedGameObject::customSetup @ 0x6535c0
// > EnhancedGameObject::customSetup @ 0x653654
// > EnhancedGameObject::customSetup @ 0x653688
// > EnhancedGameObject::customSetup @ 0x6536d0
// > EnhancedGameObject::customSetup @ 0x65376c
// > EnhancedGameObject::customSetup @ 0x6537d0
// > EnhancedGameObject::customSetup @ 0x653900
// > EnhancedGameObject::customSetup @ 0x653b20
// > EnhancedGameObject::customSetup @ 0x653b50
// > LevelEditorLayer::copyObjectState @ 0x661b40
// > EffectGameObject::customSetup @ 0x75eb34
// > EffectGameObject::customSetup @ 0x75eb58
// > GameObject::setupCustomSprites @ 0x985608
// > GameObject::setupCustomSprites @ 0x991634
// > ??> @ 0xc15c0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameObject::setDefaultMainColorMode(GameObject *a1, int a2)
{
GJSpriteColor *MainColor; // x0
int v3; // w2
MainColor = GameObject::getMainColor(a1);
if ( MainColor )
{
v3 = 1101;
if ( a2 <= 1100 )
{
if ( a2 < 0 )
v3 = 0;
else
v3 = a2;
}
MainColor->m_defaultColorID = v3;
MainColor->m_colorID = 0;
}
}