//
// GJRateLevelLayer::createStatPillar from 0x14041b060 to 0x14041b3e4 (900 bytes)
//
// 3 xrefs:
// > GJRateLevelLayer::setupRateInfo @ 0x14041a94e
// > GJRateLevelLayer::setupRateInfo @ 0x14041ad9e
// > ??> @ 0x140926654
//
// This function is hookable on this platform (idp: pc, 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 11:32:06 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall GJRateLevelLayer::createStatPillar(
__int64 a1,
__int64 a2,
int a3,
int a4,
__int64 a5,
__int64 a6,
__int64 a7,
__int64 a8)
{
__int64 v11; // r14
int v12; // r12d
float v13; // xmm7_4
__int64 v14; // r14
struct cocos2d::CCSprite *v15; // rsi
struct cocos2d::CCSprite *v16; // rdi
__int64 v17; // rbx
__int64 v18; // rax
__int64 v19; // rbx
void (__fastcall *v20)(struct cocos2d::CCSprite *); // rbx
float v21; // xmm6_4
float v22; // xmm0_4
__int64 v23; // rax
const char *v24; // rcx
struct cocos2d::CCLabelBMFont *v25; // rdi
__int64 v26; // rdx
void (__fastcall *v27)(char *, __int64); // rax
__int64 v28; // rbx
__int64 v29; // rax
float v30[2]; // [rsp+20h] [rbp-D8h] BYREF
__int64 v31; // [rsp+28h] [rbp-D0h] BYREF
__int64 v32; // [rsp+30h] [rbp-C8h]
__int64 v33; // [rsp+38h] [rbp-C0h]
_BYTE v34[8]; // [rsp+40h] [rbp-B8h] BYREF
_BYTE v35[8]; // [rsp+48h] [rbp-B0h] BYREF
__int64 v36; // [rsp+50h] [rbp-A8h]
v31 = a6;
v32 = a7;
v11 = a8;
v33 = a8;
v36 = a8;
if ( a4 > 0 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30);
v12 = 0;
v13 = (float)a3;
v14 = v31;
do
{
v15 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
v16 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png");
(*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v15 + 456LL))(
v15,
v16,
1);
v17 = *(_QWORD *)v16;
cocos2d::CCNode::convertToNodeSpace(v15, v35, &unk_14090AF38);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v17 + 184))(v16, v18);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v15,
3);
(**((void (__fastcall ***)(__int64, __int64))v15 + 40))((__int64)v15 + 320, v14);
(**((void (__fastcall ***)(__int64, __int64))v16 + 40))((__int64)v16 + 320, a5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 320LL))(v15);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 120LL))(v15);
v19 = *(_QWORD *)v15;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 320LL))(v15);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(v19 + 136))(v15);
v20 = *(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 144LL);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 128LL))(v15);
v20(v15);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 120LL))(v16);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v16 + 136LL))(v16);
v21 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 320LL))(v15) + 4);
v22 = (float)((*(float (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 144LL))(v15) * v21)
* 0.25
* 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, (float)(v13 - v22) * (float)v12);
cocos2d::CCPoint::operator+(v32, &v31, v23);
cocos2d::CCPoint::operator=(v30, &v31);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, float *))(*(_QWORD *)v15 + 184LL))(v15, v30);
++v12;
}
while ( v12 < a4 );
v11 = v33;
if ( *(_QWORD *)(v33 + 16) )
{
v24 = (const char *)v33;
if ( *(_QWORD *)(v33 + 24) > 0xFu )
v24 = *(const char **)v33;
v25 = cocos2d::CCLabelBMFont::create(v24, "chatFont.fnt");
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v25,
3);
(**((void (__fastcall ***)(__int64, void *))v25 + 46))((__int64)v25 + 368, &unk_140703B94);
v26 = *((_QWORD *)v25 + 46);
v27 = *(void (__fastcall **)(char *, __int64))(v26 + 40);
LOBYTE(v26) = 125;
v27((char *)v25 + 368, v26);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 160LL))(v25);
v28 = *(_QWORD *)v25;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v30[0], v30[1] + 13.0);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v28 + 184))(v25, v29);
}
}
sub_14003D310(v11);
}