; ; cocos2d::CCParticleSystem::initParticle from 0x180065f60 to 0x180066bdc (3196 bytes) ; ; 4 xrefs: ; > cocos2d::CCParticleSystem::addParticle @ 0x1800659dd ; > cocos2d::CCParticleSystem::update @ 0x180069513 ; > @ 0x1801438a8 ; > @ 0x1801b3bc4 ; ; 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 rax, rsp ; +0x0, 0x180065f60 mov [rax+18h], rbx ; +0x3, 0x180065f63 mov [rax+20h], rsi ; +0x7, 0x180065f67 push rdi ; +0xb, 0x180065f6b sub rsp, 0D0h ; +0xc, 0x180065f6c imul r8, cs:qword_1801A8418, 343FDh ; +0x13, 0x180065f73 movsd xmm1, cs:qword_1800FFA30 ; +0x1e, 0x180065f7e xorps xmm0, xmm0 ; +0x26, 0x180065f86 movaps xmmword ptr [rax-18h], xmm6 ; +0x29, 0x180065f89 xorps xmm6, xmm6 ; +0x2d, 0x180065f8d movaps xmmword ptr [rax-28h], xmm7 ; +0x30, 0x180065f90 movss xmm7, cs:flt_1800E61A8 ; +0x34, 0x180065f94 movaps xmmword ptr [rax-38h], xmm8 ; +0x3c, 0x180065f9c mov rbx, rcx ; +0x41, 0x180065fa1 movaps xmmword ptr [rax-48h], xmm9 ; +0x44, 0x180065fa4 add r8, 269EC3h ; +0x49, 0x180065fa9 movaps xmmword ptr [rax-58h], xmm10 ; +0x50, 0x180065fb0 mov rdi, rdx ; +0x55, 0x180065fb5 movss xmm10, cs:dword_1800E630C ; +0x58, 0x180065fb8 xorps xmm8, xmm8 ; +0x61, 0x180065fc1 movaps xmmword ptr [rax-68h], xmm11 ; +0x65, 0x180065fc5 movaps xmmword ptr [rax-78h], xmm12 ; +0x6a, 0x180065fca mov rax, r8 ; +0x6f, 0x180065fcf shr rax, 10h ; +0x72, 0x180065fd2 and eax, 7FFFh ; +0x76, 0x180065fd6 movaps [rsp+0D8h+var_88], xmm13 ; +0x7b, 0x180065fdb movaps [rsp+0D8h+var_98], xmm14 ; +0x81, 0x180065fe1 movaps [rsp+0D8h+var_A8], xmm15 ; +0x87, 0x180065fe7 cvtsi2ss xmm0, rax ; +0x8d, 0x180065fed divss xmm0, xmm10 ; +0x92, 0x180065ff2 addss xmm0, xmm0 ; +0x97, 0x180065ff7 subss xmm0, xmm7 ; +0x9b, 0x180065ffb mulss xmm0, dword ptr [rcx+1ECh] ; +0x9f, 0x180065fff addss xmm0, dword ptr [rcx+1E8h] ; +0xa7, 0x180066007 imul rcx, r8, 343FDh ; +0xaf, 0x18006600f cvtps2pd xmm0, xmm0 ; +0xb6, 0x180066016 add rcx, 269EC3h; this ; +0xb9, 0x180066019 mov rax, rcx ; +0xc0, 0x180066020 maxsd xmm1, xmm0 ; +0xc3, 0x180066023 shr rax, 10h ; +0xc7, 0x180066027 and eax, 7FFFh ; +0xcb, 0x18006602b cvtpd2ps xmm0, xmm1 ; +0xd0, 0x180066030 movsd xmm1, cs:depth ; +0xd4, 0x180066034 cvtps2pd xmm2, xmm0 ; +0xdc, 0x18006603c movss dword ptr [rdx+40h], xmm0 ; +0xdf, 0x18006603f divsd xmm1, xmm2 ; +0xe4, 0x180066044 movaps xmm2, xmm7; float ; +0xe8, 0x180066048 cvtpd2ps xmm0, xmm1 ; +0xeb, 0x18006604b xorps xmm1, xmm1; float ; +0xef, 0x18006604f movss dword ptr [rdx+44h], xmm0 ; +0xf2, 0x180066052 xorps xmm0, xmm0 ; +0xf7, 0x180066057 cvtsi2ss xmm0, rax ; +0xfa, 0x18006605a divss xmm0, xmm10 ; +0xff, 0x18006605f addss xmm0, xmm0 ; +0x104, 0x180066064 subss xmm0, xmm7 ; +0x108, 0x180066068 mulss xmm0, dword ptr [rbx+1E0h] ; +0x10c, 0x18006606c addss xmm0, dword ptr [rbx+1D8h] ; +0x114, 0x180066074 movss dword ptr [rdx], xmm0 ; +0x11c, 0x18006607c xorps xmm0, xmm0 ; +0x120, 0x180066080 imul rdx, rcx, 343FDh ; +0x123, 0x180066083 add rdx, 269EC3h ; +0x12a, 0x18006608a mov rax, rdx ; +0x131, 0x180066091 shr rax, 10h ; +0x134, 0x180066094 and eax, 7FFFh ; +0x138, 0x180066098 cvtsi2ss xmm0, rax ; +0x13d, 0x18006609d imul rax, rdx, 343FDh ; +0x142, 0x1800660a2 divss xmm0, xmm10 ; +0x149, 0x1800660a9 add rax, 269EC3h ; +0x14e, 0x1800660ae mov cs:qword_1801A8418, rax ; +0x154, 0x1800660b4 shr rax, 10h ; +0x15b, 0x1800660bb and eax, 7FFFh ; +0x15f, 0x1800660bf cvtsi2ss xmm6, rax ; +0x164, 0x1800660c4 addss xmm0, xmm0 ; +0x169, 0x1800660c9 divss xmm6, xmm10 ; +0x16d, 0x1800660cd subss xmm0, xmm7 ; +0x172, 0x1800660d2 addss xmm6, xmm6 ; +0x176, 0x1800660d6 mulss xmm0, dword ptr [rbx+1E4h] ; +0x17a, 0x1800660da subss xmm6, xmm7 ; +0x182, 0x1800660e2 addss xmm0, dword ptr [rbx+1DCh] ; +0x186, 0x1800660e6 movss dword ptr [rdi+4], xmm0 ; +0x18e, 0x1800660ee mulss xmm6, dword ptr [rbx+254h] ; +0x193, 0x1800660f3 movaps xmm0, xmm6 ; +0x19b, 0x1800660fb addss xmm0, dword ptr [rbx+244h] ; +0x19e, 0x1800660fe call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x1a6, 0x180066106 movaps xmm15, xmm0 ; +0x1ab, 0x18006610b movss dword ptr [rsp+0D8h+var_B8], xmm15 ; +0x1af, 0x18006610f cmp byte ptr [rbx+22Dh], 0 ; +0x1b6, 0x180066116 movaps xmm2, xmm7; float ; +0x1bd, 0x18006611d movss xmm3, dword ptr [rbx+248h]; float ; +0x1c0, 0x180066120 xorps xmm1, xmm1; float ; +0x1c8, 0x180066128 jz short loc_180066153 ; +0x1cb, 0x18006612b addss xmm3, xmm6; float ; +0x1cd, 0x18006612d movaps xmm0, xmm3 ; +0x1d1, 0x180066131 call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x1d4, 0x180066134 addss xmm6, dword ptr [rbx+24Ch] ; +0x1d9, 0x180066139 movss dword ptr [rsp+0D8h+var_B8+4], xmm0 ; +0x1e1, 0x180066141 movaps xmm9, xmm0 ; +0x1e7, 0x180066147 movaps xmm0, xmm6 ; +0x1eb, 0x18006614b jmp loc_1800661EA ; +0x1ee, 0x18006614e imul rax, cs:qword_1801A8418, 343FDh ; +0x1f3, 0x180066153 xorps xmm0, xmm0 ; +0x1fe, 0x18006615e add rax, 269EC3h ; +0x201, 0x180066161 mov cs:qword_1801A8418, rax ; +0x207, 0x180066167 shr rax, 10h ; +0x20e, 0x18006616e and eax, 7FFFh ; +0x212, 0x180066172 cvtsi2ss xmm0, rax ; +0x217, 0x180066177 divss xmm0, xmm10 ; +0x21c, 0x18006617c addss xmm0, xmm0 ; +0x221, 0x180066181 subss xmm0, xmm7 ; +0x225, 0x180066185 mulss xmm0, dword ptr [rbx+258h] ; +0x229, 0x180066189 addss xmm0, xmm3 ; +0x231, 0x180066191 call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x235, 0x180066195 imul rax, cs:qword_1801A8418, 343FDh ; +0x23a, 0x18006619a movss dword ptr [rsp+0D8h+var_B8+4], xmm0 ; +0x245, 0x1800661a5 movaps xmm9, xmm0 ; +0x24b, 0x1800661ab xorps xmm0, xmm0 ; +0x24f, 0x1800661af add rax, 269EC3h ; +0x252, 0x1800661b2 mov cs:qword_1801A8418, rax ; +0x258, 0x1800661b8 shr rax, 10h ; +0x25f, 0x1800661bf and eax, 7FFFh ; +0x263, 0x1800661c3 cvtsi2ss xmm0, rax ; +0x268, 0x1800661c8 divss xmm0, xmm10 ; +0x26d, 0x1800661cd addss xmm0, xmm0 ; +0x272, 0x1800661d2 subss xmm0, xmm7 ; +0x276, 0x1800661d6 mulss xmm0, dword ptr [rbx+25Ch] ; +0x27a, 0x1800661da addss xmm0, dword ptr [rbx+24Ch] ; +0x282, 0x1800661e2 movaps xmm2, xmm7; float ; +0x28a, 0x1800661ea xorps xmm1, xmm1; float ; +0x28d, 0x1800661ed call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x290, 0x1800661f0 imul rax, cs:qword_1801A8418, 343FDh ; +0x295, 0x1800661f5 movss dword ptr [rsp+0D8h+var_B8+8], xmm0 ; +0x2a0, 0x180066200 movaps xmm11, xmm0 ; +0x2a6, 0x180066206 xorps xmm0, xmm0 ; +0x2aa, 0x18006620a movaps xmm2, xmm7; float ; +0x2ad, 0x18006620d xorps xmm1, xmm1; float ; +0x2b0, 0x180066210 add rax, 269EC3h ; +0x2b3, 0x180066213 mov cs:qword_1801A8418, rax ; +0x2b9, 0x180066219 shr rax, 10h ; +0x2c0, 0x180066220 and eax, 7FFFh ; +0x2c4, 0x180066224 cvtsi2ss xmm0, rax ; +0x2c9, 0x180066229 divss xmm0, xmm10 ; +0x2ce, 0x18006622e addss xmm0, xmm0 ; +0x2d3, 0x180066233 subss xmm0, xmm7 ; +0x2d7, 0x180066237 mulss xmm0, dword ptr [rbx+260h] ; +0x2db, 0x18006623b addss xmm0, dword ptr [rbx+250h] ; +0x2e3, 0x180066243 call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x2eb, 0x18006624b imul rax, cs:qword_1801A8418, 343FDh ; +0x2f0, 0x180066250 xorps xmm6, xmm6 ; +0x2fb, 0x18006625b movaps xmm14, xmm0 ; +0x2fe, 0x18006625e movaps xmm2, xmm7; float ; +0x302, 0x180066262 movss dword ptr [rsp+0D8h+var_B8+0Ch], xmm14 ; +0x305, 0x180066265 xorps xmm1, xmm1; float ; +0x30c, 0x18006626c add rax, 269EC3h ; +0x30f, 0x18006626f mov cs:qword_1801A8418, rax ; +0x315, 0x180066275 shr rax, 10h ; +0x31c, 0x18006627c and eax, 7FFFh ; +0x320, 0x180066280 cvtsi2ss xmm6, rax ; +0x325, 0x180066285 divss xmm6, xmm10 ; +0x32a, 0x18006628a addss xmm6, xmm6 ; +0x32f, 0x18006628f subss xmm6, xmm7 ; +0x333, 0x180066293 mulss xmm6, dword ptr [rbx+274h] ; +0x337, 0x180066297 movaps xmm0, xmm6 ; +0x33f, 0x18006629f addss xmm0, dword ptr [rbx+264h] ; +0x342, 0x1800662a2 call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x34a, 0x1800662aa cmp byte ptr [rbx+22Eh], 0 ; +0x34f, 0x1800662af movaps xmm13, xmm0 ; +0x356, 0x1800662b6 movss xmm3, dword ptr [rbx+268h]; float ; +0x35a, 0x1800662ba movaps xmm2, xmm7; float ; +0x362, 0x1800662c2 xorps xmm1, xmm1; float ; +0x365, 0x1800662c5 jz short loc_1800662EA ; +0x368, 0x1800662c8 addss xmm3, xmm6; float ; +0x36a, 0x1800662ca movaps xmm0, xmm3 ; +0x36e, 0x1800662ce call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x371, 0x1800662d1 addss xmm6, dword ptr [rbx+26Ch] ; +0x376, 0x1800662d6 movaps xmm12, xmm0 ; +0x37e, 0x1800662de movaps xmm0, xmm6 ; +0x382, 0x1800662e2 jmp loc_18006637B ; +0x385, 0x1800662e5 imul rax, cs:qword_1801A8418, 343FDh ; +0x38a, 0x1800662ea xorps xmm0, xmm0 ; +0x395, 0x1800662f5 add rax, 269EC3h ; +0x398, 0x1800662f8 mov cs:qword_1801A8418, rax ; +0x39e, 0x1800662fe shr rax, 10h ; +0x3a5, 0x180066305 and eax, 7FFFh ; +0x3a9, 0x180066309 cvtsi2ss xmm0, rax ; +0x3ae, 0x18006630e divss xmm0, xmm10 ; +0x3b3, 0x180066313 addss xmm0, xmm0 ; +0x3b8, 0x180066318 subss xmm0, xmm7 ; +0x3bc, 0x18006631c mulss xmm0, dword ptr [rbx+278h] ; +0x3c0, 0x180066320 addss xmm0, xmm3 ; +0x3c8, 0x180066328 call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x3cc, 0x18006632c imul rax, cs:qword_1801A8418, 343FDh ; +0x3d1, 0x180066331 movaps xmm12, xmm0 ; +0x3dc, 0x18006633c xorps xmm0, xmm0 ; +0x3e0, 0x180066340 add rax, 269EC3h ; +0x3e3, 0x180066343 mov cs:qword_1801A8418, rax ; +0x3e9, 0x180066349 shr rax, 10h ; +0x3f0, 0x180066350 and eax, 7FFFh ; +0x3f4, 0x180066354 cvtsi2ss xmm0, rax ; +0x3f9, 0x180066359 divss xmm0, xmm10 ; +0x3fe, 0x18006635e addss xmm0, xmm0 ; +0x403, 0x180066363 subss xmm0, xmm7 ; +0x407, 0x180066367 mulss xmm0, dword ptr [rbx+27Ch] ; +0x40b, 0x18006636b addss xmm0, dword ptr [rbx+26Ch] ; +0x413, 0x180066373 movaps xmm2, xmm7; float ; +0x41b, 0x18006637b xorps xmm1, xmm1; float ; +0x41e, 0x18006637e call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x421, 0x180066381 imul rax, cs:qword_1801A8418, 343FDh ; +0x426, 0x180066386 movaps xmm6, xmm0 ; +0x431, 0x180066391 movaps xmm2, xmm7; float ; +0x434, 0x180066394 xorps xmm0, xmm0 ; +0x437, 0x180066397 xorps xmm1, xmm1; float ; +0x43a, 0x18006639a add rax, 269EC3h ; +0x43d, 0x18006639d mov cs:qword_1801A8418, rax ; +0x443, 0x1800663a3 shr rax, 10h ; +0x44a, 0x1800663aa and eax, 7FFFh ; +0x44e, 0x1800663ae cvtsi2ss xmm0, rax ; +0x453, 0x1800663b3 divss xmm0, xmm10 ; +0x458, 0x1800663b8 addss xmm0, xmm0 ; +0x45d, 0x1800663bd subss xmm0, xmm7 ; +0x461, 0x1800663c1 mulss xmm0, dword ptr [rbx+280h] ; +0x465, 0x1800663c5 addss xmm0, dword ptr [rbx+270h] ; +0x46d, 0x1800663cd call ?clampf@cocos2d@@YAMMMM@Z; cocos2d::clampf(float,float,float) ; +0x475, 0x1800663d5 movss xmm4, dword ptr [rdi+40h] ; +0x47a, 0x1800663da subss xmm0, xmm14 ; +0x47f, 0x1800663df imul rcx, cs:qword_1801A8418, 343FDh ; +0x484, 0x1800663e4 xorps xmm1, xmm1 ; +0x48f, 0x1800663ef subss xmm13, xmm15 ; +0x492, 0x1800663f2 divss xmm0, xmm4 ; +0x497, 0x1800663f7 add rcx, 269EC3h ; +0x49b, 0x1800663fb mov rax, rcx ; +0x4a2, 0x180066402 shr rax, 10h ; +0x4a5, 0x180066405 and eax, 7FFFh ; +0x4a9, 0x180066409 subss xmm12, xmm9 ; +0x4ae, 0x18006640e cvtsi2ss xmm1, rax ; +0x4b3, 0x180066413 subss xmm6, xmm11 ; +0x4b8, 0x180066418 divss xmm13, xmm4 ; +0x4bd, 0x18006641d divss xmm1, xmm10 ; +0x4c2, 0x180066422 movss dword ptr [rdi+20h], xmm13 ; +0x4c7, 0x180066427 addss xmm1, xmm1 ; +0x4cd, 0x18006642d divss xmm12, xmm4 ; +0x4d1, 0x180066431 subss xmm1, xmm7 ; +0x4d6, 0x180066436 movss dword ptr [rdi+24h], xmm12 ; +0x4da, 0x18006643a divss xmm6, xmm4 ; +0x4e0, 0x180066440 movss dword ptr [rdi+28h], xmm6 ; +0x4e4, 0x180066444 movss dword ptr [rdi+2Ch], xmm0 ; +0x4e9, 0x180066449 movups xmm0, [rsp+0D8h+var_B8] ; +0x4ee, 0x18006644e mov dword ptr [rdi+4Ch], 0 ; +0x4f3, 0x180066453 movups xmmword ptr [rdi+10h], xmm0 ; +0x4fa, 0x18006645a mulss xmm1, dword ptr [rbx+1FCh] ; +0x4fe, 0x18006645e addss xmm1, dword ptr [rbx+1F8h] ; +0x506, 0x180066466 minss xmm1, xmm4 ; +0x50e, 0x18006646e comiss xmm8, xmm1 ; +0x512, 0x180066472 jbe short loc_18006647B ; +0x516, 0x180066476 xorps xmm1, xmm1 ; +0x518, 0x180066478 movss dword ptr [rdi+50h], xmm1 ; +0x51b, 0x18006647b movaps xmm0, xmm4 ; +0x520, 0x180066480 subss xmm0, xmm1 ; +0x523, 0x180066483 xorps xmm1, xmm1 ; +0x527, 0x180066487 imul rcx, 343FDh ; +0x52a, 0x18006648a add rcx, 269EC3h ; +0x531, 0x180066491 mov rax, rcx ; +0x538, 0x180066498 shr rax, 10h ; +0x53b, 0x18006649b and eax, 7FFFh ; +0x53f, 0x18006649f cvtsi2ss xmm1, rax ; +0x544, 0x1800664a4 divss xmm1, xmm10 ; +0x549, 0x1800664a9 addss xmm1, xmm1 ; +0x54e, 0x1800664ae subss xmm1, xmm7 ; +0x552, 0x1800664b2 mulss xmm1, dword ptr [rbx+204h] ; +0x556, 0x1800664b6 addss xmm1, dword ptr [rbx+200h] ; +0x55e, 0x1800664be minss xmm1, xmm0 ; +0x566, 0x1800664c6 comiss xmm8, xmm1 ; +0x56a, 0x1800664ca jbe short loc_1800664D3 ; +0x56e, 0x1800664ce xorps xmm1, xmm1 ; +0x570, 0x1800664d0 xorps xmm0, xmm0 ; +0x573, 0x1800664d3 movss dword ptr [rdi+54h], xmm1 ; +0x576, 0x1800664d6 imul rcx, 343FDh ; +0x57b, 0x1800664db xorps xmm1, xmm1 ; +0x582, 0x1800664e2 xorps xmm3, xmm3 ; +0x585, 0x1800664e5 xorps xmm2, xmm2 ; +0x588, 0x1800664e8 add rcx, 269EC3h ; +0x58b, 0x1800664eb mov rax, rcx ; +0x592, 0x1800664f2 shr rax, 10h ; +0x595, 0x1800664f5 and eax, 7FFFh ; +0x599, 0x1800664f9 imul rcx, 343FDh ; +0x59e, 0x1800664fe cvtsi2ss xmm0, rax ; +0x5a5, 0x180066505 add rcx, 269EC3h ; +0x5aa, 0x18006650a imul rdx, rcx, 343FDh ; +0x5b1, 0x180066511 divss xmm0, xmm10 ; +0x5b8, 0x180066518 mov rax, rcx ; +0x5bd, 0x18006651d shr rax, 10h ; +0x5c0, 0x180066520 add rdx, 269EC3h ; +0x5c4, 0x180066524 and eax, 7FFFh ; +0x5cb, 0x18006652b imul rcx, rdx, 343FDh ; +0x5d0, 0x180066530 addss xmm0, xmm0 ; +0x5d7, 0x180066537 subss xmm0, xmm7 ; +0x5db, 0x18006653b add rcx, 269EC3h ; +0x5df, 0x18006653f mulss xmm0, dword ptr [rbx+238h] ; +0x5e6, 0x180066546 addss xmm0, dword ptr [rbx+234h] ; +0x5ee, 0x18006654e maxss xmm2, xmm0 ; +0x5f6, 0x180066556 xorps xmm0, xmm0 ; +0x5fa, 0x18006655a cvtsi2ss xmm0, rax ; +0x5fd, 0x18006655d mov rax, rdx ; +0x602, 0x180066562 shr rax, 10h ; +0x605, 0x180066565 and eax, 7FFFh ; +0x609, 0x180066569 movss dword ptr [rdi+30h], xmm2 ; +0x60e, 0x18006656e cvtsi2ss xmm1, rax ; +0x613, 0x180066573 mov rax, rcx ; +0x618, 0x180066578 shr rax, 10h ; +0x61b, 0x18006657b and eax, 7FFFh ; +0x61f, 0x18006657f divss xmm0, xmm10 ; +0x624, 0x180066584 cvtsi2ss xmm3, rax ; +0x629, 0x180066589 divss xmm1, xmm10 ; +0x62e, 0x18006658e divss xmm3, xmm10 ; +0x633, 0x180066593 addss xmm0, xmm0 ; +0x638, 0x180066598 addss xmm1, xmm1 ; +0x63c, 0x18006659c addss xmm3, xmm3 ; +0x640, 0x1800665a0 subss xmm0, xmm7 ; +0x644, 0x1800665a4 subss xmm1, xmm7 ; +0x648, 0x1800665a8 subss xmm3, xmm7 ; +0x64c, 0x1800665ac mulss xmm0, dword ptr [rbx+20Ch] ; +0x650, 0x1800665b0 addss xmm0, dword ptr [rbx+208h] ; +0x658, 0x1800665b8 ucomiss xmm0, xmm8 ; +0x660, 0x1800665c0 movss dword ptr [rdi+60h], xmm0 ; +0x664, 0x1800665c4 mulss xmm1, dword ptr [rbx+214h] ; +0x669, 0x1800665c9 addss xmm1, dword ptr [rbx+210h] ; +0x671, 0x1800665d1 movss dword ptr [rdi+64h], xmm1 ; +0x679, 0x1800665d9 mulss xmm3, dword ptr [rbx+21Ch] ; +0x67e, 0x1800665de addss xmm3, dword ptr [rbx+218h] ; +0x686, 0x1800665e6 movss dword ptr [rdi+68h], xmm3 ; +0x68e, 0x1800665ee jp short loc_18006660B ; +0x693, 0x1800665f3 jnz short loc_18006660B ; +0x695, 0x1800665f5 ucomiss xmm1, xmm8 ; +0x697, 0x1800665f7 jp short loc_18006660B ; +0x69b, 0x1800665fb jnz short loc_18006660B ; +0x69d, 0x1800665fd ucomiss xmm3, xmm8 ; +0x69f, 0x1800665ff jp short loc_18006660B ; +0x6a3, 0x180066603 jnz short loc_18006660B ; +0x6a5, 0x180066605 xor al, al ; +0x6a7, 0x180066607 jmp short loc_18006660D ; +0x6a9, 0x180066609 mov al, 1 ; +0x6ab, 0x18006660b mov [rdi+5Ch], al ; +0x6ad, 0x18006660d xorps xmm1, xmm1 ; +0x6b0, 0x180066610 imul rcx, 343FDh ; +0x6b3, 0x180066613 add rcx, 269EC3h ; +0x6ba, 0x18006661a mov rax, rcx ; +0x6c1, 0x180066621 shr rax, 10h ; +0x6c4, 0x180066624 and eax, 7FFFh ; +0x6c8, 0x180066628 cmp byte ptr [rbx+229h], 0 ; +0x6cd, 0x18006662d cvtsi2ss xmm1, rax ; +0x6d4, 0x180066634 divss xmm1, xmm10 ; +0x6d9, 0x180066639 addss xmm1, xmm1 ; +0x6de, 0x18006663e subss xmm1, xmm7 ; +0x6e2, 0x180066642 mulss xmm1, dword ptr [rbx+240h] ; +0x6e6, 0x180066646 addss xmm1, dword ptr [rbx+23Ch] ; +0x6ee, 0x18006664e jnz short loc_180066665 ; +0x6f6, 0x180066656 xorps xmm0, xmm0 ; +0x6f8, 0x180066658 maxss xmm0, xmm1 ; +0x6fb, 0x18006665b subss xmm0, xmm2 ; +0x6ff, 0x18006665f jmp short loc_18006667F ; +0x703, 0x180066663 movaps xmm0, xmm1 ; +0x705, 0x180066665 addss xmm0, xmm2 ; +0x708, 0x180066668 comiss xmm8, xmm0 ; +0x70c, 0x18006666c jbe short loc_18006667C ; +0x710, 0x180066670 movaps xmm1, xmm2 ; +0x712, 0x180066672 xorps xmm1, cs:xmmword_1800E61C0 ; +0x715, 0x180066675 movaps xmm0, xmm1 ; +0x71c, 0x18006667c divss xmm0, xmm4 ; +0x71f, 0x18006667f imul r8, rcx, 343FDh ; +0x723, 0x180066683 movss dword ptr [rdi+34h], xmm0 ; +0x72a, 0x18006668a xorps xmm0, xmm0 ; +0x72f, 0x18006668f add r8, 269EC3h ; +0x732, 0x180066692 mov rax, r8 ; +0x739, 0x180066699 mov cs:qword_1801A8418, r8 ; +0x73c, 0x18006669c shr rax, 10h ; +0x743, 0x1800666a3 and eax, 7FFFh ; +0x747, 0x1800666a7 cvtsi2ss xmm0, rax ; +0x74c, 0x1800666ac divss xmm0, xmm10 ; +0x751, 0x1800666b1 addss xmm0, xmm0 ; +0x756, 0x1800666b6 subss xmm0, xmm7 ; +0x75a, 0x1800666ba mulss xmm0, dword ptr [rbx+288h] ; +0x75e, 0x1800666be addss xmm0, dword ptr [rbx+284h] ; +0x766, 0x1800666c6 cvttss2si ecx, xmm0 ; +0x76e, 0x1800666ce lea eax, [rcx+168h] ; +0x772, 0x1800666d2 cmp eax, 2D0h ; +0x778, 0x1800666d8 ja short loc_1800666E3 ; +0x77d, 0x1800666dd mov edx, ecx ; +0x77f, 0x1800666df jmp short loc_180066700 ; +0x781, 0x1800666e1 mov eax, 0B60B60B7h ; +0x783, 0x1800666e3 imul ecx ; +0x788, 0x1800666e8 add edx, ecx ; +0x78a, 0x1800666ea sar edx, 8 ; +0x78c, 0x1800666ec mov eax, edx ; +0x78f, 0x1800666ef shr eax, 1Fh ; +0x791, 0x1800666f1 add edx, eax ; +0x794, 0x1800666f4 imul eax, edx, 168h ; +0x796, 0x1800666f6 mov edx, ecx ; +0x79c, 0x1800666fc sub edx, eax ; +0x79e, 0x1800666fe movd xmm0, edx ; +0x7a0, 0x180066700 cvtdq2ps xmm0, xmm0 ; +0x7a4, 0x180066704 comiss xmm8, xmm0 ; +0x7a7, 0x180066707 movss dword ptr [rdi+38h], xmm0 ; +0x7ab, 0x18006670b jbe short loc_18006671F ; +0x7b0, 0x180066710 addss xmm0, cs:dword_1800EA034 ; +0x7b2, 0x180066712 movss dword ptr [rdi+38h], xmm0 ; +0x7ba, 0x18006671a cmp byte ptr [rbx+22Bh], 0 ; +0x7bf, 0x18006671f movss xmm9, cs:dword_1800F505C ; +0x7c6, 0x180066726 jz short loc_18006675B ; +0x7cf, 0x18006672f movss xmm1, cs:dword_1800F5060 ; +0x7d1, 0x180066731 comiss xmm0, xmm1 ; +0x7d9, 0x180066739 jbe short loc_18006674C ; +0x7dc, 0x18006673c subss xmm0, xmm1 ; +0x7de, 0x18006673e xorps xmm1, xmm1 ; +0x7e2, 0x180066742 movss dword ptr [rdi+58h], xmm0 ; +0x7e5, 0x180066745 jmp short loc_1800667BE ; +0x7ea, 0x18006674a addss xmm0, xmm9 ; +0x7ec, 0x18006674c xorps xmm1, xmm1 ; +0x7f1, 0x180066751 movss dword ptr [rdi+58h], xmm0 ; +0x7f4, 0x180066754 jmp short loc_1800667BE ; +0x7f9, 0x180066759 xorps xmm0, xmm0 ; +0x7fb, 0x18006675b mov dword ptr [rdi+58h], 0 ; +0x7fe, 0x18006675e imul rax, r8, 343FDh ; +0x805, 0x180066765 add rax, 269EC3h ; +0x80c, 0x18006676c mov cs:qword_1801A8418, rax ; +0x812, 0x180066772 shr rax, 10h ; +0x819, 0x180066779 and eax, 7FFFh ; +0x81d, 0x18006677d cmp byte ptr [rbx+228h], 0 ; +0x822, 0x180066782 cvtsi2ss xmm0, rax ; +0x829, 0x180066789 divss xmm0, xmm10 ; +0x82e, 0x18006678e addss xmm0, xmm0 ; +0x833, 0x180066793 subss xmm0, xmm7 ; +0x837, 0x180066797 mulss xmm0, dword ptr [rbx+290h] ; +0x83b, 0x18006679b addss xmm0, dword ptr [rbx+28Ch] ; +0x843, 0x1800667a3 cvttss2si eax, xmm0 ; +0x84b, 0x1800667ab jnz short loc_1800667B3 ; +0x84f, 0x1800667af sub eax, ecx ; +0x851, 0x1800667b1 movd xmm1, eax ; +0x853, 0x1800667b3 cvtdq2ps xmm1, xmm1 ; +0x857, 0x1800667b7 divss xmm1, xmm4 ; +0x85a, 0x1800667ba movss dword ptr [rdi+3Ch], xmm1 ; +0x85e, 0x1800667be mov eax, [rbx+2B4h] ; +0x863, 0x1800667c3 test eax, eax ; +0x869, 0x1800667c9 jnz short loc_18006680A ; +0x86b, 0x1800667cb cmp [rbx+2C0h], al ; +0x86d, 0x1800667cd jz short loc_180066801 ; +0x873, 0x1800667d3 lea r8, dword_1801A8410 ; +0x875, 0x1800667d5 mov [rbx+2C0h], al ; +0x87c, 0x1800667dc lea rdx, [rsp+0D8h+arg_0] ; +0x882, 0x1800667e2 mov rcx, rbx ; +0x88a, 0x1800667ea call ?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x88d, 0x1800667ed mov rdx, rax ; +0x892, 0x1800667f2 lea rcx, [rbx+2C4h] ; +0x895, 0x1800667f5 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x89c, 0x1800667fc lea rdx, [rbx+2C4h] ; +0x8a1, 0x180066801 jmp short loc_180066813 ; +0x8a8, 0x180066808 cmp eax, 1 ; +0x8aa, 0x18006680a jnz short loc_18006681C ; +0x8ad, 0x18006680d lea rdx, [rbx+4Ch] ; +0x8af, 0x18006680f lea rcx, [rdi+8] ; +0x8b3, 0x180066813 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x8b7, 0x180066817 imul rcx, cs:qword_1801A8418, 343FDh ; +0x8bc, 0x18006681c xorps xmm0, xmm0 ; +0x8c7, 0x180066827 add rcx, 269EC3h ; +0x8ca, 0x18006682a mov rax, rcx ; +0x8d1, 0x180066831 mov cs:qword_1801A8418, rcx ; +0x8d4, 0x180066834 shr rax, 10h ; +0x8db, 0x18006683b and eax, 7FFFh ; +0x8df, 0x18006683f cmp dword ptr [rbx+2BCh], 0 ; +0x8e4, 0x180066844 cvtsi2ss xmm0, rax ; +0x8eb, 0x18006684b divss xmm0, xmm10 ; +0x8f0, 0x180066850 addss xmm0, xmm0 ; +0x8f5, 0x180066855 subss xmm0, xmm7 ; +0x8f9, 0x180066859 mulss xmm0, dword ptr [rbx+1F4h] ; +0x8fd, 0x18006685d addss xmm0, dword ptr [rbx+1F0h] ; +0x905, 0x180066865 cvttss2si esi, xmm0 ; +0x90d, 0x18006686d jnz loc_1800669DA ; +0x911, 0x180066871 mov ecx, esi ; +0x917, 0x180066877 call sub_180003760 ; +0x919, 0x180066879 lea ecx, [rsi+5Ah] ; +0x91e, 0x18006687e movaps xmm6, xmm0 ; +0x921, 0x180066881 call sub_180003760 ; +0x924, 0x180066884 movaps xmm1, xmm0 ; +0x929, 0x180066889 lea rcx, [rsp+0D8h+arg_0] ; +0x92c, 0x18006688c movaps xmm2, xmm6 ; +0x934, 0x180066894 call kmVec2Fill ; +0x937, 0x180066897 imul rax, cs:qword_1801A8418, 343FDh ; +0x93c, 0x18006689c xorps xmm2, xmm2 ; +0x947, 0x1800668a7 lea rdx, [rsp+0D8h+arg_8] ; +0x94a, 0x1800668aa add rax, 269EC3h ; +0x952, 0x1800668b2 lea rcx, [rsp+0D8h+arg_0] ; +0x958, 0x1800668b8 mov cs:qword_1801A8418, rax ; +0x960, 0x1800668c0 shr rax, 10h ; +0x967, 0x1800668c7 and eax, 7FFFh ; +0x96b, 0x1800668cb cvtsi2ss xmm2, rax ; +0x970, 0x1800668d0 divss xmm2, xmm10 ; +0x975, 0x1800668d5 addss xmm2, xmm2 ; +0x97a, 0x1800668da subss xmm2, xmm7 ; +0x97e, 0x1800668de mulss xmm2, dword ptr [rbx+178h] ; +0x982, 0x1800668e2 addss xmm2, dword ptr [rbx+174h] ; +0x98a, 0x1800668ea call ??DCCSize@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCSize::operator*(float) ; +0x992, 0x1800668f2 lea rdx, [rsp+0D8h+arg_8] ; +0x997, 0x1800668f7 lea rcx, [rdi+6Ch] ; +0x99f, 0x1800668ff call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x9a3, 0x180066903 imul rcx, cs:qword_1801A8418, 343FDh ; +0x9a8, 0x180066908 xorps xmm0, xmm0 ; +0x9b3, 0x180066913 add rcx, 269EC3h ; +0x9b6, 0x180066916 mov rax, rcx ; +0x9bd, 0x18006691d shr rax, 10h ; +0x9c0, 0x180066920 and eax, 7FFFh ; +0x9c4, 0x180066924 cvtsi2ss xmm0, rax ; +0x9c9, 0x180066929 imul rax, rcx, 343FDh ; +0x9ce, 0x18006692e divss xmm0, xmm10 ; +0x9d5, 0x180066935 add rax, 269EC3h ; +0x9da, 0x18006693a mov cs:qword_1801A8418, rax ; +0x9e0, 0x180066940 shr rax, 10h ; +0x9e7, 0x180066947 and eax, 7FFFh ; +0x9eb, 0x18006694b addss xmm0, xmm0 ; +0x9f0, 0x180066950 subss xmm0, xmm7 ; +0x9f4, 0x180066954 mulss xmm0, dword ptr [rbx+188h] ; +0x9f8, 0x180066958 addss xmm0, dword ptr [rbx+184h] ; +0xa00, 0x180066960 movss dword ptr [rdi+74h], xmm0 ; +0xa08, 0x180066968 xorps xmm0, xmm0 ; +0xa0d, 0x18006696d cvtsi2ss xmm0, rax ; +0xa10, 0x180066970 divss xmm0, xmm10 ; +0xa15, 0x180066975 addss xmm0, xmm0 ; +0xa1a, 0x18006697a subss xmm0, xmm7 ; +0xa1e, 0x18006697e mulss xmm0, dword ptr [rbx+180h] ; +0xa22, 0x180066982 addss xmm0, dword ptr [rbx+17Ch] ; +0xa2a, 0x18006698a movss dword ptr [rdi+78h], xmm0 ; +0xa32, 0x180066992 cmp byte ptr [rbx+18Ch], 0 ; +0xa37, 0x180066997 jnz short loc_1800669AD ; +0xa3e, 0x18006699e cmp byte ptr [rbx+22Bh], 0 ; +0xa40, 0x1800669a0 jz loc_180066B93 ; +0xa47, 0x1800669a7 movss xmm1, dword ptr [rdi+6Ch] ; +0xa4d, 0x1800669ad movss xmm0, dword ptr [rdi+70h] ; +0xa52, 0x1800669b2 call sub_1800658E0 ; +0xa57, 0x1800669b7 mulss xmm0, cs:dword_1800E7674 ; +0xa5c, 0x1800669bc subss xmm9, xmm0 ; +0xa64, 0x1800669c4 addss xmm9, dword ptr [rdi+38h] ; +0xa69, 0x1800669c9 movss dword ptr [rdi+38h], xmm9 ; +0xa6f, 0x1800669cf jmp loc_180066B93 ; +0xa75, 0x1800669d5 movss xmm2, dword ptr [rdi+40h] ; +0xa7a, 0x1800669da xorps xmm1, xmm1 ; +0xa7f, 0x1800669df xorps xmm0, xmm0 ; +0xa82, 0x1800669e2 imul rcx, 343FDh ; +0xa85, 0x1800669e5 add rcx, 269EC3h ; +0xa8c, 0x1800669ec imul rdx, rcx, 343FDh ; +0xa93, 0x1800669f3 mov rax, rcx ; +0xa9a, 0x1800669fa shr rax, 10h ; +0xa9d, 0x1800669fd add rdx, 269EC3h ; +0xaa1, 0x180066a01 and eax, 7FFFh ; +0xaa8, 0x180066a08 cvtsi2ss xmm1, rax ; +0xaad, 0x180066a0d mov rax, rdx ; +0xab2, 0x180066a12 shr rax, 10h ; +0xab5, 0x180066a15 and eax, 7FFFh ; +0xab9, 0x180066a19 cvtsi2ss xmm0, rax ; +0xabe, 0x180066a1e divss xmm1, xmm10 ; +0xac3, 0x180066a23 divss xmm0, xmm10 ; +0xac8, 0x180066a28 addss xmm1, xmm1 ; +0xacd, 0x180066a2d addss xmm0, xmm0 ; +0xad1, 0x180066a31 subss xmm1, xmm7 ; +0xad5, 0x180066a35 subss xmm0, xmm7 ; +0xad9, 0x180066a39 mulss xmm1, dword ptr [rbx+194h] ; +0xadd, 0x180066a3d mulss xmm0, dword ptr [rbx+19Ch] ; +0xae5, 0x180066a45 addss xmm1, dword ptr [rbx+190h] ; +0xaed, 0x180066a4d addss xmm0, dword ptr [rbx+198h] ; +0xaf5, 0x180066a55 movss dword ptr [rdi+84h], xmm1 ; +0xafd, 0x180066a5d cmp byte ptr [rbx+22Ah], 0 ; +0xb05, 0x180066a65 jnz short loc_180066A72 ; +0xb0c, 0x180066a6c subss xmm0, xmm1 ; +0xb0e, 0x180066a6e xorps xmm1, xmm1 ; +0xb12, 0x180066a72 movd xmm6, esi ; +0xb15, 0x180066a75 imul rax, rdx, 343FDh ; +0xb19, 0x180066a79 divss xmm0, xmm2 ; +0xb20, 0x180066a80 add rax, 269EC3h ; +0xb24, 0x180066a84 cvtdq2ps xmm6, xmm6 ; +0xb2a, 0x180066a8a movss dword ptr [rdi+88h], xmm0 ; +0xb2d, 0x180066a8d mulss xmm6, cs:dword_1800E61A4 ; +0xb35, 0x180066a95 mov cs:qword_1801A8418, rax ; +0xb3d, 0x180066a9d shr rax, 10h ; +0xb44, 0x180066aa4 and eax, 7FFFh ; +0xb48, 0x180066aa8 movss dword ptr [rdi+7Ch], xmm6 ; +0xb4d, 0x180066aad cvtsi2ss xmm1, rax ; +0xb52, 0x180066ab2 divss xmm1, xmm10 ; +0xb57, 0x180066ab7 addss xmm1, xmm1 ; +0xb5c, 0x180066abc subss xmm1, xmm7 ; +0xb60, 0x180066ac0 mulss xmm1, dword ptr [rbx+1A4h] ; +0xb64, 0x180066ac4 addss xmm1, dword ptr [rbx+1A0h] ; +0xb6c, 0x180066acc mulss xmm1, cs:dword_1800E61A4 ; +0xb74, 0x180066ad4 ucomiss xmm1, xmm8 ; +0xb7c, 0x180066adc movss dword ptr [rdi+80h], xmm1 ; +0xb80, 0x180066ae0 jp short loc_180066B0C ; +0xb88, 0x180066ae8 jnz short loc_180066B0C ; +0xb8a, 0x180066aea movaps xmm0, xmm6; X ; +0xb8c, 0x180066aec call cosf ; +0xb8f, 0x180066aef movss dword ptr [rdi+8Ch], xmm0 ; +0xb94, 0x180066af4 movaps xmm0, xmm6; X ; +0xb9c, 0x180066afc call sinf ; +0xb9f, 0x180066aff movss dword ptr [rdi+90h], xmm0 ; +0xba4, 0x180066b04 cmp byte ptr [rbx+18Ch], 0 ; +0xbac, 0x180066b0c jnz short loc_180066B1E ; +0xbb3, 0x180066b13 cmp byte ptr [rbx+22Bh], 0 ; +0xbb5, 0x180066b15 jz short loc_180066B93 ; +0xbbc, 0x180066b1c mov ecx, esi ; +0xbbe, 0x180066b1e call sub_180003760 ; +0xbc0, 0x180066b20 lea ecx, [rsi+5Ah] ; +0xbc5, 0x180066b25 movaps xmm6, xmm0 ; +0xbc8, 0x180066b28 call sub_180003760 ; +0xbcb, 0x180066b2b movaps xmm1, xmm0 ; +0xbd0, 0x180066b30 lea rcx, [rsp+0D8h+arg_0] ; +0xbd3, 0x180066b33 movaps xmm2, xmm6 ; +0xbdb, 0x180066b3b call kmVec2Fill ; +0xbde, 0x180066b3e movss xmm1, [rsp+0D8h+arg_0] ; +0xbe3, 0x180066b43 movss xmm0, [rsp+0D8h+arg_4] ; +0xbec, 0x180066b4c call sub_1800658E0 ; +0xbf5, 0x180066b55 mulss xmm0, cs:dword_1800E7674 ; +0xbfa, 0x180066b5a subss xmm9, xmm0 ; +0xc02, 0x180066b62 addss xmm9, dword ptr [rdi+38h] ; +0xc07, 0x180066b67 movss dword ptr [rdi+38h], xmm9 ; +0xc0d, 0x180066b6d cmp byte ptr [rbx+22Bh], 0 ; +0xc13, 0x180066b73 jz short loc_180066B93 ; +0xc1a, 0x180066b7a movss xmm0, dword ptr [rdi+80h] ; +0xc1c, 0x180066b7c ucomiss xmm0, xmm8 ; +0xc24, 0x180066b84 jp short loc_180066B93 ; +0xc28, 0x180066b88 jnz short loc_180066B93 ; +0xc2a, 0x180066b8a mov dword ptr [rdi+58h], 0 ; +0xc2c, 0x180066b8c movaps xmm14, [rsp+0D8h+var_98] ; +0xc33, 0x180066b93 lea r11, [rsp+0D8h+var_8] ; +0xc39, 0x180066b99 mov rbx, [r11+20h] ; +0xc41, 0x180066ba1 mov rsi, [r11+28h] ; +0xc45, 0x180066ba5 movaps xmm6, xmmword ptr [r11-10h] ; +0xc49, 0x180066ba9 movaps xmm7, xmmword ptr [r11-20h] ; +0xc4e, 0x180066bae movaps xmm8, xmmword ptr [r11-30h] ; +0xc53, 0x180066bb3 movaps xmm9, xmmword ptr [r11-40h] ; +0xc58, 0x180066bb8 movaps xmm10, xmmword ptr [r11-50h] ; +0xc5d, 0x180066bbd movaps xmm11, xmmword ptr [r11-60h] ; +0xc62, 0x180066bc2 movaps xmm12, xmmword ptr [r11-70h] ; +0xc67, 0x180066bc7 movaps xmm13, xmmword ptr [r11-80h] ; +0xc6c, 0x180066bcc movaps xmm15, [rsp+0D8h+var_A8] ; +0xc71, 0x180066bd1 mov rsp, r11 ; +0xc77, 0x180066bd7 pop rdi ; +0xc7a, 0x180066bda retn ; +0xc7b, 0x180066bdb