//
// GJSmartTemplate::getPrefab from 0x100425ea0 to 0x100425f38 (152 bytes)
//
// 0 xrefs:
//
// 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
//
// local variable allocation has failed, the output may be wrong!
GJSmartPrefab *__fastcall GJSmartTemplate::getPrefab(
GJSmartTemplate *a1,
cocos2d::CCPoint a2,
SmartGameObject *a3,
SmartGameObject *a4,
SmartGameObject *a5,
SmartGameObject *a6,
SmartGameObject *a7,
SmartGameObject *a8,
SmartGameObject *a9,
SmartGameObject *a10,
SmartGameObject *a11)
{
int v11; // r14d
int v12; // r15d
int v13; // r12d
GJSmartPrefab *result; // rax
GJSmartPrefab *v15; // rbx
__int64 v16; // [rsp+28h] [rbp-58h] BYREF
std::string v17; // [rsp+30h] [rbp-50h] BYREF
GJSmartTemplate *v18; // [rsp+48h] [rbp-38h]
SmartGameObject *v19; // [rsp+50h] [rbp-30h]
__int64 v20; // [rsp+B0h] [rbp+30h]
v19 = a7;
v11 = (int)a6;
v12 = (int)a5;
v13 = (int)a4;
v18 = a1;
sub_10028CC60(&v16, (double *)a3);
GJSmartTemplate::keyFromNeighbors(
(unsigned int)&v17,
(unsigned int)&v16,
v13,
v12,
v11,
(_DWORD)v19,
(__int64)a8,
(__int64)a9,
(__int64)a10,
(__int64)a11,
v20);
result = (GJSmartPrefab *)GJSmartTemplate::getPrefab_1((__int64)v18, &v17, 0, 0, *(__m128 *)&a8);
if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 )
{
v15 = result;
operator delete(v17.__r_.__value_.__l.__data_);
return v15;
}
return result;
}