//
// GJSmartBlockPreview::create from 0x670a64 to 0x670af8 (148 bytes)
//
// 2 xrefs:
// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x673ba6
// > BrowseSmartKeyLayer::init @ 0x674d8c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:50 +0000
//
cocos2d::CCNode *__fastcall GJSmartBlockPreview::create(int a1)
{
cocos2d::CCNode *v2; // r4
int v3; // r7
int v4; // r3
int *v5; // r0
int v7[3]; // [sp+0h] [bp-14h] BYREF
v2 = (cocos2d::CCNode *)operator new(0x120u);
cocos2d::CCNode::CCNode(v2);
*(_DWORD *)v2 = &off_CD2750;
*((_DWORD *)v2 + 66) = 0;
*((_DWORD *)v2 + 67) = 0;
*((_DWORD *)v2 + 68) = 0;
*((_DWORD *)v2 + 69) = 0;
*((_DWORD *)v2 + 70) = 0;
*((_BYTE *)v2 + 284) = 0;
std::string::basic_string(v7, a1);
v3 = GJSmartBlockPreview::init((unsigned __int8 *)v2, (unsigned __int8 *)v7);
std::string::~string((int)v7);
if ( v3 )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v4 = *(_DWORD *)v2;
v5 = (int *)v2;
v2 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v2;
}