//
// DungeonBarsSprite::init from 0x944b00 to 0x944bb4 (180 bytes)
//
// 3 xrefs:
// > DungeonBarsSprite::create @ 0x944be8
// > ??> @ 0x7a1d8
// > ??> @ 0x11b3b30
//
// 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
//
bool DungeonBarsSprite::init(DungeonBarsSprite *a1)
{
bool v2; // w20
cocos2d::CCSprite *v3; // x0
DungeonBarsSprite_vtbl *v4; // x2
cocos2d::CCSprite *m_barsSprite; // x21
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
cocos2d::CCPoint v8; // [xsp+40h] [xbp+40h] BYREF
v2 = cocos2d::CCNode::init(a1);
if ( v2 )
{
v3 = cocos2d::CCSprite::createWithSpriteFrameName("dungeon_bars_001.png");
v4 = a1->__vftable;
a1->m_barsSprite = v3;
((void (__fastcall *)(DungeonBarsSprite *))v4->addChild)(a1);
m_barsSprite = a1->m_barsSprite;
setPosition = m_barsSprite->setPosition;
cocos2d::CCPoint::CCPoint(&v8, 0.0, -2.0);
setPosition(m_barsSprite, &v8);
}
return v2;
}