//
// GJRateLevelLayer::createStatPillar from 0x1402f6540 to 0x1402f68b2 (882 bytes)
//
// 3 xrefs:
// > GJRateLevelLayer::setupRateInfo @ 0x1402f5e31
// > GJRateLevelLayer::setupRateInfo @ 0x1402f6279
// > ??> @ 0x1406d401c
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall GJRateLevelLayer::createStatPillar(
__int64 a1,
__int64 a2,
__int64 a3,
int a4,
const cocos2d::ccColor3B *a5,
__int64 a6,
__int64 a7,
struct cocos2d::CCPoint a8)
{
__int64 v10; // r14
int v11; // r12d
const cocos2d::ccColor3B *v12; // r14
struct cocos2d::CCSprite *v13; // rsi
struct cocos2d::CCSprite *v14; // rdi
cocos2d::CCSprite_vtbl *v15; // rbx
struct cocos2d::CCPoint v16; // rax
cocos2d::CCSprite_vtbl *v17; // rbx
cocos2d::CCSprite_vtbl *v18; // rbx
__int64 v19; // rbx
double v20; // xmm1_8
const char *v21; // rcx
struct cocos2d::CCLabelBMFont *v22; // rdi
__int64 v23; // rdx
float v24; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v25; // rbx
const cocos2d::CCPoint *v26; // rax
cocos2d::CCPoint v27; // [rsp+20h] [rbp-D8h] BYREF
__int64 v28; // [rsp+28h] [rbp-D0h] BYREF
__int64 v29; // [rsp+30h] [rbp-C8h]
__int64 v30; // [rsp+38h] [rbp-C0h]
struct cocos2d::CCPoint v31[2]; // [rsp+48h] [rbp-B0h] BYREF
v28 = a6;
v29 = a7;
v10 = (__int64)a8;
v30 = (__int64)a8;
v31[1] = a8;
if ( a4 > 0 )
{
cocos2d::CCPoint::CCPoint(&v27);
v11 = 0;
v12 = (const cocos2d::ccColor3B *)v28;
do
{
v13 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
v14 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
v13->addChild_0(v13, v14, 1);
v15 = v14->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v16 = cocos2d::CCNode::convertToNodeSpace(v13, v31);
((void (__fastcall *)(struct cocos2d::CCSprite *, struct cocos2d::CCPoint))v15->setPosition_0)(v14, v16);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 576) + 440LL))(
*(_QWORD *)(a1 + 576),
v13,
3);
v13->setColor(&v13->cocos2d::CCRGBAProtocol, v12);
v14->setColor(&v14->cocos2d::CCRGBAProtocol, a5);
v17 = v13->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v13->getContentSize(v13);
((void (__fastcall *)(struct cocos2d::CCSprite *))v17->setScaleX)(v13);
v18 = v13->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v13->getContentSize(v13);
((void (__fastcall *)(struct cocos2d::CCSprite *))v18->setScaleY)(v13);
v13->getScaleX(v13);
v13->getScaleY(v13);
((void (__fastcall *)(struct cocos2d::CCSprite *))v14->setScaleX)(v14);
((void (__fastcall *)(struct cocos2d::CCSprite *))v14->setScaleY)(v14);
v19 = (__int64)v13->getContentSize(v13);
v20 = (float)(v13->getScaleY(v13) * *(float *)(v19 + 4)) * 0.25 * 0.5;
cocos2d::CCPoint::CCPoint(v20, 0.0);
cocos2d::CCPoint::operator+(v29, &v28);
cocos2d::CCPoint::operator=(&v27, &v28);
v13->setPosition_0(v13, &v27);
++v11;
}
while ( v11 < a4 );
v10 = v30;
if ( *(_QWORD *)(v30 + 16) )
{
v21 = (const char *)v30;
if ( *(_QWORD *)(v30 + 24) > 0xFu )
v21 = *(const char **)v30;
v22 = cocos2d::CCLabelBMFont::create(v21, "chatFont.fnt");
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 576) + 440LL))(
*(_QWORD *)(a1 + 576),
v22,
3);
v22->setColor(&v22->cocos2d::CCRGBAProtocol, &stru_140529B30);
LOBYTE(v23) = 125;
v22->setOpacity(&v22->cocos2d::CCRGBAProtocol, v23);
v24 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *))v22->setScale_0)(v22);
v25 = v22->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v24, v27.x);
v25->setPosition_0(v22, v26);
}
}
sub_14003A830(v10);
}