//
// GJPathSprite::addRankLabel from 0x58c7d0 to 0x58c864 (148 bytes)
//
// 1 xrefs:
// > GJPathSprite::updateState @ 0x58cd58
//
// 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 GJPathSprite::addRankLabel(GJPathSprite *a1, int a2)
{
cocos2d::CCLabelBMFont *v3; // r5
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCPoint v5; // [sp+4h] [bp-20h] BYREF
cocos2d::CCPoint v6; // [sp+Ch] [bp-18h] BYREF
cocos2d::CCPoint v7; // [sp+14h] [bp-10h] BYREF
GameToolbox::intToString((GameToolbox *)&v7, a2);
v3 = cocos2d::CCLabelBMFont::create();
sub_774008(&v7);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v3->setScale)(v3, 1057803469);
a1->addChild_0(a1, v3, 1);
setPosition = v3->setPosition;
cocos2d::CCNode::convertToNodeSpace(&v5, a1, &stru_AC7EC4);
cocos2d::CCPoint::CCPoint(&v6, 0.0, 1.0);
cocos2d::CCPoint::operator+(&v7, &v5, &v6);
setPosition(v3, &v7);
}