//
// SetupSmartBlockLayer::onSelectPremade from 0x1405ee350 to 0x1405ee3c0 (112 bytes)
//
// 2 xrefs:
// > SetupSmartBlockLayer::init @ 0x1405ec894
// > ??> @ 0x14092f108
//
// 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:35:04 +0000
//
__int64 __fastcall SetupSmartBlockLayer::onSelectPremade(__int64 a1)
{
__int64 *v2; // rax
__int64 *v3; // rbx
__int64 v4; // rax
__int64 v5; // rcx
v2 = SelectArtLayer::create(3u, 0xFFFFFFFF);
v3 = v2;
if ( v2[84] )
{
*((_DWORD *)v2 + 171) = 0;
SelectArtLayer::onSelectCustom((__int64)v2, 0);
}
v4 = *v3;
v5 = a1 + 664;
if ( !a1 )
v5 = 0;
v3[87] = v5;
return (*(__int64 (__fastcall **)(__int64 *))(v4 + 1064))(v3);
}