; ; cocos2d::CCParticleSystemQuad::initTexCoordsWithRect from 0x18006a830 to 0x18006aa0c (476 bytes) ; ; 5 xrefs: ; > cocos2d::CCParticleSystemQuad::setTextureWithRect @ 0x18006ad48 ; > cocos2d::CCParticleSystemQuad::setTotalParticles @ 0x18006ae92 ; > cocos2d::CCParticleSystemQuad::updateTexCoords @ 0x18006b3f1 ; > @ 0x1801438a8 ; > @ 0x1801b3ce4 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x18006a830 push rdi ; +0x5, 0x18006a835 sub rsp, 80h ; +0x6, 0x18006a836 movaps [rsp+88h+var_18], xmm6 ; +0xd, 0x18006a83d mov rdi, rcx ; +0x12, 0x18006a842 movaps [rsp+88h+var_28], xmm7 ; +0x15, 0x18006a845 add rcx, 330h ; +0x1a, 0x18006a84a movaps [rsp+88h+var_38], xmm8 ; +0x21, 0x18006a851 mov rbx, rdx ; +0x27, 0x18006a857 movaps [rsp+88h+var_48], xmm9 ; +0x2a, 0x18006a85a call ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x30, 0x18006a860 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x35, 0x18006a865 mov rcx, rax; this ; +0x3a, 0x18006a86a call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x3d, 0x18006a86d movaps xmm8, xmm0 ; +0x42, 0x18006a872 mulss xmm8, dword ptr [rbx+0Ch] ; +0x46, 0x18006a876 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4c, 0x18006a87c mov rcx, rax; this ; +0x51, 0x18006a881 call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x54, 0x18006a884 movaps xmm7, xmm0 ; +0x59, 0x18006a889 mulss xmm7, dword ptr [rbx+8] ; +0x5c, 0x18006a88c call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x61, 0x18006a891 mov rcx, rax; this ; +0x66, 0x18006a896 call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x69, 0x18006a899 movaps xmm6, xmm0 ; +0x6e, 0x18006a89e mulss xmm6, dword ptr [rbx+4] ; +0x71, 0x18006a8a1 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x76, 0x18006a8a6 mov rcx, rax; this ; +0x7b, 0x18006a8ab call ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x7e, 0x18006a8ae mulss xmm0, dword ptr [rbx] ; +0x83, 0x18006a8b3 lea rcx, [rsp+88h+var_58]; this ; +0x87, 0x18006a8b7 movaps xmm3, xmm7; float ; +0x8c, 0x18006a8bc movss [rsp+88h+var_68], xmm8; float ; +0x8f, 0x18006a8bf movaps xmm2, xmm6; float ; +0x96, 0x18006a8c6 movaps xmm1, xmm0; float ; +0x99, 0x18006a8c9 call ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x9c, 0x18006a8cc mov rcx, [rdi+2A0h] ; +0xa1, 0x18006a8d1 movss xmm9, dword ptr [rbx+8] ; +0xa8, 0x18006a8d8 movss xmm1, dword ptr [rbx+0Ch] ; +0xae, 0x18006a8de test rcx, rcx ; +0xb3, 0x18006a8e3 jz short loc_18006A910 ; +0xb6, 0x18006a8e6 mov rax, [rcx] ; +0xb8, 0x18006a8e8 call qword ptr [rax+50h] ; +0xbb, 0x18006a8eb mov rcx, [rdi+2A0h] ; +0xbe, 0x18006a8ee xorps xmm9, xmm9 ; +0xc5, 0x18006a8f5 mov eax, eax ; +0xc9, 0x18006a8f9 cvtsi2ss xmm9, rax ; +0xcb, 0x18006a8fb mov rax, [rcx] ; +0xd0, 0x18006a900 call qword ptr [rax+58h] ; +0xd3, 0x18006a903 mov eax, eax ; +0xd6, 0x18006a906 xorps xmm1, xmm1 ; +0xd8, 0x18006a908 cvtsi2ss xmm1, rax ; +0xdb, 0x18006a90b movss xmm6, [rsp+88h+var_54] ; +0xe0, 0x18006a910 movss xmm8, [rsp+88h+var_58] ; +0xe6, 0x18006a916 movss xmm7, [rsp+88h+var_50] ; +0xed, 0x18006a91d movss xmm0, [rsp+88h+var_4C] ; +0xf3, 0x18006a923 mov rcx, [rdi+1B8h] ; +0xf9, 0x18006a929 divss xmm6, xmm1 ; +0x100, 0x18006a930 divss xmm8, xmm9 ; +0x104, 0x18006a934 divss xmm7, xmm9 ; +0x109, 0x18006a939 movaps xmm9, xmm6 ; +0x10e, 0x18006a93e addss xmm7, xmm8 ; +0x112, 0x18006a942 divss xmm0, xmm1 ; +0x117, 0x18006a947 addss xmm6, xmm0 ; +0x11b, 0x18006a94b test rcx, rcx ; +0x11f, 0x18006a94f jz short loc_18006A976 ; +0x122, 0x18006a952 mov rcx, [rcx+148h] ; +0x124, 0x18006a954 mov rax, [rcx] ; +0x12b, 0x18006a95b call qword ptr [rax+68h] ; +0x12e, 0x18006a95e mov edx, [rdi+298h] ; +0x131, 0x18006a961 mov r9, rax ; +0x137, 0x18006a967 mov r8d, [rdi+1C0h] ; +0x13a, 0x18006a96a add edx, r8d ; +0x141, 0x18006a971 jmp short loc_18006A986 ; +0x144, 0x18006a974 mov r9, [rdi+318h] ; +0x146, 0x18006a976 xor r8d, r8d ; +0x14d, 0x18006a97d mov edx, [rdi+298h] ; +0x150, 0x18006a980 cmp r8d, edx ; +0x156, 0x18006a986 jnb short loc_18006A9E5 ; +0x159, 0x18006a989 mov eax, r8d ; +0x15b, 0x18006a98b lea rax, [rax+rax*2] ; +0x15e, 0x18006a98e shl rax, 5 ; +0x162, 0x18006a992 add rax, 2Ch ; ',' ; +0x166, 0x18006a996 add rax, r9 ; +0x16a, 0x18006a99a sub edx, r8d ; +0x16d, 0x18006a99d mov ecx, edx ; +0x170, 0x18006a9a0 nop dword ptr [rax+00h] ; +0x172, 0x18006a9a2 nop word ptr [rax+rax+00000000h] ; +0x176, 0x18006a9a6 movss dword ptr [rax-4], xmm8 ; +0x180, 0x18006a9b0 movss dword ptr [rax], xmm6 ; +0x186, 0x18006a9b6 movss dword ptr [rax+2Ch], xmm7 ; +0x18a, 0x18006a9ba movss dword ptr [rax+30h], xmm6 ; +0x18f, 0x18006a9bf movss dword ptr [rax-1Ch], xmm8 ; +0x194, 0x18006a9c4 movss dword ptr [rax-18h], xmm9 ; +0x19a, 0x18006a9ca movss dword ptr [rax+14h], xmm7 ; +0x1a0, 0x18006a9d0 movss dword ptr [rax+18h], xmm9 ; +0x1a5, 0x18006a9d5 lea rax, [rax+60h] ; +0x1ab, 0x18006a9db sub rcx, 1 ; +0x1af, 0x18006a9df jnz short loc_18006A9B0 ; +0x1b3, 0x18006a9e3 mov rbx, [rsp+88h+arg_0] ; +0x1b5, 0x18006a9e5 movaps xmm6, [rsp+88h+var_18] ; +0x1bd, 0x18006a9ed movaps xmm7, [rsp+88h+var_28] ; +0x1c2, 0x18006a9f2 movaps xmm8, [rsp+88h+var_38] ; +0x1c7, 0x18006a9f7 movaps xmm9, [rsp+88h+var_48] ; +0x1cd, 0x18006a9fd add rsp, 80h ; +0x1d3, 0x18006aa03 pop rdi ; +0x1da, 0x18006aa0a retn ; +0x1db, 0x18006aa0b