; ; cocos2d::CCLens3D::update from 0x18002df80 to 0x18002e217 (663 bytes) ; ; 5 xrefs: ; > @ 0x1800eea90 ; > @ 0x18013dc1c ; > @ 0x18013dc6c ; > @ 0x18014cf68 ; > @ 0x1801b9eec ; ; 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:32 +0000 ; mov r11, rsp ; +0x0, 0x18002df80 push rbx ; +0x3, 0x18002df83 sub rsp, 0F0h ; +0x4, 0x18002df84 mov rax, cs:__security_cookie ; +0xb, 0x18002df8b xor rax, rsp ; +0x12, 0x18002df92 mov [rsp+0F8h+var_98], rax ; +0x15, 0x18002df95 cmp byte ptr [rcx+79h], 0 ; +0x1a, 0x18002df9a mov rbx, rcx ; +0x1e, 0x18002df9e jz loc_18002E201 ; +0x21, 0x18002dfa1 movss xmm0, dword ptr [rcx+60h] ; +0x27, 0x18002dfa7 mov [r11+18h], rsi ; +0x2c, 0x18002dfac xor esi, esi ; +0x30, 0x18002dfb0 movaps xmmword ptr [r11-48h], xmm9 ; +0x32, 0x18002dfb2 movss xmm9, cs:flt_1800EC208 ; +0x37, 0x18002dfb7 addss xmm0, xmm9 ; +0x40, 0x18002dfc0 movaps xmmword ptr [r11-58h], xmm10 ; +0x45, 0x18002dfc5 xorps xmm10, xmm10 ; +0x4a, 0x18002dfca comiss xmm0, xmm10 ; +0x4e, 0x18002dfce jbe loc_18002E1E3 ; +0x52, 0x18002dfd2 mov [r11+10h], rbp ; +0x58, 0x18002dfd8 mov [r11+20h], rdi ; +0x5c, 0x18002dfdc movaps xmmword ptr [r11-18h], xmm6 ; +0x60, 0x18002dfe0 movaps xmmword ptr [r11-28h], xmm7 ; +0x65, 0x18002dfe5 movaps xmmword ptr [r11-38h], xmm8 ; +0x6a, 0x18002dfea movaps xmmword ptr [r11-68h], xmm11 ; +0x6f, 0x18002dfef xorps xmm11, xmm11 ; +0x74, 0x18002dff4 movaps xmmword ptr [r11-78h], xmm12 ; +0x78, 0x18002dff8 movss xmm12, cs:flt_1800EE450 ; +0x7d, 0x18002dffd movaps [rsp+0F8h+var_88], xmm13 ; +0x86, 0x18002e006 movss xmm13, cs:dword_1800ED380 ; +0x8c, 0x18002e00c nop word ptr [rax+rax+00000000h] ; +0x95, 0x18002e015 movss xmm0, dword ptr [rbx+64h] ; +0xa0, 0x18002e020 xor edi, edi ; +0xa5, 0x18002e025 addss xmm0, xmm9 ; +0xa7, 0x18002e027 comiss xmm0, xmm10 ; +0xac, 0x18002e02c jbe loc_18002E183 ; +0xb0, 0x18002e030 movaps xmm8, xmm10 ; +0xb6, 0x18002e036 nop word ptr [rax+rax+00h] ; +0xba, 0x18002e03a movaps xmm2, xmm8 ; +0xc0, 0x18002e040 lea rcx, [rsp+0F8h+var_C8] ; +0xc4, 0x18002e044 movaps xmm1, xmm11 ; +0xc9, 0x18002e049 call kmVec2Fill ; +0xcd, 0x18002e04d mov r8, rax ; +0xd2, 0x18002e052 lea rdx, [rsp+0F8h+var_A8] ; +0xd5, 0x18002e055 mov rcx, rbx ; +0xda, 0x18002e05a call ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0xdd, 0x18002e05d movss xmm2, [rsp+0F8h+var_A4] ; +0xe2, 0x18002e062 lea rcx, [rsp+0F8h+var_C0] ; +0xe8, 0x18002e068 movss xmm1, [rsp+0F8h+var_A8] ; +0xed, 0x18002e06d call kmVec2Fill ; +0xf3, 0x18002e073 mov r8, rax ; +0xf8, 0x18002e078 lea rdx, [rsp+0F8h+var_D8] ; +0xfb, 0x18002e07b lea rcx, [rbx+68h] ; +0x100, 0x18002e080 call ??GCCSize@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCSize::operator-(cocos2d::CCSize const &) ; +0x104, 0x18002e084 lea rcx, [rsp+0F8h+var_D8]; this ; +0x109, 0x18002e089 call ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x10e, 0x18002e08e movss xmm6, dword ptr [rbx+70h] ; +0x113, 0x18002e093 movaps xmm1, xmm0 ; +0x118, 0x18002e098 comiss xmm6, xmm1 ; +0x11b, 0x18002e09b jbe loc_18002E142 ; +0x11e, 0x18002e09e movaps xmm0, xmm6 ; +0x124, 0x18002e0a4 subss xmm0, xmm1 ; +0x127, 0x18002e0a7 divss xmm0, xmm6 ; +0x12b, 0x18002e0ab ucomiss xmm0, xmm10 ; +0x12f, 0x18002e0af jp short loc_18002E0BB ; +0x133, 0x18002e0b3 jnz short loc_18002E0BB ; +0x135, 0x18002e0b5 movaps xmm0, xmm12; X ; +0x137, 0x18002e0b7 call logf ; +0x13b, 0x18002e0bb mulss xmm0, dword ptr [rbx+74h]; X ; +0x140, 0x18002e0c0 call expf ; +0x145, 0x18002e0c5 movaps xmm7, xmm0 ; +0x14a, 0x18002e0ca lea rcx, [rsp+0F8h+var_D8]; this ; +0x14d, 0x18002e0cd mulss xmm7, xmm6 ; +0x152, 0x18002e0d2 call ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x156, 0x18002e0d6 comiss xmm0, xmm10 ; +0x15b, 0x18002e0db jbe short loc_18002E142 ; +0x15f, 0x18002e0df lea rdx, [rsp+0F8h+var_D8] ; +0x161, 0x18002e0e1 lea rcx, [rsp+0F8h+var_B8] ; +0x166, 0x18002e0e6 call ?ccpNormalize@cocos2d@@YA?AVCCPoint@1@AEBV21@@Z; cocos2d::ccpNormalize(cocos2d::CCPoint const &) ; +0x16b, 0x18002e0eb mov rdx, rax ; +0x170, 0x18002e0f0 lea rcx, [rsp+0F8h+var_D8] ; +0x173, 0x18002e0f3 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x178, 0x18002e0f8 movaps xmm2, xmm7 ; +0x17d, 0x18002e0fd lea rdx, [rsp+0F8h+var_D0] ; +0x180, 0x18002e100 lea rcx, [rsp+0F8h+var_D8] ; +0x185, 0x18002e105 call ??DCCSize@cocos2d@@QEBA?AV01@M@Z; cocos2d::CCSize::operator*(float) ; +0x18a, 0x18002e10a cmp byte ptr [rbx+78h], 0 ; +0x18f, 0x18002e10f jz short loc_18002E11B ; +0x193, 0x18002e113 movaps xmm6, xmm13 ; +0x195, 0x18002e115 jmp short loc_18002E11F ; +0x199, 0x18002e119 movaps xmm6, xmm9 ; +0x19b, 0x18002e11b lea rcx, [rsp+0F8h+var_D0]; this ; +0x19f, 0x18002e11f call ?getLength@CCPoint@cocos2d@@QEBAMXZ; cocos2d::CCPoint::getLength(void) ; +0x1a4, 0x18002e124 movss xmm1, [rsp+0F8h+var_A0] ; +0x1a9, 0x18002e129 mulss xmm0, xmm6 ; +0x1af, 0x18002e12f mulss xmm0, dword ptr [rbx+74h] ; +0x1b3, 0x18002e133 addss xmm1, xmm0 ; +0x1b8, 0x18002e138 movss [rsp+0F8h+var_A0], xmm1 ; +0x1bc, 0x18002e13c movaps xmm2, xmm8 ; +0x1c2, 0x18002e142 lea rcx, [rsp+0F8h+var_B0] ; +0x1c6, 0x18002e146 movaps xmm1, xmm11 ; +0x1cb, 0x18002e14b call kmVec2Fill ; +0x1cf, 0x18002e14f mov rdx, rax; struct cocos2d::CCPoint * ; +0x1d4, 0x18002e154 lea r8, [rsp+0F8h+var_A8]; struct cocos2d::_ccVertex3F * ; +0x1d7, 0x18002e157 mov rcx, rbx; this ; +0x1dc, 0x18002e15c call ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x1df, 0x18002e15f movss xmm0, dword ptr [rbx+64h] ; +0x1e4, 0x18002e164 inc edi ; +0x1e9, 0x18002e169 addss xmm0, xmm9 ; +0x1eb, 0x18002e16b movd xmm8, edi ; +0x1f0, 0x18002e170 cvtdq2ps xmm8, xmm8 ; +0x1f5, 0x18002e175 comiss xmm0, xmm8 ; +0x1f9, 0x18002e179 ja loc_18002E040 ; +0x1fd, 0x18002e17d movss xmm0, dword ptr [rbx+60h] ; +0x203, 0x18002e183 inc esi ; +0x208, 0x18002e188 addss xmm0, xmm9 ; +0x20a, 0x18002e18a movd xmm11, esi ; +0x20f, 0x18002e18f cvtdq2ps xmm11, xmm11 ; +0x214, 0x18002e194 comiss xmm0, xmm11 ; +0x218, 0x18002e198 ja loc_18002E020 ; +0x21c, 0x18002e19c movaps xmm13, [rsp+0F8h+var_88] ; +0x222, 0x18002e1a2 movaps xmm12, [rsp+0F8h+var_78] ; +0x228, 0x18002e1a8 movaps xmm11, [rsp+0F8h+var_68] ; +0x231, 0x18002e1b1 movaps xmm8, [rsp+0F8h+var_38] ; +0x23a, 0x18002e1ba movaps xmm7, [rsp+0F8h+var_28] ; +0x243, 0x18002e1c3 movaps xmm6, [rsp+0F8h+var_18] ; +0x24b, 0x18002e1cb mov rdi, [rsp+0F8h+arg_18] ; +0x253, 0x18002e1d3 mov rbp, [rsp+0F8h+arg_8] ; +0x25b, 0x18002e1db movaps xmm10, [rsp+0F8h+var_58] ; +0x263, 0x18002e1e3 movaps xmm9, [rsp+0F8h+var_48] ; +0x26c, 0x18002e1ec mov rsi, [rsp+0F8h+arg_10] ; +0x275, 0x18002e1f5 mov byte ptr [rbx+79h], 0 ; +0x27d, 0x18002e1fd mov rcx, [rsp+0F8h+var_98] ; +0x281, 0x18002e201 xor rcx, rsp; StackCookie ; +0x286, 0x18002e206 call __security_check_cookie ; +0x289, 0x18002e209 add rsp, 0F0h ; +0x28e, 0x18002e20e pop rbx ; +0x295, 0x18002e215 retn ; +0x296, 0x18002e216