//
// StartPosObject::create from 0x1001bd810 to 0x1001bd8fe (238 bytes)
//
// 1 xrefs:
// > GameObject::createWithKey @ 0x10059d683
//
// 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
//
StartPosObject *__fastcall StartPosObject::create()
{
StartPosObject *v0; // rbx
LevelSettingsObject *v1; // rax
cocos2d::CCObject *m_startSettings; // rdi
LevelSettingsObject *v3; // r14
v0 = (StartPosObject *)operator new(0x738u);
EffectGameObject::EffectGameObject(v0);
v0->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (StartPosObject_vtbl *)off_1008C48A0;
v0->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_1008C4FE8;
v0->EffectGameObject::EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_1008C5068;
v0->m_startSettings = nullptr;
if ( EnhancedGameObject::init(v0, "edit_eStartPosBtn_001.png") )
{
v0->m_classType = Effect;
v0->m_triggerTargetColor.b = -1;
*(_WORD *)&v0->m_triggerTargetColor.r = -1;
v0->m_duration = 0.5;
v0->m_legacyHSV = 1;
v1 = LevelSettingsObject::create();
m_startSettings = v0->m_startSettings;
if ( m_startSettings == v1 )
{
v3 = v0->m_startSettings;
}
else
{
v3 = v1;
if ( v1 )
{
cocos2d::CCObject::retain(v1);
m_startSettings = v0->m_startSettings;
}
if ( m_startSettings )
cocos2d::CCObject::release(m_startSettings);
v0->m_startSettings = v3;
}
v3->m_startsWithStartPos = 1;
cocos2d::CCObject::autorelease(v0);
}
else
{
((void (__fastcall *)(StartPosObject *))v0->~StartPosObject_0)(v0);
return nullptr;
}
return v0;
}