//
// GameObject::setDefaultMainColorMode from 0x44e99a to 0x44e9be (36 bytes)
//
// 125 xrefs:
// > PlayLayer::addObject @ 0x400676
// > GameObject::commonInteractiveSetup @ 0x455472
// > GameObject::customSetup @ 0x4555aa
// > GameObject::customSetup @ 0x455608
// > GameObject::customSetup @ 0x455814
// > GameObject::customSetup @ 0x45589c
// > GameObject::customSetup @ 0x455b1e
// > GameObject::customSetup @ 0x45663a
// > GameObject::customSetup @ 0x45683a
// > GameObject::customSetup @ 0x4568f8
// > GameObject::customSetup @ 0x4569bc
// > GameObject::customSetup @ 0x456b48
// > GameObject::customSetup @ 0x456c76
// > GameObject::customSetup @ 0x456cd0
// > GameObject::customSetup @ 0x456cfc
// > GameObject::customSetup @ 0x456d26
// > GameObject::customSetup @ 0x456d52
// > GameObject::customSetup @ 0x456d7c
// > GameObject::customSetup @ 0x456d9c
// > GameObject::customSetup @ 0x456dbe
// > GameObject::customSetup @ 0x456dda
// > GameObject::customSetup @ 0x456e08
// > GameObject::customSetup @ 0x456e2c
// > GameObject::customSetup @ 0x456e4a
// > GameObject::customSetup @ 0x456e6a
// > GameObject::customSetup @ 0x456e90
// > GameObject::customSetup @ 0x456f0a
// > GameObject::customSetup @ 0x456f4a
// > GameObject::customSetup @ 0x456f56
// > GameObject::customSetup @ 0x456f74
// > GameObject::customSetup @ 0x456fa0
// > GameObject::customSetup @ 0x456fd0
// > GameObject::customSetup @ 0x456fee
// > GameObject::customSetup @ 0x45700a
// > GameObject::customSetup @ 0x45704c
// > GameObject::customSetup @ 0x45706a
// > GameObject::customSetup @ 0x45708a
// > GameObject::customSetup @ 0x4570a8
// > GameObject::customSetup @ 0x4570ce
// > GameObject::customSetup @ 0x4570f0
// > GameObject::customSetup @ 0x457118
// > GameObject::customSetup @ 0x457136
// > GameObject::customSetup @ 0x457156
// > GameObject::customSetup @ 0x457174
// > GameObject::customSetup @ 0x457192
// > GameObject::customSetup @ 0x4571ae
// > GameObject::customSetup @ 0x4571ca
// > GameObject::customSetup @ 0x4571e8
// > GameObject::customSetup @ 0x457208
// > GameObject::customSetup @ 0x45722c
// > GameObject::customSetup @ 0x45724e
// > GameObject::customSetup @ 0x45726e
// > GameObject::customSetup @ 0x45728e
// > GameObject::customSetup @ 0x4572e8
// > GameObject::customSetup @ 0x45733c
// > GameObject::customSetup @ 0x45736c
// > GameObject::customSetup @ 0x45737e
// > GameObject::customSetup @ 0x4573a4
// > GameObject::customSetup @ 0x457626
// > GameObject::customSetup @ 0x457738
// > GameObject::customSetup @ 0x4577e8
// > GameObject::customSetup @ 0x45788e
// > GameObject::customSetup @ 0x457932
// > GameObject::customSetup @ 0x4579d4
// > GameObject::customSetup @ 0x457ab8
// > GameObject::customSetup @ 0x457b5e
// > GameObject::customSetup @ 0x457c0c
// > GameObject::customSetup @ 0x457c32
// > GameObject::customSetup @ 0x457c52
// > GameObject::customSetup @ 0x457c6e
// > GameObject::customSetup @ 0x457c8e
// > GameObject::customSetup @ 0x457cc4
// > GameObject::customSetup @ 0x457ed6
// > GameObject::customSetup @ 0x458b10
// > GameObject::customSetup @ 0x458b24
// > GameObject::customSetup @ 0x458b9a
// > GameObject::customSetup @ 0x458c1e
// > GameObject::customSetup @ 0x458c3c
// > GameObject::customSetup @ 0x458c5e
// > GameObject::customSetup @ 0x458c7e
// > GameObject::customSetup @ 0x458c9c
// > GameObject::customSetup @ 0x458cb6
// > GameObject::customSetup @ 0x458cce
// > GameObject::customSetup @ 0x458d20
// > GameObject::customSetup @ 0x458d3e
// > GameObject::customSetup @ 0x458d54
// > GameObject::customSetup @ 0x458d8a
// > GameObject::customSetup @ 0x458eee
// > GameObject::customSetup @ 0x458f2e
// > GameObject::customSetup @ 0x458f46
// > GameObject::customSetup @ 0x459064
// > GameObject::customSetup @ 0x4590e8
// > GameObject::customSetup @ 0x459110
// > GameObject::customSetup @ 0x4596e4
// > GameObject::customSetup @ 0x45970c
// > EnhancedGameObject::customSetup @ 0x459d8e
// > EnhancedGameObject::customSetup @ 0x459de4
// > EnhancedGameObject::customSetup @ 0x459e96
// > EnhancedGameObject::customSetup @ 0x459f78
// > EnhancedGameObject::customSetup @ 0x459fe0
// > EnhancedGameObject::customSetup @ 0x45a002
// > EnhancedGameObject::customSetup @ 0x45a024
// > EnhancedGameObject::customSetup @ 0x45a09c
// > EnhancedGameObject::customSetup @ 0x45a1cc
// > EnhancedGameObject::customSetup @ 0x45a23e
// > EnhancedGameObject::customSetup @ 0x45a2b8
// > EnhancedGameObject::customSetup @ 0x45a35e
// > EnhancedGameObject::customSetup @ 0x45a3ac
// > EnhancedGameObject::customSetup @ 0x45a400
// > EnhancedGameObject::customSetup @ 0x45a466
// > EnhancedGameObject::customSetup @ 0x45a53a
// > EnhancedGameObject::customSetup @ 0x45a54a
// > EnhancedGameObject::customSetup @ 0x45a55a
// > EnhancedGameObject::customSetup @ 0x45a5b2
// > EnhancedGameObject::customSetup @ 0x45a628
// > EnhancedGameObject::customSetup @ 0x45a65c
// > EnhancedGameObject::customSetup @ 0x45a6a0
// > EnhancedGameObject::customSetup @ 0x45a7d4
// > EnhancedGameObject::customSetup @ 0x45a99c
// > EnhancedGameObject::customSetup @ 0x45aa3c
// > LevelEditorLayer::copyObjectState @ 0x46639c
// > EffectGameObject::customSetup @ 0x4e86f8
// > EffectGameObject::customSetup @ 0x4e874c
// > GameObject::setupCustomSprites @ 0x64d2c0
// > GameObject::setupCustomSprites @ 0x657928
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:36 +0000
//
_DWORD *__fastcall GameObject::setDefaultMainColorMode(GameObject *this, int a2)
{
_DWORD *result; // r0
int v4; // r4
result = (_DWORD *)GameObject::getMainColor(this);
if ( result )
{
*result = 0;
if ( a2 > 1100 )
v4 = 1101;
else
v4 = a2 & ~(a2 >> 31);
result[1] = v4;
}
return result;
}