//
// GJPathSprite::addShardSprite from 0x100302960 to 0x100302a47 (231 bytes)
//
// 2 xrefs:
// > GJPathSprite::updateState @ 0x1002fea16
// > GJPathPage::unlockAnimationStep3 @ 0x10030213d
//
// 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
//
void __fastcall GJPathSprite::addShardSprite(GJPathSprite *a1)
{
unsigned int v2; // eax
const char *data; // rdi
cocos2d::CCSprite *v4; // r14
unsigned __int64 v5; // [rsp+8h] [rbp-48h] BYREF
double v6; // [rsp+10h] [rbp-40h] BYREF
unsigned __int64 v7; // [rsp+18h] [rbp-38h] BYREF
std::string v8; // [rsp+20h] [rbp-30h] BYREF
double v9; // 0:xmm0_8.8
memset(&v8, 0, sizeof(v8));
sub_10028CBE0((float *)&v5, 0.0, 1.0);
v2 = a1->m_pathNumber - 1;
if ( v2 < 0xA )
{
std::string::assign(&v8, (const std::string::value_type *)&unk_100819678 + *((int *)&unk_100819678 + v2));
if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )
data = v8.__r_.__value_.__l.__data_;
else
data = v8.__r_.__value_.__s.__data_;
v4 = cocos2d::CCSprite::createWithSpriteFrameName(data);
((void (__fastcall *)(GJPathSprite *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v4, 1);
((void (__fastcall *)(cocos2d::CCSprite *, float))v4->setScale)(v4, 0.55000001);
*(cocos2d::CCPoint *)&v9 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v7, (const cocos2d::CCPoint *)a1);
sub_10028CCE0(&v6, &v7, &v5);
((void (__fastcall *)(cocos2d::CCSprite *, double *, double))v4->setPosition)(v4, &v6, v9);
if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v8.__r_.__value_.__l.__data_);
}
}