//
// GJPathSprite::addShardSprite from 0x1002ed640 to 0x1002ed727 (231 bytes)
//
// 2 xrefs:
// > GJPathSprite::updateState @ 0x1002e9586
// > GJPathPage::unlockAnimationStep3 @ 0x1002ece1d
//
// 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:28:24 +0000
//
void __fastcall GJPathSprite::addShardSprite(_DWORD *a1)
{
unsigned int v2; // eax
std::string::pointer data; // rdi
char *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
memset(&v8, 0, sizeof(v8));
sub_100278250((float *)&v5, 0.0, 1.0);
v2 = a1[149] - 1;
if ( v2 < 0xA )
{
std::string::assign(&v8, (const std::string::value_type *)&unk_100A07BA8 + *((int *)&unk_100A07BA8 + 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((__int64)data, 0.0);
(*(void (__fastcall **)(_DWORD *, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 1);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 160LL))(v4, 0.55000001);
cocos2d::CCNode::convertToNodeSpace((double *)&v7, (__int64)a1, (unsigned int *)&unk_100BE2740);
sub_100278350(&v6, &v7, &v5);
(*(void (__fastcall **)(char *, double *))(*(_QWORD *)v4 + 184LL))(v4, &v6);
if ( (*(_BYTE *)&v8.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v8.__r_.__value_.__l.__data_);
}
}