; ; cocos2d::CCShaky3D::update from 0x18002dfc0 to 0x18002e18d (461 bytes) ; ; 5 xrefs: ; > @ 0x1800e8b38 ; > @ 0x180134eb8 ; > @ 0x180134ec8 ; > @ 0x1801438a8 ; > @ 0x1801afe5c ; ; 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 r11, rsp ; +0x0, 0x18002dfc0 mov [r11+20h], rbp ; +0x3, 0x18002dfc3 push rdi ; +0x7, 0x18002dfc7 sub rsp, 90h ; +0x8, 0x18002dfc8 movaps xmmword ptr [r11-38h], xmm8 ; +0xf, 0x18002dfcf movaps xmmword ptr [r11-48h], xmm9 ; +0x14, 0x18002dfd4 mov rax, cs:__security_cookie ; +0x19, 0x18002dfd9 xor rax, rsp ; +0x20, 0x18002dfe0 mov [rsp+98h+var_58], rax ; +0x23, 0x18002dfe3 movss xmm0, dword ptr [rcx+60h] ; +0x28, 0x18002dfe8 xor ebp, ebp ; +0x2d, 0x18002dfed movss xmm8, cs:flt_1800E61A8 ; +0x2f, 0x18002dfef xorps xmm9, xmm9 ; +0x38, 0x18002dff8 addss xmm0, xmm8 ; +0x3c, 0x18002dffc mov rdi, rcx ; +0x41, 0x18002e001 comiss xmm0, xmm9 ; +0x44, 0x18002e004 jbe loc_18002E163 ; +0x48, 0x18002e008 mov [r11+10h], rbx ; +0x4e, 0x18002e00e mov [r11+18h], rsi ; +0x52, 0x18002e012 movaps xmmword ptr [r11-18h], xmm6 ; +0x56, 0x18002e016 movaps [rsp+98h+var_28], xmm7 ; +0x5b, 0x18002e01b xorps xmm7, xmm7 ; +0x60, 0x18002e020 nop dword ptr [rax+00h] ; +0x63, 0x18002e023 nop word ptr [rax+rax+00000000h] ; +0x67, 0x18002e027 movss xmm0, dword ptr [rdi+64h] ; +0x70, 0x18002e030 xor esi, esi ; +0x75, 0x18002e035 addss xmm0, xmm8 ; +0x77, 0x18002e037 comiss xmm0, xmm9 ; +0x7c, 0x18002e03c jbe loc_18002E12A ; +0x80, 0x18002e040 movaps xmm6, xmm9 ; +0x86, 0x18002e046 nop word ptr [rax+rax+00h] ; +0x8a, 0x18002e04a movaps xmm2, xmm6 ; +0x90, 0x18002e050 lea rcx, [rsp+98h+var_78] ; +0x93, 0x18002e053 movaps xmm1, xmm7 ; +0x98, 0x18002e058 call kmVec2Fill ; +0x9b, 0x18002e05b mov r8, rax ; +0xa0, 0x18002e060 lea rdx, [rsp+98h+var_68] ; +0xa3, 0x18002e063 mov rcx, rdi ; +0xa8, 0x18002e068 call ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xab, 0x18002e06b mov ebx, [rdi+68h] ; +0xb0, 0x18002e070 call cs:rand ; +0xb3, 0x18002e073 movss xmm1, [rsp+98h+var_68] ; +0xb9, 0x18002e079 lea ecx, [rbx+rbx] ; +0xbf, 0x18002e07f cdq ; +0xc2, 0x18002e082 idiv ecx ; +0xc3, 0x18002e083 sub edx, ebx ; +0xc5, 0x18002e085 mov ebx, [rdi+68h] ; +0xc7, 0x18002e087 movd xmm0, edx ; +0xca, 0x18002e08a cvtdq2ps xmm0, xmm0 ; +0xce, 0x18002e08e addss xmm1, xmm0 ; +0xd1, 0x18002e091 movss [rsp+98h+var_68], xmm1 ; +0xd5, 0x18002e095 call cs:rand ; +0xdb, 0x18002e09b movss xmm1, [rsp+98h+var_64] ; +0xe1, 0x18002e0a1 lea ecx, [rbx+rbx] ; +0xe7, 0x18002e0a7 cdq ; +0xea, 0x18002e0aa idiv ecx ; +0xeb, 0x18002e0ab sub edx, ebx ; +0xed, 0x18002e0ad cmp byte ptr [rdi+6Ch], 0 ; +0xef, 0x18002e0af movd xmm0, edx ; +0xf3, 0x18002e0b3 cvtdq2ps xmm0, xmm0 ; +0xf7, 0x18002e0b7 addss xmm1, xmm0 ; +0xfa, 0x18002e0ba movss [rsp+98h+var_64], xmm1 ; +0xfe, 0x18002e0be jz short loc_18002E0EE ; +0x104, 0x18002e0c4 mov ebx, [rdi+68h] ; +0x106, 0x18002e0c6 call cs:rand ; +0x109, 0x18002e0c9 movss xmm1, [rsp+98h+var_60] ; +0x10f, 0x18002e0cf lea ecx, [rbx+rbx] ; +0x115, 0x18002e0d5 cdq ; +0x118, 0x18002e0d8 idiv ecx ; +0x119, 0x18002e0d9 sub edx, ebx ; +0x11b, 0x18002e0db movd xmm0, edx ; +0x11d, 0x18002e0dd cvtdq2ps xmm0, xmm0 ; +0x121, 0x18002e0e1 addss xmm1, xmm0 ; +0x124, 0x18002e0e4 movss [rsp+98h+var_60], xmm1 ; +0x128, 0x18002e0e8 movaps xmm2, xmm6 ; +0x12e, 0x18002e0ee lea rcx, [rsp+98h+var_70] ; +0x131, 0x18002e0f1 movaps xmm1, xmm7 ; +0x136, 0x18002e0f6 call kmVec2Fill ; +0x139, 0x18002e0f9 mov rdx, rax; struct cocos2d::CCPoint * ; +0x13e, 0x18002e0fe lea r8, [rsp+98h+var_68]; struct cocos2d::_ccVertex3F * ; +0x141, 0x18002e101 mov rcx, rdi; this ; +0x146, 0x18002e106 call ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x149, 0x18002e109 movss xmm0, dword ptr [rdi+64h] ; +0x14e, 0x18002e10e inc esi ; +0x153, 0x18002e113 addss xmm0, xmm8 ; +0x155, 0x18002e115 movd xmm6, esi ; +0x15a, 0x18002e11a cvtdq2ps xmm6, xmm6 ; +0x15e, 0x18002e11e comiss xmm0, xmm6 ; +0x161, 0x18002e121 ja loc_18002E050 ; +0x164, 0x18002e124 movss xmm0, dword ptr [rdi+60h] ; +0x16a, 0x18002e12a inc ebp ; +0x16f, 0x18002e12f addss xmm0, xmm8 ; +0x171, 0x18002e131 movd xmm7, ebp ; +0x176, 0x18002e136 cvtdq2ps xmm7, xmm7 ; +0x17a, 0x18002e13a comiss xmm0, xmm7 ; +0x17d, 0x18002e13d ja loc_18002E030 ; +0x180, 0x18002e140 movaps xmm7, [rsp+98h+var_28] ; +0x186, 0x18002e146 movaps xmm6, [rsp+98h+var_18] ; +0x18b, 0x18002e14b mov rsi, [rsp+98h+arg_10] ; +0x193, 0x18002e153 mov rbx, [rsp+98h+arg_8] ; +0x19b, 0x18002e15b mov rcx, [rsp+98h+var_58] ; +0x1a3, 0x18002e163 xor rcx, rsp; StackCookie ; +0x1a8, 0x18002e168 call __security_check_cookie ; +0x1ab, 0x18002e16b mov rbp, [rsp+98h+arg_18] ; +0x1b0, 0x18002e170 movaps xmm8, [rsp+98h+var_38] ; +0x1b8, 0x18002e178 movaps xmm9, [rsp+98h+var_48] ; +0x1be, 0x18002e17e add rsp, 90h ; +0x1c4, 0x18002e184 pop rdi ; +0x1cb, 0x18002e18b retn ; +0x1cc, 0x18002e18c