//
// GJPathSprite::addRankLabel from 0xba4500 to 0xba4634 (308 bytes)
//
// 2 xrefs:
// > GJPathSprite::updateState @ 0xba5b90
// > ??> @ 0xe0da0
//
// This function is hookable on this platform (idp: arm, 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 13:02:48 +0000
//
__int64 __fastcall GJPathSprite::addRankLabel(GJPathSprite *this, GameToolbox *a2)
{
const char *v3; // x2
cocos2d::CCLabelBMFont *v4; // x0
__int64 v5; // x19
cocos2d::CCNode *v6; // x0
void (__fastcall *v7)(__int64, __int64 *); // x24
__int64 v9; // [xsp+58h] [xbp+58h] BYREF
_BYTE v10[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v11; // [xsp+68h] [xbp+68h] BYREF
unsigned __int64 v12[2]; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCLabelBMFont *v13; // [xsp+80h] [xbp+80h]
GameToolbox::intToString(v12, (GameToolbox *)(unsigned int)a2);
v4 = (cocos2d::CCLabelBMFont *)((char *)v12 + 1);
if ( (v12[0] & 1) != 0 )
v4 = v13;
v5 = cocos2d::CCLabelBMFont::create(v4, "bigFont.fnt", v3);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.55);
(*(void (__fastcall **)(GJPathSprite *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v5, 1);
v6 = this;
v7 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL);
cocos2d::CCNode::convertToNodeSpace(&v9, v6, (const cocos2d::CCPoint *)&unk_155E870);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, 1.0);
cocos2d::CCPoint::operator+(&v11, &v9);
v7(v5, &v11);
return _stack_chk_guard;
}