//
// DungeonBarsSprite::init from 0x1004a84c0 to 0x1004a8536 (118 bytes)
//
// 1 xrefs:
// > ??> @ 0x100946820
//
// 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 __fastcall DungeonBarsSprite::init(DungeonBarsSprite *a1)
{
__int64 v1; // rax
bool result; // al
bool v3; // r15
cocos2d::CCSprite *v4; // rax
cocos2d::CCSprite *m_barsSprite; // rbx
float v6[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v6 = v1;
result = cocos2d::CCNode::init(a1);
if ( result )
{
v3 = result;
v4 = cocos2d::CCSprite::createWithSpriteFrameName("dungeon_bars_001.png");
a1->m_barsSprite = v4;
((void (__fastcall *)(DungeonBarsSprite *, cocos2d::CCSprite *))a1->addChild)(a1, v4);
m_barsSprite = a1->m_barsSprite;
sub_10028CBE0(v6, 0.0, -2.0);
((void (__fastcall *)(cocos2d::CCSprite *, float *))m_barsSprite->setPosition)(m_barsSprite, v6);
return v3;
}
return result;
}