//
// DungeonBarsSprite::visit from 0x1004a8540 to 0x1004a86c8 (392 bytes)
//
// 1 xrefs:
// > ??> @ 0x100946ab0
//
// 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 DungeonBarsSprite::visit(DungeonBarsSprite *a1)
{
__m128 v2; // xmm0
__m128 v3; // xmm0
__m128 v4; // xmm3
const cocos2d::CCPoint *v5; // r15
unsigned __int64 *v6; // rax
cocos2d::CCEGLView *v7; // rax
double v8; // [rsp+8h] [rbp-88h] BYREF
_BYTE v9[8]; // [rsp+10h] [rbp-80h] BYREF
float v10; // [rsp+18h] [rbp-78h]
float v11; // [rsp+1Ch] [rbp-74h]
__m128 v12; // [rsp+20h] [rbp-70h]
__m128 v13; // [rsp+30h] [rbp-60h]
unsigned __int64 v14; // [rsp+48h] [rbp-48h] BYREF
float v15; // [rsp+50h] [rbp-40h]
float v16; // [rsp+54h] [rbp-3Ch]
float v17; // [rsp+58h] [rbp-38h] BYREF
float v18; // [rsp+5Ch] [rbp-34h]
float v19[2]; // [rsp+60h] [rbp-30h] BYREF
float v20; // [rsp+68h] [rbp-28h]
float v21; // [rsp+6Ch] [rbp-24h]
sub_10028CBF0(&v17, 140.0, 125.0);
sub_10028CC00((__int64)&v14, v17 * -0.5, -0.5 * v18, (__m128)LODWORD(v17), (__m128)LODWORD(v18));
v12 = _mm_xor_ps((__m128)LODWORD(v15), (__m128)xmmword_1008150B0);
v2 = v12;
v2.f32[0] = v12.f32[0] * *(float *)((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getAnchorPoint)(a1);
v12 = v2;
v13 = _mm_xor_ps((__m128)LODWORD(v16), (__m128)xmmword_1008150B0);
v3 = v13;
v3.f32[0] = v13.f32[0] * *(float *)(((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getAnchorPoint)(a1) + 4);
v13 = v3;
v21 = v15;
v3.f32[0] = ((float (__fastcall *)(DungeonBarsSprite *))a1->getScaleX)(a1);
v21 = v21 * v3.f32[0];
v20 = v16;
v3.f32[0] = ((float (__fastcall *)(DungeonBarsSprite *))a1->getScaleY)(a1);
v4 = (__m128)LODWORD(v20);
v4.f32[0] = v20 * v3.f32[0];
sub_10028CC00((__int64)v9, v12.f32[0], v13.f32[0], (__m128)LODWORD(v21), v4);
glEnable(0xC11u);
v5 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getParent)(a1);
v6 = (unsigned __int64 *)((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getPosition)(a1);
sub_10028CCE0(&v8, v6, &v14);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v19, v5);
v7 = cocos2d::CCEGLView::sharedOpenGLView();
((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v7->setScissorInPoints)(
v7,
v19[0],
v19[1],
v10,
v11);
cocos2d::CCNode::visit(a1);
glDisable(0xC11u);
}