//
// SetupSmartBlockLayer::onSelectPremade from 0x1404589c0 to 0x140458a2e (110 bytes)
//
// 2 xrefs:
// > SetupSmartBlockLayer::init @ 0x140456f54
// > ??> @ 0x1406daa6c
//
// 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 SetupSmartBlockLayer::onSelectPremade(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2)
{
SelectArtLayer *v3; // rax
__int64 *v4; // rbx
__int64 v5; // rax
SelectArtDelegate *v6; // rcx
v3 = SelectArtLayer::create(Premade, -1);
v4 = (__int64 *)v3;
if ( v3->m_lineSprites )
{
v3->m_line = 0;
SelectArtLayer::onSelectCustom(v3, nullptr);
}
v5 = *v4;
v6 = &a1->SelectArtDelegate;
if ( !a1 )
v6 = nullptr;
v4[83] = (__int64)v6;
(*(void (__fastcall **)(__int64 *))(v5 + 1040))(v4);
}