//
// DungeonBarsSprite::visit from 0xa8a61c to 0xa8a7b8 (412 bytes)
//
// 2 xrefs:
// > ??> @ 0x66df0
// > ??> @ 0x149ac90
//
// 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:00:37 +0000
//
__int64 __fastcall DungeonBarsSprite::visit(DungeonBarsSprite *this)
{
float v2; // s9
float *v3; // x0
float v4; // s8
float v5; // s9
__int64 v6; // x0
float v7; // s10
float v8; // s2
float v9; // s8
float v10; // s0
cocos2d::CCNode *v11; // x22
__int64 v12; // x0
cocos2d::CCEGLView *v13; // x0
__int64 v14; // x0
float v16; // [xsp+60h] [xbp+60h]
float v17; // [xsp+70h] [xbp+70h]
float v18; // [xsp+80h] [xbp+80h] BYREF
float v19; // [xsp+84h] [xbp+84h]
__int64 v20; // [xsp+88h] [xbp+88h] BYREF
__int64 v21; // [xsp+90h] [xbp+90h] BYREF
_BYTE v22[8]; // [xsp+98h] [xbp+98h] BYREF
float v23; // [xsp+A0h] [xbp+A0h]
float v24; // [xsp+A4h] [xbp+A4h]
_BYTE v25[8]; // [xsp+A8h] [xbp+A8h] BYREF
float v26; // [xsp+B0h] [xbp+B0h]
float v27; // [xsp+B4h] [xbp+B4h]
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v18, 140.0, 125.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v22, (float)-v18 * 0.5, (float)-v19 * 0.5, v18, v19);
v2 = -v23;
v3 = (float *)(*(__int64 (__fastcall **)(DungeonBarsSprite *))(*(_QWORD *)this + 304LL))(this);
v4 = -v24;
v5 = v2 * *v3;
v6 = (*(__int64 (__fastcall **)(DungeonBarsSprite *))(*(_QWORD *)this + 304LL))(this);
v7 = v23;
v16 = v4 * *(float *)(v6 + 4);
v8 = v7 * (*(float (__fastcall **)(DungeonBarsSprite *))(*(_QWORD *)this + 136LL))(this);
v9 = v24;
v17 = v8;
v10 = (*(float (__fastcall **)(DungeonBarsSprite *))(*(_QWORD *)this + 152LL))(this);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v25, v5, v16, v17, v9 * v10);
glEnable();
v11 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(DungeonBarsSprite *))(*(_QWORD *)this + 512LL))(this);
v12 = (*(__int64 (__fastcall **)(DungeonBarsSprite *))(*(_QWORD *)this + 192LL))(this);
cocos2d::CCPoint::operator+(&v21, v12);
v13 = (cocos2d::CCEGLView *)cocos2d::CCNode::convertToWorldSpace(&v20, v11, (const cocos2d::CCPoint *)&v21);
v14 = cocos2d::CCEGLView::sharedOpenGLView(v13);
(*(void (__fastcall **)(__int64, float, float, float, float))(*(_QWORD *)v14 + 112LL))(
v14,
*(float *)&v20,
*((float *)&v20 + 1),
v26,
v27);
cocos2d::CCNode::visit(this);
glDisable();
return _stack_chk_guard;
}