//
// GJPathSprite::addRankLabel from 0x100302e90 to 0x100302f5c (204 bytes)
//
// 1 xrefs:
// > GJPathSprite::updateState @ 0x1002fea2b
//
// 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::addRankLabel(GJPathSprite *a1, int a2)
{
const char *v3; // rdi
cocos2d::CCLabelBMFont *v4; // r14
unsigned __int64 v5; // [rsp+8h] [rbp-48h] BYREF
unsigned __int64 v6; // [rsp+10h] [rbp-40h] BYREF
double v7[2]; // [rsp+18h] [rbp-38h] BYREF
void *__p; // [rsp+28h] [rbp-28h]
GameToolbox::intToString(v7, a2);
if ( (LOBYTE(v7[0]) & 1) != 0 )
v3 = (const char *)__p;
else
v3 = (char *)v7 + 1;
v4 = cocos2d::CCLabelBMFont::create_3(v3, "bigFont.fnt");
if ( (LOBYTE(v7[0]) & 1) != 0 )
operator delete(__p);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v4->setScale)(v4, 0.55000001);
((void (__fastcall *)(GJPathSprite *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v4, 1);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v5, (const cocos2d::CCPoint *)a1);
sub_10028CBE0((float *)&v6, 0.0, 1.0);
sub_10028CCE0(v7, &v5, &v6);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v4->setPosition)(v4, v7);
}