// // GJRateLevelLayer::createStatPillar from 0x100507970 to 0x100507c71 (769 bytes) // // 2 xrefs: // > GJRateLevelLayer::setupRateInfo @ 0x100506e7f // > GJRateLevelLayer::setupRateInfo @ 0x1005072df // // 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 // void __fastcall GJRateLevelLayer::createStatPillar( __int64 a1, int a2, int a3, int a4, int a5, int a6, unsigned __int64 *a7, __int64 a8) { int v8; // r15d int v10; // r14d int v11; // ebx cocos2d::CCSprite *v12; // r15 cocos2d::CCSprite *v13; // r13 float *v14; // rax __int64 v15; // rax double v16; // xmm0_8 cocos2d::CCPoint v17; // rax cocos2d::CCSprite *v18; // rdi __int64 v19; // r14 const char *v20; // rdi cocos2d::CCLabelBMFont *v21; // rbx unsigned __int64 v22; // [rsp+0h] [rbp-60h] BYREF double v23; // [rsp+8h] [rbp-58h] BYREF __int64 v24; // [rsp+10h] [rbp-50h] __int64 v25; // [rsp+1Ch] [rbp-44h] BYREF float v26; // [rsp+24h] [rbp-3Ch] float v27; // [rsp+28h] [rbp-38h] __int16 v28; // [rsp+2Ch] [rbp-34h] BYREF char v29; // [rsp+2Eh] [rbp-32h] __int16 v30; // [rsp+30h] [rbp-30h] BYREF char v31; // [rsp+32h] [rbp-2Eh] float v32; // [rsp+34h] [rbp-2Ch] double v33; // 0:xmm0_8.8 v28 = a5; v29 = BYTE2(a5); v30 = a6; v31 = BYTE2(a6); if ( a4 > 0 ) { v8 = a4; v24 = a1; sub_10028CC30(&v25); v26 = (float)a2; v27 = (float)a3; v10 = 0; do { v11 = v8; v12 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); v13 = cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v12->addChild_0)(v12, v13, 1); *(cocos2d::CCPoint *)&v33 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v23, (const cocos2d::CCPoint *)v12); ((void (__fastcall *)(cocos2d::CCSprite *, double *, double))v13->setPosition)(v13, &v23, v33); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *, __int64))(**(_QWORD **)(v24 + 576) + 448LL))( *(_QWORD *)(v24 + 576), v12, 3); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v12->setColor)(v12, &v30); ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v13->setColor)(v13, &v28); v14 = (float *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v12->getContentSize)(v12); ((void (__fastcall *)(cocos2d::CCSprite *, float))v12->setScaleX)(v12, v26 / *v14); v15 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))v12->getContentSize)(v12); ((void (__fastcall *)(cocos2d::CCSprite *, float))v12->setScaleY)(v12, v27 / *(float *)(v15 + 4)); v32 = ((float (__fastcall *)(cocos2d::CCSprite *))v12->getScaleX)(v12); *(float *)&v33 = ((float (__fastcall *)(cocos2d::CCSprite *))v12->getScaleY)(v12); v32 = v32 / *(float *)&v33; ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setScaleX)(v13, 0.75); ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setScaleY)(v13, 0.75 / v32); v32 = *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *))v12->getContentSize)(v12) + 4); *(float *)&v33 = ((float (__fastcall *)(cocos2d::CCSprite *))v12->getScaleY)(v12); *(float *)&v33 = (float)(*(float *)&v33 * v32) * -0.25 * 0.5; sub_10028CBE0((float *)&v22, 0.0, (float)v10 * (float)(*(float *)&v33 + v27)); sub_10028CCE0(&v23, a7, &v22); v16 = sub_10028CC90(&v25, &v23); v17 = (cocos2d::CCPoint)v12->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v18 = v12; v8 = v11; (*(void (__fastcall **)(cocos2d::CCSprite *, __int64 *, double))(*(_QWORD *)&v17 + 184LL))(v18, &v25, v16); ++v10; } while ( v11 != v10 ); v19 = v24; if ( (*(_BYTE *)a8 & 1) != 0 ) { if ( !*(_QWORD *)(a8 + 8) ) return; v20 = *(const char **)(a8 + 16); } else { if ( !*(_BYTE *)a8 ) return; v20 = (const char *)(a8 + 1); } v21 = cocos2d::CCLabelBMFont::create_3(v20, "chatFont.fnt"); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(v19 + 576) + 448LL))( *(_QWORD *)(v19 + 576), v21, 3); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))v21->setColor)(v21, &unk_10081E1B0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int64))v21->setOpacity)(v21, 125); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float))v21->setScale)(v21, 0.80000001); sub_10028CBE0((float *)&v23, *(float *)&v25, *((float *)&v25 + 1) + 13.0); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v21->setPosition)(v21, &v23); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source