//
// GJBaseGameLayer::swapBackground from 0x46dbfa to 0x46dc32 (56 bytes)
//
// 1 xrefs:
// > ArtTriggerGameObject::triggerObject @ 0x3e519c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::swapBackground(GJBaseGameLayer *a1, int a2)
{
_BOOL4 m_skipArtReload; // r3
int m_loadedBgID; // r1
GameManager *v6; // r0
m_skipArtReload = a1->m_skipArtReload;
a1->m_gameState.m_background = a2;
if ( !m_skipArtReload )
{
m_loadedBgID = GameManager::sharedState()->m_loadedBgID;
if ( m_loadedBgID == a2 )
{
GJBaseGameLayer::asyncBGLoaded(a1, m_loadedBgID);
}
else
{
v6 = GameManager::sharedState();
GameManager::loadBackgroundAsync(v6, a2);
}
}
}