//
// GJSmartBlockPreview::init from 0x100008978 to 0x1000089ec (116 bytes)
//
// 1 xrefs:
// > GJSmartBlockPreview::create @ 0x1000088fc
//
// 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
//
bool __fastcall GJSmartBlockPreview::init(__int64 a1, const std::string *a2)
{
_BOOL8 v4; // x20
_BYTE v6[8]; // [xsp+8h] [xbp-28h] BYREF
v4 = cocos2d::CCNode::init((cocos2d::CCNode *)a1);
if ( v4 )
{
sub_100022988(v6, 90.0, 90.0);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)a1 + 304LL))(a1, v6);
std::string::operator=((std::string *)(a1 + 320), a2);
}
return v4;
}