//
// GJSmartBlockPreviewSprite::visit from 0x100416480 to 0x10041658a (266 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3f048
//
// This function is hookable on this platform (idp: pc, 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 12:30:11 +0000
//
__int64 __fastcall GJSmartBlockPreviewSprite::visit(__int64 a1)
{
__int64 v1; // r14
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // r15
unsigned int *v5; // rax
unsigned __int64 v7[2]; // [rsp+Ch] [rbp-44h] BYREF
__m128 v8; // [rsp+1Ch] [rbp-34h] BYREF
double v9; // [rsp+2Ch] [rbp-24h] BYREF
float v10; // [rsp+34h] [rbp-1Ch]
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 512LL))(v2);
if ( !v1 )
return cocos2d::CCNode::visit(a1);
v4 = v3;
if ( !v3 )
return cocos2d::CCNode::visit(a1);
v10 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v1 + 168LL))(v1) * 92.0;
v10 = v10 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v4 + 168LL))(v4);
v5 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 192LL))(v1);
cocos2d::CCNode::convertToWorldSpace(&v9, v4, v5);
sub_100278270(
(__int64)v7,
*(float *)&v9 - (float)(0.5 * v10),
*((float *)&v9 + 1) - (float)(0.5 * v10),
(__m128)LODWORD(v10),
(__m128)LODWORD(v10));
sub_1002787F0(&v8, v7);
GameToolbox::preVisitWithClipRect(&v8);
cocos2d::CCNode::visit(a1);
return GameToolbox::postClipVisit();
}