//
// GJSmartBlockPreviewSprite::visit from 0x1403bcef0 to 0x1403bd05c (364 bytes)
//
// 4 xrefs:
// > ??> @ 0x140782690
// > ??> @ 0x1408c1a8c
// > ??> @ 0x1408c1a9c
// > ??> @ 0x140923e58
//
// 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 11:31:27 +0000
//
void __fastcall GJSmartBlockPreviewSprite::visit(cocos2d::CCNode *a1)
{
__int64 v2; // rsi
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rbx
double v6; // xmm0_8
float v7; // xmm6_4
double v8; // xmm0_8
float v9; // xmm7_4
__int64 v10; // rax
__int64 v11; // rdx
__int64 v12; // rcx
__int64 v13; // r8
__int64 v14; // r9
__int64 v15; // rax
_BYTE v16[16]; // [rsp+30h] [rbp-48h] BYREF
_BYTE v17[16]; // [rsp+40h] [rbp-38h] BYREF
float v18; // [rsp+80h] [rbp+8h] BYREF
float v19; // [rsp+84h] [rbp+Ch]
v2 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 504LL))(a1);
v3 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 504LL))(a1);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 504LL))(v3);
v5 = v4;
if ( v2 && v4 )
{
v6 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v2 + 168LL))(v2);
v7 = *(float *)&v6 * 92.0;
v8 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v5 + 168LL))(v5);
v9 = *(float *)&v8 * v7;
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 200LL))(v2);
cocos2d::CCNode::convertToWorldSpace(v5, &v18, v10);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v16, v18 - (float)(v9 * 0.5), v19 - (float)(v9 * 0.5), v9, v9);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v17, (const struct cocos2d::CCRect *)v16);
glEnable(0xC11u);
v15 = cocos2d::CCEGLView::sharedOpenGLView(v12, v11, v13, v14);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 104LL))(v15);
cocos2d::CCNode::visit(a1);
glDisable(0xC11u);
}
else
{
cocos2d::CCNode::visit(a1);
}
}