//
// LevelSettingsLayer::onGArt from 0x14045ae80 to 0x14045aefe (126 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x140458f39
// > ??> @ 0x140927ca4
//
// 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:32:31 +0000
//
__int64 __fastcall LevelSettingsLayer::onGArt(__int64 a1)
{
__int64 v2; // rax
__int64 *v3; // rbx
__int64 v4; // rcx
__int64 v5; // rax
v2 = SelectArtLayer::create(1, *(unsigned int *)(*(_QWORD *)(a1 + 816) + 356LL));
v3 = (__int64 *)v2;
if ( *(_QWORD *)(v2 + 672) )
{
*(_DWORD *)(v2 + 684) = *(_DWORD *)(*(_QWORD *)(a1 + 816) + 432LL);
SelectArtLayer::onSelectCustom(v2, 0);
}
v4 = a1 + 672;
if ( !a1 )
v4 = 0;
v5 = *v3;
v3[87] = v4;
return (*(__int64 (__fastcall **)(__int64 *))(v5 + 1064))(v3);
}