//
// DungeonBarsSprite::create from 0x10049dba0 to 0x10049dc52 (178 bytes)
//
// 1 xrefs:
// > SecretLayer3::init @ 0x10049d0ad
//
// 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 12:30:51 +0000
//
_QWORD *__fastcall DungeonBarsSprite::create(double a1)
{
__int64 v1; // rax
_QWORD *v2; // rbx
char *v3; // rax
__int64 v4; // r14
float v6[8]; // [rsp+0h] [rbp-20h] BYREF
*(_QWORD *)v6 = v1;
v2 = operator new(0x148u);
cocos2d::CCNode::CCNode((__int64)v2);
*v2 = off_100B51590;
v2[40] = 0;
if ( cocos2d::CCNode::init() )
{
v3 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"dungeon_bars_001.png", a1);
v2[40] = v3;
(*(void (__fastcall **)(_QWORD *, char *))(*v2 + 456LL))(v2, v3);
v4 = v2[40];
sub_100278250(v6, 0.0, -2.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v4 + 184LL))(v4, v6);
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);
return nullptr;
}
return v2;
}