//
// GJBaseGameLayer::removeBackground from 0x9994c4 to 0x9994fc (56 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::createBackground @ 0x99955c
// > LevelSettingsLayer::selectArtClosed @ 0xb61a98
// > ??> @ 0xf6280
//
// 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:58:03 +0000
//
__int64 __fastcall GJBaseGameLayer::removeBackground(__int64 this)
{
__int64 v1; // x1
__int64 v2; // x19
v1 = *(_QWORD *)(this + 3944);
if ( v1 )
{
v2 = this;
this = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v1 + 520LL))(*(_QWORD *)(this + 3944));
*(_QWORD *)(v2 + 3944) = 0;
}
return this;
}