//
// DungeonBarsSprite::init from 0x140585010 to 0x14058508e (126 bytes)
//
// 3 xrefs:
// > SecretLayer3::init @ 0x1405802ec
// > ??> @ 0x1407df5e0
// > ??> @ 0x14092ca14
//
// 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:34:27 +0000
//
bool __fastcall DungeonBarsSprite::init(cocos2d::CCNode *a1)
{
bool result; // al
struct cocos2d::CCSprite *v3; // rax
__int64 v4; // rcx
__int64 *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
char v8; // [rsp+38h] [rbp+10h] BYREF
result = cocos2d::CCNode::init(a1);
if ( result )
{
v3 = cocos2d::CCSprite::createWithSpriteFrameName("dungeon_bars_001.png");
v4 = *(_QWORD *)a1;
*((_QWORD *)a1 + 40) = v3;
(*(void (__fastcall **)(cocos2d::CCNode *, struct cocos2d::CCSprite *))(v4 + 464))(a1, v3);
v5 = *((__int64 **)a1 + 40);
v6 = *v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, 0.0, -2.0);
(*(void (__fastcall **)(__int64 *, __int64))(v6 + 184))(v5, v7);
return 1;
}
return result;
}