//
// GameObject::setDefaultMainColorMode from 0x357388 to 0x3573ac (36 bytes)
//
// 125 xrefs:
// > PlayLayer::addObject @ 0x311130
// > GameObject::commonInteractiveSetup @ 0x3573da
// > GameObject::customSetup @ 0x35c1ca
// > GameObject::customSetup @ 0x35c228
// > GameObject::customSetup @ 0x35c434
// > GameObject::customSetup @ 0x35c4bc
// > GameObject::customSetup @ 0x35c73e
// > GameObject::customSetup @ 0x35d25a
// > GameObject::customSetup @ 0x35d45a
// > GameObject::customSetup @ 0x35d518
// > GameObject::customSetup @ 0x35d5dc
// > GameObject::customSetup @ 0x35d768
// > GameObject::customSetup @ 0x35d898
// > GameObject::customSetup @ 0x35d8f2
// > GameObject::customSetup @ 0x35d91e
// > GameObject::customSetup @ 0x35d948
// > GameObject::customSetup @ 0x35d974
// > GameObject::customSetup @ 0x35d99e
// > GameObject::customSetup @ 0x35d9be
// > GameObject::customSetup @ 0x35d9e0
// > GameObject::customSetup @ 0x35d9fc
// > GameObject::customSetup @ 0x35da2a
// > GameObject::customSetup @ 0x35da4e
// > GameObject::customSetup @ 0x35da6c
// > GameObject::customSetup @ 0x35da8c
// > GameObject::customSetup @ 0x35dab2
// > GameObject::customSetup @ 0x35db2c
// > GameObject::customSetup @ 0x35db6c
// > GameObject::customSetup @ 0x35db78
// > GameObject::customSetup @ 0x35db96
// > GameObject::customSetup @ 0x35dbc2
// > GameObject::customSetup @ 0x35dbf2
// > GameObject::customSetup @ 0x35dc10
// > GameObject::customSetup @ 0x35dc2c
// > GameObject::customSetup @ 0x35dc6c
// > GameObject::customSetup @ 0x35dc8a
// > GameObject::customSetup @ 0x35dcaa
// > GameObject::customSetup @ 0x35dcc8
// > GameObject::customSetup @ 0x35dcee
// > GameObject::customSetup @ 0x35dd10
// > GameObject::customSetup @ 0x35dd38
// > GameObject::customSetup @ 0x35dd56
// > GameObject::customSetup @ 0x35dd76
// > GameObject::customSetup @ 0x35dd94
// > GameObject::customSetup @ 0x35ddb2
// > GameObject::customSetup @ 0x35ddce
// > GameObject::customSetup @ 0x35ddea
// > GameObject::customSetup @ 0x35de08
// > GameObject::customSetup @ 0x35de28
// > GameObject::customSetup @ 0x35de4c
// > GameObject::customSetup @ 0x35de6e
// > GameObject::customSetup @ 0x35de8e
// > GameObject::customSetup @ 0x35deae
// > GameObject::customSetup @ 0x35df08
// > GameObject::customSetup @ 0x35df5c
// > GameObject::customSetup @ 0x35df8c
// > GameObject::customSetup @ 0x35df9e
// > GameObject::customSetup @ 0x35dfc4
// > GameObject::customSetup @ 0x35e246
// > GameObject::customSetup @ 0x35e358
// > GameObject::customSetup @ 0x35e408
// > GameObject::customSetup @ 0x35e4ae
// > GameObject::customSetup @ 0x35e552
// > GameObject::customSetup @ 0x35e5f4
// > GameObject::customSetup @ 0x35e6d8
// > GameObject::customSetup @ 0x35e77e
// > GameObject::customSetup @ 0x35e82c
// > GameObject::customSetup @ 0x35e852
// > GameObject::customSetup @ 0x35e872
// > GameObject::customSetup @ 0x35e88e
// > GameObject::customSetup @ 0x35e8ae
// > GameObject::customSetup @ 0x35e8e4
// > GameObject::customSetup @ 0x35eaf6
// > GameObject::customSetup @ 0x35f730
// > GameObject::customSetup @ 0x35f744
// > GameObject::customSetup @ 0x35f7ba
// > GameObject::customSetup @ 0x35f83e
// > GameObject::customSetup @ 0x35f85c
// > GameObject::customSetup @ 0x35f87e
// > GameObject::customSetup @ 0x35f89e
// > GameObject::customSetup @ 0x35f8bc
// > GameObject::customSetup @ 0x35f8d6
// > GameObject::customSetup @ 0x35f8ee
// > GameObject::customSetup @ 0x35f940
// > GameObject::customSetup @ 0x35f95e
// > GameObject::customSetup @ 0x35f974
// > GameObject::customSetup @ 0x35f9aa
// > GameObject::customSetup @ 0x35fb0e
// > GameObject::customSetup @ 0x35fb4e
// > GameObject::customSetup @ 0x35fb66
// > GameObject::customSetup @ 0x35fc84
// > GameObject::customSetup @ 0x35fd08
// > GameObject::customSetup @ 0x35fd30
// > GameObject::customSetup @ 0x360308
// > GameObject::customSetup @ 0x360330
// > EnhancedGameObject::customSetup @ 0x360de6
// > EnhancedGameObject::customSetup @ 0x360e3c
// > EnhancedGameObject::customSetup @ 0x360eee
// > EnhancedGameObject::customSetup @ 0x360fd0
// > EnhancedGameObject::customSetup @ 0x361038
// > EnhancedGameObject::customSetup @ 0x36105a
// > EnhancedGameObject::customSetup @ 0x36107c
// > EnhancedGameObject::customSetup @ 0x3610f4
// > EnhancedGameObject::customSetup @ 0x361224
// > EnhancedGameObject::customSetup @ 0x361296
// > EnhancedGameObject::customSetup @ 0x361310
// > EnhancedGameObject::customSetup @ 0x3613b6
// > EnhancedGameObject::customSetup @ 0x361404
// > EnhancedGameObject::customSetup @ 0x361458
// > EnhancedGameObject::customSetup @ 0x3614be
// > EnhancedGameObject::customSetup @ 0x361592
// > EnhancedGameObject::customSetup @ 0x3615a2
// > EnhancedGameObject::customSetup @ 0x3615b2
// > EnhancedGameObject::customSetup @ 0x36160a
// > EnhancedGameObject::customSetup @ 0x361680
// > EnhancedGameObject::customSetup @ 0x3616b4
// > EnhancedGameObject::customSetup @ 0x3616f8
// > EnhancedGameObject::customSetup @ 0x36182c
// > EnhancedGameObject::customSetup @ 0x3619f4
// > EnhancedGameObject::customSetup @ 0x361a94
// > LevelEditorLayer::copyObjectState @ 0x368c76
// > EffectGameObject::customSetup @ 0x3eaa10
// > EffectGameObject::customSetup @ 0x3eaa64
// > GameObject::setupCustomSprites @ 0x51ac00
// > GameObject::setupCustomSprites @ 0x5244e6
//
// 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; // r0
int v4; // r4
MainColor = GameObject::getMainColor(a1);
if ( MainColor )
{
MainColor->m_colorID = 0;
if ( a2 > 1100 )
v4 = 1101;
else
v4 = a2 & ~(a2 >> 31);
MainColor->m_defaultColorID = v4;
}
}