//
// GJSmartBlockPreviewSprite::visit from 0xb0bc08 to 0xb0bd4c (324 bytes)
//
// 2 xrefs:
// > ??> @ 0xfd5e8
// > ??> @ 0x14b1b70
//
// This function is hookable on this platform (idp: arm, 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 13:01:26 +0000
//
__int64 __fastcall GJSmartBlockPreviewSprite::visit(GJSmartBlockPreviewSprite *this)
{
__int64 v2; // x21
__int64 v3; // x0
cocos2d::CCNode *v4; // x22
float v5; // s8
const cocos2d::CCPoint *v6; // x0
GameToolbox *v7; // x0
float v9; // [xsp+50h] [xbp+50h]
__int64 v10; // [xsp+70h] [xbp+70h] BYREF
_BYTE v11[16]; // [xsp+78h] [xbp+78h] BYREF
float v12[4]; // [xsp+88h] [xbp+88h] BYREF
v2 = (*(__int64 (__fastcall **)(GJSmartBlockPreviewSprite *))(*(_QWORD *)this + 512LL))(this);
v3 = (*(__int64 (__fastcall **)(GJSmartBlockPreviewSprite *))(*(_QWORD *)this + 512LL))(this);
v4 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
if ( v4 && v2 )
{
v5 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v2 + 168LL))(v2);
v9 = (float)(v5 * 92.0) * (*(float (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v4 + 168LL))(v4);
v6 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);
cocos2d::CCNode::convertToWorldSpace(&v10, v4, v6);
cocos2d::CCRect::CCRect(
(cocos2d::CCRect *)v11,
*(float *)&v10 - (float)(v9 * 0.5),
*((float *)&v10 + 1) - (float)(v9 * 0.5),
v9,
v9);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, (const cocos2d::CCRect *)v11);
GameToolbox::preVisitWithClipRect(v12);
v7 = (GameToolbox *)cocos2d::CCNode::visit(this);
GameToolbox::postClipVisit(v7);
}
else
{
cocos2d::CCNode::visit(this);
}
return _stack_chk_guard;
}