//
// GameObject::setDefaultSecondaryColorMode from 0x7713ac to 0x7713ec (64 bytes)
//
// 49 xrefs:
// > GameObject::addColorSprite @ 0x7768e4
// > GameObject::addColorSprite @ 0x776a04
// > GameObject::addColorSprite @ 0x776ba0
// > GameObject::addColorSprite @ 0x776c68
// > GameObject::addColorSprite @ 0x776dc0
// > GameObject::addColorSprite @ 0x776f90
// > GameObject::addColorSprite @ 0x777048
// > GameObject::addColorSprite @ 0x777100
// > GameObject::addColorSprite @ 0x77726c
// > GameObject::customSetup @ 0x77c40c
// > LevelEditorLayer::copyObjectState @ 0x792be8
// > AnimatedGameObject::setupChildSprites @ 0x88774c
// > AnimatedGameObject::setupChildSprites @ 0x8878dc
// > AnimatedGameObject::setupChildSprites @ 0x887b78
// > GameObject::setupCustomSprites @ 0xac8150
// > GameObject::setupCustomSprites @ 0xac8384
// > GameObject::setupCustomSprites @ 0xac84e4
// > GameObject::setupCustomSprites @ 0xac8d88
// > GameObject::setupCustomSprites @ 0xacb10c
// > GameObject::setupCustomSprites @ 0xacdc20
// > GameObject::setupCustomSprites @ 0xacdd34
// > GameObject::setupCustomSprites @ 0xacddd4
// > GameObject::setupCustomSprites @ 0xacdea0
// > GameObject::setupCustomSprites @ 0xace028
// > GameObject::setupCustomSprites @ 0xace0d8
// > GameObject::setupCustomSprites @ 0xace150
// > GameObject::setupCustomSprites @ 0xacee3c
// > GameObject::setupCustomSprites @ 0xacf0f4
// > GameObject::setupCustomSprites @ 0xad474c
// > GameObject::setupCustomSprites @ 0xad4a94
// > GameObject::setupCustomSprites @ 0xad4c2c
// > GameObject::setupCustomSprites @ 0xad77dc
// > GameObject::setupCustomSprites @ 0xad88ac
// > GameObject::setupCustomSprites @ 0xad9388
// > GameObject::setupCustomSprites @ 0xad99fc
// > GameObject::setupCustomSprites @ 0xada81c
// > GameObject::setupCustomSprites @ 0xadc87c
// > GameObject::setupCustomSprites @ 0xadce34
// > GameObject::setupCustomSprites @ 0xadcee4
// > GameObject::setupCustomSprites @ 0xadcfc0
// > GameObject::setupCustomSprites @ 0xadcfd0
// > GameObject::setupCustomSprites @ 0xadd2dc
// > GameObject::setupCustomSprites @ 0xaddaa0
// > GameObject::setupCustomSprites @ 0xade0d8
// > GameObject::setupCustomSprites @ 0xade244
// > GameObject::setupCustomSprites @ 0xade3c4
// > GameObject::setupCustomSprites @ 0xade4f8
// > GameObject::setupCustomSprites @ 0xadecdc
// > ??> @ 0xcdb40
//
// 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::setDefaultSecondaryColorMode(GameObject *this, int a2)
{
_DWORD *result; // x0
int v3; // w2
result = (_DWORD *)GameObject::getSecondaryColor(this);
if ( result )
{
v3 = 1101;
if ( a2 <= 1100 )
{
if ( a2 < 0 )
v3 = 0;
else
v3 = a2;
}
result[1] = v3;
*result = 0;
}
return result;
}