//
// BrowseSmartTemplateLayer::createPrefab from 0x1405f0b10 to 0x1405f0bd2 (194 bytes)
//
// 3 xrefs:
// > BrowseSmartTemplateLayer::onTemplateObject @ 0x1405f0df6
// > BrowseSmartKeyLayer::onButton @ 0x1405f1b04
// > ??> @ 0x14092f258
//
// 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:05 +0000
//
// 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_14003F4F0((__int64)v9, a2);
v7 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v8 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v7 = qword_14090BFD0;
}
EditorUI::createPrefab(*(_QWORD *)(*(_QWORD *)(v7 + 568) + 14904LL), *(_QWORD *)(a1 + 664), v6, a3);
sub_14003D310(a2);
}