//
// GJPathSprite::addRankLabel from 0x1003bb6f8 to 0x1003bb7d4 (220 bytes)
//
// 1 xrefs:
// > GJPathSprite::updateState @ 0x1003b85a0
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJPathSprite::addRankLabel(GJPathSprite *a1, int a2)
{
void **v3; // x0
cocos2d::CCLabelBMFont *v4; // x19
__n128 v5; // q0
__n128 v6; // q1
double v7; // d0
float32x2_t v8; // [xsp+8h] [xbp-38h] BYREF
float32x2_t v9; // [xsp+10h] [xbp-30h] BYREF
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v11; // [xsp+2Fh] [xbp-11h]
GameToolbox::intToString(*(__int64 *)&a2, __p);
if ( v11 >= 0 )
v3 = __p;
else
v3 = (void **)__p[0];
v4 = cocos2d::CCLabelBMFont::create_1((const char *)v3, "bigFont.fnt");
if ( v11 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v4->setScale)(v4, 0.55);
((void (__fastcall *)(GJPathSprite *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v4, 1);
cocos2d::CCNode::convertToNodeSpace(a1, &stru_10086E6F0);
v5.n128_u32[0] = 0;
v6.n128_u32[0] = 1.0;
sub_100022980(v5, v6, &v8);
*(float32x2_t *)&v7 = sub_1000229DC(&v9, &v8, (float32x2_t *)__p);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void **, double))v4->setPosition)(v4, __p, v7);
}