//
// CheckpointGameObject::setupCustomSprites from 0x1404ba1d0 to 0x1404ba79b (1483 bytes)
//
// 2 xrefs:
// > ??> @ 0x140611c08
// > ??> @ 0x1406dcd28
//
// 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
//
// Hidden C++ exception states: #wind=3
void __fastcall CheckpointGameObject::setupCustomSprites(__int64 a1, __int64 a2)
{
__int64 v4; // rax
struct cocos2d::CCSprite *v5; // rax
__int64 v6; // rax
struct cocos2d::CCSprite *v7; // rax
__int64 v8; // rax
struct cocos2d::CCSprite *v9; // rax
__int64 v10; // rax
struct cocos2d::CCSprite *v11; // rbx
__int64 v12; // rax
struct cocos2d::CCSprite *v13; // rax
__int64 v14; // rax
struct cocos2d::CCSprite *v15; // rax
__int64 v16; // rax
struct cocos2d::CCSprite *v17; // rax
__int64 v18; // rax
struct cocos2d::CCSprite *v19; // rbx
__int128 v20; // [rsp+20h] [rbp-40h] BYREF
__int64 v21; // [rsp+30h] [rbp-30h]
__int64 v22; // [rsp+38h] [rbp-28h]
__int128 *v23; // [rsp+40h] [rbp-20h]
cocos2d::CCPoint v24[2]; // [rsp+48h] [rbp-18h] BYREF
v24[1] = (cocos2d::CCPoint)a2;
*(_BYTE *)(a1 + 1061) = 0;
*(_BYTE *)(a1 + 559) = 1;
v24[0] = (cocos2d::CCPoint)&v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 23;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_01_001.png");
cocos2d::CCPoint::CCPoint(4.2318262e21, 0.0);
v5 = GameObject::addCustomChild(a1, (const char *)&v20, v4, 0xFFFFFFFF);
v5->setTag(v5, 1125);
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 23;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_02_001.png");
cocos2d::CCPoint::CCPoint(4.2318262e21, 0.0);
v7 = GameObject::addCustomChild(a1, (const char *)&v20, v6, 0xFFFFFFFF);
v7->setTag(v7, 1126);
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 23;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_03_001.png");
cocos2d::CCPoint::CCPoint(4.2318262e21, 0.0);
v9 = GameObject::addCustomChild(a1, (const char *)&v20, v8, 0xFFFFFFFF);
v9->setTag(v9, 1127);
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 21;
v22 = 31;
strcpy((char *)v20, "checkpoint_01_001.png");
cocos2d::CCPoint::CCPoint(4.2318262e21, 0.0);
v11 = GameObject::addCustomChild(a1, (const char *)&v20, v10, 0xFFFFFFFF);
v11->setTag(v11, 1128);
v11->setVisible(v11, 0);
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 23;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_01_001.png");
*(_BYTE *)(GameObject::addCustomColorChild((_QWORD *)a1, (const char *)&v20) + 559) = 1;
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 29;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_01_color_001.png");
cocos2d::CCPoint::CCPoint(v24);
v13 = GameObject::addInternalCustomColorChild(a1, (const char *)&v20, v12, 0xFFFFFFFF);
v13->setTag(v13, 1125);
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 29;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_02_color_001.png");
cocos2d::CCPoint::CCPoint(v24);
v15 = GameObject::addInternalCustomColorChild(a1, (const char *)&v20, v14, 0xFFFFFFFF);
v15->setTag(v15, 1126);
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 29;
v22 = 31;
strcpy((char *)v20, "checkpoint_d_03_color_001.png");
cocos2d::CCPoint::CCPoint(v24);
v17 = GameObject::addInternalCustomColorChild(a1, (const char *)&v20, v16, 0xFFFFFFFF);
v17->setTag(v17, 1127);
v23 = &v20;
v20 = 0;
v21 = 0;
v22 = 15;
*(_QWORD *)&v20 = sub_14003AA10(0x20u);
v21 = 27;
v22 = 31;
strcpy((char *)v20, "checkpoint_01_color_001.png");
cocos2d::CCPoint::CCPoint(v24);
v19 = GameObject::addInternalCustomColorChild(a1, (const char *)&v20, v18, 0xFFFFFFFF);
v19->setTag(v19, 1128);
v19->setVisible(v19, 0);
sub_14003A830(a2);
}