//
// GameObject::setDefaultSecondaryColorMode from 0x44e9be to 0x44e9e2 (36 bytes)
//
// 48 xrefs:
// > GameObject::addColorSprite @ 0x453b96
// > GameObject::addColorSprite @ 0x4546c6
// > GameObject::addColorSprite @ 0x45472c
// > GameObject::addColorSprite @ 0x45478c
// > GameObject::addColorSprite @ 0x4547f2
// > GameObject::addColorSprite @ 0x45485a
// > GameObject::addColorSprite @ 0x4548f2
// > GameObject::addColorSprite @ 0x45495a
// > GameObject::addColorSprite @ 0x454a02
// > GameObject::customSetup @ 0x458b86
// > LevelEditorLayer::copyObjectState @ 0x4663a4
// > AnimatedGameObject::setupChildSprites @ 0x4ebc0c
// > AnimatedGameObject::setupChildSprites @ 0x4ebd9c
// > AnimatedGameObject::setupChildSprites @ 0x4ebe0a
// > GameObject::setupCustomSprites @ 0x64b3bc
// > GameObject::setupCustomSprites @ 0x64b4a2
// > GameObject::setupCustomSprites @ 0x64b4b0
// > GameObject::setupCustomSprites @ 0x64b4de
// > GameObject::setupCustomSprites @ 0x65136a
// > GameObject::setupCustomSprites @ 0x651412
// > GameObject::setupCustomSprites @ 0x65145e
// > GameObject::setupCustomSprites @ 0x6514cc
// > GameObject::setupCustomSprites @ 0x651592
// > GameObject::setupCustomSprites @ 0x651648
// > GameObject::setupCustomSprites @ 0x6516ac
// > GameObject::setupCustomSprites @ 0x6517de
// > GameObject::setupCustomSprites @ 0x65184c
// > GameObject::setupCustomSprites @ 0x6518c6
// > GameObject::setupCustomSprites @ 0x651b90
// > GameObject::setupCustomSprites @ 0x651e02
// > GameObject::setupCustomSprites @ 0x652020
// > GameObject::setupCustomSprites @ 0x65209c
// > GameObject::setupCustomSprites @ 0x652112
// > GameObject::setupCustomSprites @ 0x6523b0
// > GameObject::setupCustomSprites @ 0x65263c
// > GameObject::setupCustomSprites @ 0x652b42
// > GameObject::setupCustomSprites @ 0x652f18
// > GameObject::setupCustomSprites @ 0x652f8e
// > GameObject::setupCustomSprites @ 0x65305a
// > GameObject::setupCustomSprites @ 0x653126
// > GameObject::setupCustomSprites @ 0x653238
// > GameObject::setupCustomSprites @ 0x6532d0
// > GameObject::setupCustomSprites @ 0x653742
// > GameObject::setupCustomSprites @ 0x653ff0
// > GameObject::setupCustomSprites @ 0x6540a2
// > GameObject::setupCustomSprites @ 0x655132
// > GameObject::setupCustomSprites @ 0x6551e6
// > GameObject::setupCustomSprites @ 0x655400
//
// 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::setDefaultSecondaryColorMode(GameObject *this, int a2)
{
_DWORD *result; // r0
int v4; // r4
result = (_DWORD *)GameObject::getSecondaryColor(this);
if ( result )
{
*result = 0;
if ( a2 > 1100 )
v4 = 1101;
else
v4 = a2 & ~(a2 >> 31);
result[1] = v4;
}
return result;
}