//
// GJSmartBlockPreview::init from 0x670a08 to 0x670a5a (82 bytes)
//
// 1 xrefs:
// > GJSmartBlockPreview::create @ 0x670ab4
//
// 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
//
int __fastcall GJSmartBlockPreview::init(unsigned __int8 *a1, unsigned __int8 *a2)
{
int v4; // r6
void (__fastcall *v5)(unsigned __int8 *, _BYTE *); // r9
_BYTE v7[8]; // [sp+4h] [bp-10h] BYREF
v4 = cocos2d::CCNode::init((cocos2d::CCNode *)a1);
if ( v4 )
{
v5 = *(void (__fastcall **)(unsigned __int8 *, _BYTE *))(*(_DWORD *)a1 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v7, 90.0, 90.0);
v5(a1, v7);
std::string::operator=(a1 + 264, a2);
}
return v4;
}