//
// GameObject::setDefaultSecondaryColorMode from 0x14029ea70 to 0x14029eaa2 (50 bytes)
//
// 24 xrefs:
// > GameObject::setupCustomSprites @ 0x1402afb3e
// > GameObject::setupCustomSprites @ 0x1402afbae
// > GameObject::setupCustomSprites @ 0x1402afd4b
// > GameObject::setupCustomSprites @ 0x1402afe3c
// > GameObject::setupCustomSprites @ 0x1402afeb3
// > GameObject::setupCustomSprites @ 0x1402affd1
// > GameObject::setupCustomSprites @ 0x1402b006c
// > GameObject::setupCustomSprites @ 0x1402b0107
// > GameObject::setupCustomSprites @ 0x1402b4801
// > GameObject::setupCustomSprites @ 0x1402b4bc4
// > GameObject::setupCustomSprites @ 0x1402b4f0b
// > GameObject::setupCustomSprites @ 0x1402b51b3
// > GameObject::setupCustomSprites @ 0x1402b5900
// > GameObject::setupCustomSprites @ 0x1402b5efd
// > GameObject::setupCustomSprites @ 0x1402b635c
// > GameObject::setupCustomSprites @ 0x1402b6ad4
// > GameObject::setupCustomSprites @ 0x1402b6bf9
// > GameObject::setupCustomSprites @ 0x1402bab57
// > GameObject::setupCustomSprites @ 0x1402bb257
// > GameObject::setupCustomSprites @ 0x1402c01d2
// > GameObject::setupCustomSprites @ 0x1402c02fa
// > GameObject::setupCustomSprites @ 0x1402c039f
// > GameObject::setupCustomSprites @ 0x1402c04a4
// > GameObject::setupCustomSprites @ 0x1402c05c2
//
// This function is hookable on this platform (idp: pc, 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 11:29:15 +0000
//
void __fastcall GameObject::setDefaultSecondaryColorMode(__int64 a1, int a2)
{
_DWORD *v2; // r8
int v3; // eax
v2 = *(_DWORD **)(a1 + 1112);
if ( v2 )
{
v3 = 1101;
if ( a2 < 0 )
a2 = 0;
if ( a2 <= 1101 )
v3 = a2;
v2[1] = v3;
*v2 = 0;
}
}