// // cocos2d::CCParticleSystemQuad::initTexCoordsWithRect from 0x18006c9e0 to 0x18006cbbc (476 bytes) // // 5 xrefs: // > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006cf1a // > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006d062 // > cocos2d::CCParticleSystemQuad::updateTexCoords @ 0x18006d5b1 // > @ 0x18014cf68 // > @ 0x1801be02c // // 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:21:55 +0000 // void __fastcall cocos2d::CCParticleSystemQuad::initTexCoordsWithRect( cocos2d::CCParticleSystemQuad *this, const struct cocos2d::CCRect *a2) { cocos2d::CCDirector *v4; // rax float v5; // xmm9_4 cocos2d::CCDirector *v6; // rax float ContentScaleFactor; // xmm0_4 float v8; // xmm6_4 float v9; // xmm8_4 cocos2d::CCDirector *v10; // rax float v11; // xmm7_4 float v12; // xmm6_4 cocos2d::CCDirector *v13; // rax float v14; // xmm0_4 __int64 v15; // rcx float v16; // xmm7_4 float v17; // xmm0_4 __int64 v18; // rcx float v19; // xmm8_4 float v20; // xmm6_4 float v21; // xmm9_4 float v22; // xmm7_4 __int64 v23; // r9 unsigned int v24; // r8d unsigned int v25; // edx float *v26; // rax __int64 v27; // rcx float v28; // [rsp+30h] [rbp-58h] BYREF float v29; // [rsp+34h] [rbp-54h] float v30; // [rsp+38h] [rbp-50h] float v31; // [rsp+3Ch] [rbp-4Ch] cocos2d::CCRect::operator=((__int64)this + 816, (__int64)a2); v4 = cocos2d::CCDirector::sharedDirector(); v5 = cocos2d::CCDirector::getContentScaleFactor(v4) * *((float *)a2 + 3); v6 = cocos2d::CCDirector::sharedDirector(); ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v6); v8 = *((float *)a2 + 1); v9 = ContentScaleFactor * *((float *)a2 + 2); v10 = cocos2d::CCDirector::sharedDirector(); v11 = cocos2d::CCDirector::getContentScaleFactor(v10) * v8; v12 = *(float *)a2; v13 = cocos2d::CCDirector::sharedDirector(); v14 = cocos2d::CCDirector::getContentScaleFactor(v13) * v12; cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v28, v14, v11, v9, v5); v15 = *((_QWORD *)this + 84); v16 = *((float *)a2 + 2); v17 = *((float *)a2 + 3); if ( v15 ) { v16 = (float)(*(int (__fastcall **)(__int64))(*(_QWORD *)v15 + 80LL))(v15); v17 = (float)(*(int (__fastcall **)(_QWORD))(**((_QWORD **)this + 84) + 88LL))(*((_QWORD *)this + 84)); } v18 = *((_QWORD *)this + 55); v19 = v28 / v16; v20 = (float)(v30 / v16) + (float)(v28 / v16); v21 = v29 / v17; v22 = (float)(v31 / v17) + (float)(v29 / v17); if ( v18 ) { v23 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v18 + 328) + 104LL))(*(_QWORD *)(v18 + 328)); v24 = *((_DWORD *)this + 112); v25 = v24 + *((_DWORD *)this + 167); } else { v23 = *((_QWORD *)this + 99); v24 = 0; v25 = *((_DWORD *)this + 167); } if ( v24 < v25 ) { v26 = (float *)(v23 + 96LL * v24 + 44); v27 = v25 - v24; do { *(v26 - 1) = v19; *v26 = v22; v26[11] = v20; v26[12] = v22; *(v26 - 7) = v19; *(v26 - 6) = v21; v26[5] = v20; v26[6] = v21; v26 += 24; --v27; } while ( v27 ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source