// // GJRateLevelListLayer::createStatPillar from 0x565940 to 0x565b82 (578 bytes) // // 1 xrefs: // > GJRateLevelListLayer::init @ 0x56749e // // 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:52:28 +0000 // int __fastcall GJRateLevelListLayer::createStatPillar( int result, int a2, int a3, int a4, char a5, char a6, int a7, unsigned __int8 *a8) { int v8; // r8 unsigned __int8 *v11; // r5 const char *v12; // r1 int v13; // r7 const cocos2d::CCPoint *v14; // r4 const char *v15; // r1 int v16; // r10 float *v17; // r0 int v18; // r0 float v19; // s16 float v20; // s16 float v21; // s16 float v22; // s14 int v23; // s15 unsigned int v24; // r3 cocos2d::CCLabelBMFont *v25; // r0 int v26; // r4 int (__fastcall *v27)(int, _BYTE *); // r5 int v29; // [sp+4h] [bp-30h] void (__fastcall *v30)(int, _BYTE *); // [sp+Ch] [bp-28h] void (__fastcall *v31)(const cocos2d::CCPoint *, _DWORD); // [sp+Ch] [bp-28h] void (__fastcall *v32)(const cocos2d::CCPoint *, _DWORD); // [sp+Ch] [bp-28h] float v33[2]; // [sp+14h] [bp-20h] BYREF _BYTE v34[8]; // [sp+1Ch] [bp-18h] BYREF _BYTE v35[8]; // [sp+24h] [bp-10h] BYREF v8 = result; v11 = a8; v29 = a7; if ( a4 > 0 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v33); v13 = 0; do { v14 = (const cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"whiteSquare60_001.png", v12); v16 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare60_001.png", v15); (*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v14 + 232))(v14, v16, 1); v30 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v35, v14); v30(v16, v35); (*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**(_DWORD **)(v8 + 460) + 232))( *(_DWORD *)(v8 + 460), v14, 3); (*(void (__fastcall **)(const cocos2d::CCPoint *, char *))(*(_DWORD *)v14 + 480))(v14, &a6); (*(void (__fastcall **)(int, char *))(*(_DWORD *)v16 + 480))(v16, &a5); v31 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v14 + 64); v17 = (float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v14 + 164))(v14); v31(v14, (float)a2 / *v17); v32 = *(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD))(*(_DWORD *)v14 + 72); v18 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v14 + 164))(v14); v32(v14, (float)a3 / *(float *)(v18 + 4)); v19 = COERCE_FLOAT((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v14 + 68))(v14)); v20 = v19 / COERCE_FLOAT((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v14 + 76))(v14)); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 64))(v16, 1061158912); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v16 + 72))(v16, 0.75 / v20); v21 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v14 + 164))(v14) + 4); v22 = (float)(v21 * (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)v14 + 76))(v14)) * 0.25 * 0.5; v23 = v13++; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 0.0, (float)((float)a3 - v22) * (float)v23); cocos2d::CCPoint::operator+(v35, v29, v34); cocos2d::CCPoint::operator=(v33, v35); result = (*(int (__fastcall **)(const cocos2d::CCPoint *, float *))(*(_DWORD *)v14 + 92))(v14, v33); } while ( v13 != a4 ); v24 = *v11; if ( (v24 & 1) != 0 ) { if ( !*((_DWORD *)v11 + 1) ) return result; v25 = *((cocos2d::CCLabelBMFont **)v11 + 2); } else { if ( !(v24 >> 1) ) return result; v25 = (cocos2d::CCLabelBMFont *)(v11 + 1); } v26 = cocos2d::CCLabelBMFont::create(v25, "chatFont.fnt", (const char *)(v24 << 31)); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(v8 + 460) + 232))(*(_DWORD *)(v8 + 460), v26, 3); (*(void (__fastcall **)(int, void *))(*(_DWORD *)v26 + 536))(v26, &unk_BED0BE); (*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 512))(v26, 125); (*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 80))(v26, 1061997773); v27 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, v33[0], v33[1] + 13.0); return v27(v26, v35); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source