//
// CheckpointGameObject::setupCustomSprites from 0x3e4788 to 0x3e49ce (582 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall CheckpointGameObject::setupCustomSprites(GameObject *a1)
{
cocos2d::CCSprite *v2; // r0
cocos2d::CCSprite *v3; // r0
cocos2d::CCSprite *v4; // r0
cocos2d::CCSprite *v5; // r8
cocos2d::CCSprite *v6; // r0
cocos2d::CCSprite *v7; // r0
cocos2d::CCSprite *v8; // r0
cocos2d::CCSprite *v9; // r5
const char *v11; // [sp+8h] [bp+4h] BYREF
cocos2d::CCPoint v12; // [sp+Ch] [bp+8h] BYREF
a1->m_colorZLayerRelated = 0;
a1->m_bDontDraw = 1;
sub_776584((int)&v11, "checkpoint_d_01_001.png");
cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0);
v2 = GameObject::addCustomChild(a1, &v11, (int)&v12, -1);
v2->setTag(v2, 1125);
sub_774008(&v11);
sub_776584((int)&v11, "checkpoint_d_02_001.png");
cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0);
v3 = GameObject::addCustomChild(a1, &v11, (int)&v12, -1);
v3->setTag(v3, 1126);
sub_774008(&v11);
sub_776584((int)&v11, "checkpoint_d_03_001.png");
cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0);
v4 = GameObject::addCustomChild(a1, &v11, (int)&v12, -1);
v4->setTag(v4, 1127);
sub_774008(&v11);
sub_776584((int)&v11, "checkpoint_01_001.png");
cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0);
v5 = GameObject::addCustomChild(a1, &v11, (int)&v12, -1);
sub_774008(&v11);
v5->setTag(v5, 1128);
v5->setVisible(v5, 0);
sub_776584((int)&v12, "checkpoint_d_01_001.png");
GameObject::addCustomColorChild(a1, (const char **)&v12)->m_bDontDraw = 1;
sub_774008(&v12);
sub_776584((int)&v11, "checkpoint_d_01_color_001.png");
cocos2d::CCPoint::CCPoint(&v12, &stru_AC6038);
v6 = GameObject::addInternalCustomColorChild((int)a1, &v11, (int)&v12, -1);
v6->setTag(v6, 1125);
sub_774008(&v11);
sub_776584((int)&v11, "checkpoint_d_02_color_001.png");
cocos2d::CCPoint::CCPoint(&v12, &stru_AC6038);
v7 = GameObject::addInternalCustomColorChild((int)a1, &v11, (int)&v12, -1);
v7->setTag(v7, 1126);
sub_774008(&v11);
sub_776584((int)&v11, "checkpoint_d_03_color_001.png");
cocos2d::CCPoint::CCPoint(&v12, &stru_AC6038);
v8 = GameObject::addInternalCustomColorChild((int)a1, &v11, (int)&v12, -1);
v8->setTag(v8, 1127);
sub_774008(&v11);
sub_776584((int)&v11, "checkpoint_01_color_001.png");
cocos2d::CCPoint::CCPoint(&v12, &stru_AC6038);
v9 = GameObject::addInternalCustomColorChild((int)a1, &v11, (int)&v12, -1);
sub_774008(&v11);
v9->setTag(v9, 1128);
return ((int (__fastcall *)(cocos2d::CCSprite *, _DWORD))v9->setVisible)(v9, 0);
}