//
// GJSmartBlockPreviewSprite::visit from 0x100429810 to 0x10042991a (266 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009353a0
//
// 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
//
void __fastcall GJSmartBlockPreviewSprite::visit(GJSmartBlockPreviewSprite *a1)
{
__int64 v1; // r14
__int64 v2; // rax
__int64 v3; // rax
const cocos2d::CCPoint *v4; // r15
unsigned __int64 v5[2]; // [rsp+Ch] [rbp-44h] BYREF
__m128 v6; // [rsp+1Ch] [rbp-34h] BYREF
float v7; // [rsp+2Ch] [rbp-24h] BYREF
float v8; // [rsp+30h] [rbp-20h]
float v9; // [rsp+34h] [rbp-1Ch]
cocos2d::CCRect v10; // 0:xmm0_8.8,8:xmm1_8.8
v1 = ((__int64 (__fastcall *)(GJSmartBlockPreviewSprite *))a1->getParent)(a1);
v2 = ((__int64 (__fastcall *)(GJSmartBlockPreviewSprite *))a1->getParent)(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 496LL))(v2);
if ( v1 && (v4 = (const cocos2d::CCPoint *)v3) != nullptr )
{
v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v1 + 168LL))(v1) * 92.0;
v9 = v9 * (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_QWORD *)v4 + 168LL))(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 192LL))(v1);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v7, v4);
v10.size = (cocos2d::CCSize)LODWORD(v8);
v10.size.width = v8 - (float)(0.5 * v9);
sub_10028CC00((__int64)v5, v7 - (float)(0.5 * v9), v10.size.width, (__m128)LODWORD(v9), (__m128)LODWORD(v9));
*(double *)&v10.origin = sub_10028D180(&v6, v5);
GameToolbox::preVisitWithClipRect(v10);
cocos2d::CCNode::visit(a1);
GameToolbox::postClipVisit();
}
else
{
cocos2d::CCNode::visit(a1);
}
}