//
// sub_10000F5A4 from 0x10000f5a4 to 0x10000f5fc (88 bytes)
//
// 32 xrefs:
// > sub_10000FA34 @ 0x10000faa4
// > sub_10000FE5C @ 0x10000fee8
// > PlayLayer::updateVisibility @ 0x100145508
// > PlayLayer::updateVisibility @ 0x100145558
// > PlayLayer::updateVisibility @ 0x100145570
// > sub_1001460E4 @ 0x100146344
// > GJBaseGameLayer::updateLevelColors @ 0x1002783a0
// > GJBaseGameLayer::updateLevelColors @ 0x1002783cc
// > GJBaseGameLayer::updateLevelColors @ 0x100278400
// > GJBaseGameLayer::updateLevelColors @ 0x100278428
// > GJBaseGameLayer::updateLevelColors @ 0x1002784fc
// > GJBaseGameLayer::updateLevelColors @ 0x10027851c
// > GJBaseGameLayer::updateGradientLayers @ 0x10028bb00
// > GJBaseGameLayer::updateGradientLayers @ 0x10028bb18
// > GJBaseGameLayer::updateShaderLayer @ 0x10028cda8
// > GJBaseGameLayer::updateShaderLayer @ 0x10028cdd8
// > GJBaseGameLayer::updateShaderLayer @ 0x10028cf4c
// > GJBaseGameLayer::processAreaTintGroupAction @ 0x100291fd4
// > GJBaseGameLayer::preUpdateVisibility @ 0x1002999b4
// > GJBaseGameLayer::preUpdateVisibility @ 0x1002999c0
// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6070
// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a6088
// > GJBaseGameLayer::visitWithColorFlash @ 0x1002a60a4
// > PlayerObject::ringJump @ 0x1002c52ec
// > sub_1003F823C @ 0x1003f86a0
// > LevelEditorLayer::updateVisibility @ 0x1003ffe7c
// > LevelEditorLayer::updateVisibility @ 0x1004002e4
// > LevelEditorLayer::updateVisibility @ 0x100400514
// > LevelEditorLayer::updateObjectColors @ 0x100400904
// > LevelEditorLayer::updateObjectColors @ 0x100400af4
// > sub_100402060 @ 0x10040220c
// > LevelEditorLayer::postUpdate @ 0x100405738
//
// 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 10:57:15 +0000
//
__int64 __fastcall sub_10000F5A4(__int64 a1, int a2)
{
__int64 result; // x0
__int64 ColorSprite; // x0
result = 0xFFFFFF;
if ( a2 && a2 != 1011 )
{
if ( a2 == 1010 )
{
return 0;
}
else
{
ColorSprite = GJEffectManager::getColorSprite(a1);
if ( ColorSprite )
return *(unsigned __int16 *)(ColorSprite + 323) | (*(unsigned __int8 *)(ColorSprite + 325) << 16);
else
return 0xFFFFFF;
}
}
return result;
}