//
// GameObject::setDefaultMainColorMode from 0x77136c to 0x7713ac (64 bytes)
//
// 127 xrefs:
// > PlayLayer::addObject @ 0x6f482c
// > GameObject::commonInteractiveSetup @ 0x778fb0
// > GameObject::customSetup @ 0x7793f8
// > GameObject::customSetup @ 0x779524
// > GameObject::customSetup @ 0x779574
// > GameObject::customSetup @ 0x779bc4
// > GameObject::customSetup @ 0x779c5c
// > GameObject::customSetup @ 0x779d1c
// > GameObject::customSetup @ 0x779d48
// > GameObject::customSetup @ 0x779d74
// > GameObject::customSetup @ 0x779da0
// > GameObject::customSetup @ 0x779db4
// > GameObject::customSetup @ 0x779df0
// > GameObject::customSetup @ 0x779e0c
// > GameObject::customSetup @ 0x779e70
// > GameObject::customSetup @ 0x779e98
// > GameObject::customSetup @ 0x779eac
// > GameObject::customSetup @ 0x779ed0
// > GameObject::customSetup @ 0x77a1a4
// > GameObject::customSetup @ 0x77a1f0
// > GameObject::customSetup @ 0x77a330
// > GameObject::customSetup @ 0x77a3b0
// > GameObject::customSetup @ 0x77a3e8
// > GameObject::customSetup @ 0x77a41c
// > GameObject::customSetup @ 0x77a464
// > GameObject::customSetup @ 0x77a4ac
// > GameObject::customSetup @ 0x77a5dc
// > GameObject::customSetup @ 0x77a65c
// > GameObject::customSetup @ 0x77a69c
// > GameObject::customSetup @ 0x77a6c8
// > GameObject::customSetup @ 0x77a8bc
// > GameObject::customSetup @ 0x77a8e0
// > GameObject::customSetup @ 0x77a908
// > GameObject::customSetup @ 0x77a934
// > GameObject::customSetup @ 0x77a960
// > GameObject::customSetup @ 0x77a98c
// > GameObject::customSetup @ 0x77aa18
// > GameObject::customSetup @ 0x77aa6c
// > GameObject::customSetup @ 0x77aab8
// > GameObject::customSetup @ 0x77aae8
// > GameObject::customSetup @ 0x77ab40
// > GameObject::customSetup @ 0x77ab6c
// > GameObject::customSetup @ 0x77ab84
// > GameObject::customSetup @ 0x77abd4
// > GameObject::customSetup @ 0x77ac0c
// > GameObject::customSetup @ 0x77ac3c
// > GameObject::customSetup @ 0x77ac68
// > GameObject::customSetup @ 0x77aca8
// > GameObject::customSetup @ 0x77ad14
// > GameObject::customSetup @ 0x77ad8c
// > GameObject::customSetup @ 0x77adc8
// > GameObject::customSetup @ 0x77ae3c
// > GameObject::customSetup @ 0x77ae68
// > GameObject::customSetup @ 0x77ae8c
// > GameObject::customSetup @ 0x77aeb8
// > GameObject::customSetup @ 0x77aee4
// > GameObject::customSetup @ 0x77af18
// > GameObject::customSetup @ 0x77af4c
// > GameObject::customSetup @ 0x77afa4
// > GameObject::customSetup @ 0x77afc0
// > GameObject::customSetup @ 0x77b0b8
// > GameObject::customSetup @ 0x77b0d4
// > GameObject::customSetup @ 0x77b104
// > GameObject::customSetup @ 0x77b184
// > GameObject::customSetup @ 0x77b1bc
// > GameObject::customSetup @ 0x77b1e8
// > GameObject::customSetup @ 0x77b214
// > GameObject::customSetup @ 0x77b240
// > GameObject::customSetup @ 0x77b26c
// > GameObject::customSetup @ 0x77b38c
// > GameObject::customSetup @ 0x77b408
// > GameObject::customSetup @ 0x77b49c
// > GameObject::customSetup @ 0x77b564
// > GameObject::customSetup @ 0x77b590
// > GameObject::customSetup @ 0x77b5d8
// > GameObject::customSetup @ 0x77b604
// > GameObject::customSetup @ 0x77b710
// > GameObject::customSetup @ 0x77b9c0
// > GameObject::customSetup @ 0x77b9f4
// > GameObject::customSetup @ 0x77ba1c
// > GameObject::customSetup @ 0x77ba64
// > GameObject::customSetup @ 0x77bb0c
// > GameObject::customSetup @ 0x77bb44
// > GameObject::customSetup @ 0x77be54
// > GameObject::customSetup @ 0x77be88
// > GameObject::customSetup @ 0x77c0ac
// > GameObject::customSetup @ 0x77c360
// > GameObject::customSetup @ 0x77c394
// > GameObject::customSetup @ 0x77c3c8
// > GameObject::customSetup @ 0x77c44c
// > GameObject::customSetup @ 0x77c480
// > GameObject::customSetup @ 0x77c4bc
// > GameObject::customSetup @ 0x77c4fc
// > GameObject::customSetup @ 0x77c564
// > GameObject::customSetup @ 0x77c594
// > GameObject::customSetup @ 0x77c5d4
// > EnhancedGameObject::customSetup @ 0x77d28c
// > EnhancedGameObject::customSetup @ 0x77d3c8
// > EnhancedGameObject::customSetup @ 0x77d480
// > EnhancedGameObject::customSetup @ 0x77d4e0
// > EnhancedGameObject::customSetup @ 0x77d568
// > EnhancedGameObject::customSetup @ 0x77d604
// > EnhancedGameObject::customSetup @ 0x77d680
// > EnhancedGameObject::customSetup @ 0x77d6b8
// > EnhancedGameObject::customSetup @ 0x77d710
// > EnhancedGameObject::customSetup @ 0x77d8b8
// > EnhancedGameObject::customSetup @ 0x77d940
// > EnhancedGameObject::customSetup @ 0x77d9f4
// > EnhancedGameObject::customSetup @ 0x77da50
// > EnhancedGameObject::customSetup @ 0x77da80
// > EnhancedGameObject::customSetup @ 0x77db34
// > EnhancedGameObject::customSetup @ 0x77dc44
// > EnhancedGameObject::customSetup @ 0x77dc64
// > EnhancedGameObject::customSetup @ 0x77dcf8
// > EnhancedGameObject::customSetup @ 0x77dd2c
// > EnhancedGameObject::customSetup @ 0x77dd74
// > EnhancedGameObject::customSetup @ 0x77de10
// > EnhancedGameObject::customSetup @ 0x77de74
// > EnhancedGameObject::customSetup @ 0x77dfa4
// > EnhancedGameObject::customSetup @ 0x77e1c4
// > EnhancedGameObject::customSetup @ 0x77e1f4
// > LevelEditorLayer::copyObjectState @ 0x792bdc
// > EffectGameObject::customSetup @ 0x87784c
// > EffectGameObject::customSetup @ 0x877870
// > GameObject::setupCustomSprites @ 0xac87c4
// > GameObject::setupCustomSprites @ 0xadcef4
// > ??> @ 0xfbe90
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:53:13 +0000
//
_DWORD *__fastcall GameObject::setDefaultMainColorMode(GameObject *this, int a2)
{
_DWORD *result; // x0
int v3; // w2
result = (_DWORD *)GameObject::getMainColor(this);
if ( result )
{
v3 = 1101;
if ( a2 <= 1100 )
{
if ( a2 < 0 )
v3 = 0;
else
v3 = a2;
}
result[1] = v3;
*result = 0;
}
return result;
}