//
// BrowseSmartTemplateLayer::createPrefab from 0x14045b000 to 0x14045b0c2 (194 bytes)
//
// 3 xrefs:
// > BrowseSmartTemplateLayer::onTemplateObject @ 0x14045b2d5
// > BrowseSmartKeyLayer::onButton @ 0x14045c1ac
// > ??> @ 0x1406daba4
//
// 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
//
// Hidden C++ exception states: #wind=3
void __fastcall BrowseSmartTemplateLayer::createPrefab(__int64 a1, __int64 a2, int a3)
{
_QWORD *v6; // rbp
__int64 v7; // rcx
void *v8; // [rsp+28h] [rbp-50h]
_BYTE v9[32]; // [rsp+30h] [rbp-48h] BYREF
__int64 v10; // [rsp+50h] [rbp-28h]
v10 = a2;
v6 = (_QWORD *)sub_14003BDB0((__int64)v9, a2);
v7 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v8 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v7 = qword_1406C2ED8;
}
EditorUI::createPrefab(*(EditorUI **)(*(_QWORD *)(v7 + 528) + 14496LL), *(_QWORD *)(a1 + 632), v6, a3);
sub_14003A830(a2);
}