//
// GJPathSprite::addRankLabel from 0x6d2070 to 0x6d2112 (162 bytes)
//
// 1 xrefs:
// > GJPathSprite::updateState @ 0x6d2b00
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:57:03 +0000
//
int __fastcall GJPathSprite::addRankLabel(GJPathSprite *this, int a2)
{
const char *v3; // r2
cocos2d::CCLabelBMFont *v4; // r0
int v5; // r4
int (__fastcall *v6)(int, _BYTE *); // r9
_BYTE v8[8]; // [sp+0h] [bp-2Ch] BYREF
_BYTE v9[8]; // [sp+8h] [bp-24h] BYREF
_BYTE v10[8]; // [sp+10h] [bp-1Ch] BYREF
char v11; // [sp+18h] [bp-14h] BYREF
char v12; // [sp+19h] [bp-13h] BYREF
cocos2d::CCLabelBMFont *v13; // [sp+20h] [bp-Ch]
GameToolbox::intToString((GameToolbox *)&v11, a2);
if ( (v11 & 1) != 0 )
v4 = v13;
else
v4 = (cocos2d::CCLabelBMFont *)&v12;
v5 = cocos2d::CCLabelBMFont::create(v4, "bigFont.fnt", v3);
std::string::~string((int)&v11);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v5 + 80))(v5, 1057803469);
(*(void (__fastcall **)(GJPathSprite *, int, int))(*(_DWORD *)this + 232))(this, v5, 1);
v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v8, this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, 1.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
return v6(v5, v10);
}