; ; cocos2d::CCPageTurn3D::update from 0x180038de0 to 0x1800390d7 (759 bytes) ; ; 5 xrefs: ; > @ 0x1800ea0b8 ; > @ 0x1801363d8 ; > @ 0x1801363e8 ; > @ 0x1801438a8 ; > @ 0x1801b0c60 ; ; 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, 0x180038de0 mov [rax+20h], rbx ; +0x3, 0x180038de3 push rsi ; +0x7, 0x180038de7 sub rsp, 0F0h ; +0x8, 0x180038de8 movaps xmmword ptr [rax-18h], xmm6 ; +0xf, 0x180038def movaps xmmword ptr [rax-78h], xmm12 ; +0x13, 0x180038df3 movaps [rsp+0F8h+var_88], xmm13 ; +0x18, 0x180038df8 movaps [rsp+0F8h+var_98], xmm14 ; +0x1e, 0x180038dfe mov rax, cs:__security_cookie ; +0x24, 0x180038e04 xor rax, rsp ; +0x2b, 0x180038e0b mov [rsp+0F8h+var_B0], rax ; +0x2e, 0x180038e0e movss xmm13, cs:dword_1800EA12C ; +0x33, 0x180038e13 movaps xmm0, xmm1 ; +0x3c, 0x180038e1c subss xmm0, cs:dword_1800E83F4 ; +0x3f, 0x180038e1f movaps xmm2, xmm1 ; +0x47, 0x180038e27 mov rbx, rcx ; +0x4a, 0x180038e2a xorps xmm1, xmm1 ; +0x4d, 0x180038e2d xorps xmm14, xmm14 ; +0x50, 0x180038e30 maxss xmm1, xmm0 ; +0x54, 0x180038e34 xorps xmm0, xmm0 ; +0x58, 0x180038e38 ucomiss xmm0, xmm2 ; +0x5b, 0x180038e3b mulss xmm1, xmm1 ; +0x5e, 0x180038e3e mulss xmm1, cs:dword_1800EA124 ; +0x62, 0x180038e42 subss xmm13, xmm1 ; +0x6a, 0x180038e4a ja short loc_180038E5A ; +0x6f, 0x180038e4f xorps xmm6, xmm6 ; +0x71, 0x180038e51 sqrtss xmm6, xmm2 ; +0x74, 0x180038e54 jmp short loc_180038E65 ; +0x78, 0x180038e58 movaps xmm0, xmm2; X ; +0x7a, 0x180038e5a call sqrtf ; +0x7d, 0x180038e5d movaps xmm6, xmm0 ; +0x82, 0x180038e62 mulss xmm6, cs:dword_1800EA128 ; +0x85, 0x180038e65 addss xmm6, cs:dword_1800E840C ; +0x8d, 0x180038e6d movaps xmm0, xmm6; X ; +0x95, 0x180038e75 call sinf ; +0x98, 0x180038e78 movaps xmm12, xmm0 ; +0x9d, 0x180038e7d movaps xmm0, xmm6; X ; +0xa1, 0x180038e81 call cosf ; +0xa4, 0x180038e84 movss xmm1, dword ptr [rbx+60h] ; +0xa9, 0x180038e89 xor esi, esi ; +0xae, 0x180038e8e comiss xmm1, xmm14 ; +0xb0, 0x180038e90 movss [rsp+0F8h+var_D8], xmm0 ; +0xb4, 0x180038e94 jb loc_1800390A4 ; +0xba, 0x180038e9a mov [rsp+0F8h+arg_10], rdi ; +0xc0, 0x180038ea0 movaps [rsp+0F8h+var_28], xmm7 ; +0xc8, 0x180038ea8 movaps [rsp+0F8h+var_38], xmm8 ; +0xd0, 0x180038eb0 movaps [rsp+0F8h+var_48], xmm9 ; +0xd9, 0x180038eb9 movaps [rsp+0F8h+var_58], xmm10 ; +0xe2, 0x180038ec2 movaps [rsp+0F8h+var_68], xmm11 ; +0xeb, 0x180038ecb xorps xmm11, xmm11 ; +0xf4, 0x180038ed4 movaps [rsp+0F8h+var_A8], xmm15 ; +0xf8, 0x180038ed8 movss xmm15, cs:flt_1800E61A8 ; +0xfe, 0x180038ede nop word ptr [rax+rax+00000000h] ; +0x107, 0x180038ee7 movss xmm0, dword ptr [rbx+64h] ; +0x110, 0x180038ef0 xor edi, edi ; +0x115, 0x180038ef5 comiss xmm0, xmm14 ; +0x117, 0x180038ef7 jb loc_180039050 ; +0x11b, 0x180038efb movaps xmm9, xmm14 ; +0x121, 0x180038f01 movss xmm14, cs:dword_1800E6308 ; +0x125, 0x180038f05 xchg ax, ax ; +0x12e, 0x180038f0e movaps xmm2, xmm9 ; +0x130, 0x180038f10 lea rcx, [rsp+0F8h+var_D4] ; +0x134, 0x180038f14 movaps xmm1, xmm11 ; +0x139, 0x180038f19 call kmVec2Fill ; +0x13d, 0x180038f1d mov r8, rax ; +0x142, 0x180038f22 lea rdx, [rsp+0F8h+var_C0] ; +0x145, 0x180038f25 mov rcx, rbx ; +0x14a, 0x180038f2a call ?originalVertex@CCGrid3DAction@cocos2d@@QEAA?AU_ccVertex3F@2@AEBVCCPoint@2@@Z; cocos2d::CCGrid3DAction::originalVertex(cocos2d::CCPoint const &) ; +0x14d, 0x180038f2d movss xmm7, [rsp+0F8h+var_C0] ; +0x152, 0x180038f32 movss xmm1, [rsp+0F8h+var_BC] ; +0x158, 0x180038f38 movaps xmm0, xmm7 ; +0x15e, 0x180038f3e subss xmm1, xmm13 ; +0x161, 0x180038f41 mulss xmm0, xmm7 ; +0x166, 0x180038f46 mulss xmm1, xmm1 ; +0x16a, 0x180038f4a addss xmm1, xmm0 ; +0x16e, 0x180038f4e xorps xmm0, xmm0 ; +0x172, 0x180038f52 ucomiss xmm0, xmm1 ; +0x175, 0x180038f55 ja short loc_180038F63 ; +0x178, 0x180038f58 xorps xmm6, xmm6 ; +0x17a, 0x180038f5a sqrtss xmm6, xmm1 ; +0x17d, 0x180038f5d jmp short loc_180038F6E ; +0x181, 0x180038f61 movaps xmm0, xmm1; X ; +0x183, 0x180038f63 call sqrtf ; +0x186, 0x180038f66 movaps xmm6, xmm0 ; +0x18b, 0x180038f6b divss xmm7, xmm6 ; +0x18e, 0x180038f6e movaps xmm8, xmm6 ; +0x192, 0x180038f72 movaps xmm0, xmm7; X ; +0x196, 0x180038f76 mulss xmm8, xmm12 ; +0x199, 0x180038f79 call asinf ; +0x19e, 0x180038f7e movaps xmm7, xmm0 ; +0x1a3, 0x180038f83 divss xmm7, xmm12 ; +0x1a6, 0x180038f86 movaps xmm0, xmm7; X ; +0x1ab, 0x180038f8b call cosf ; +0x1ae, 0x180038f8e xorps xmm1, xmm1 ; +0x1b3, 0x180038f93 movaps xmm10, xmm0 ; +0x1b6, 0x180038f96 movsd xmm0, cs:qword_1800EA118 ; +0x1ba, 0x180038f9a cvtss2sd xmm1, xmm7 ; +0x1c2, 0x180038fa2 comisd xmm0, xmm1 ; +0x1c6, 0x180038fa6 jb short loc_180038FC1 ; +0x1ca, 0x180038faa movaps xmm0, xmm7; X ; +0x1cc, 0x180038fac call sinf ; +0x1cf, 0x180038faf mulss xmm0, xmm8 ; +0x1d4, 0x180038fb4 movss [rsp+0F8h+var_C0], xmm0 ; +0x1d9, 0x180038fb9 jmp short loc_180038FC9 ; +0x1df, 0x180038fbf mov [rsp+0F8h+var_C0], 0 ; +0x1e1, 0x180038fc1 movaps xmm1, xmm15 ; +0x1e9, 0x180038fc9 addss xmm6, xmm13 ; +0x1ed, 0x180038fcd subss xmm1, xmm10 ; +0x1f2, 0x180038fd2 mulss xmm1, xmm8 ; +0x1f7, 0x180038fd7 movaps xmm0, xmm1 ; +0x1fc, 0x180038fdc mulss xmm1, [rsp+0F8h+var_D8] ; +0x1ff, 0x180038fdf mulss xmm0, xmm12 ; +0x205, 0x180038fe5 divss xmm1, cs:dword_1800EA120 ; +0x20a, 0x180038fea subss xmm6, xmm0 ; +0x212, 0x180038ff2 comiss xmm14, xmm1 ; +0x216, 0x180038ff6 movss [rsp+0F8h+var_BC], xmm6 ; +0x21a, 0x180038ffa movss [rsp+0F8h+var_B8], xmm1 ; +0x220, 0x180039000 jbe short loc_180039010 ; +0x226, 0x180039006 mov [rsp+0F8h+var_B8], 3F000000h ; +0x228, 0x180039008 movaps xmm2, xmm9 ; +0x230, 0x180039010 lea rcx, [rsp+0F8h+var_CC] ; +0x234, 0x180039014 movaps xmm1, xmm11 ; +0x239, 0x180039019 call kmVec2Fill ; +0x23d, 0x18003901d mov rdx, rax; struct cocos2d::CCPoint * ; +0x242, 0x180039022 lea r8, [rsp+0F8h+var_C0]; struct cocos2d::_ccVertex3F * ; +0x245, 0x180039025 mov rcx, rbx; this ; +0x24a, 0x18003902a call ?setVertex@CCGrid3DAction@cocos2d@@QEAAXAEBVCCPoint@2@AEBU_ccVertex3F@2@@Z; cocos2d::CCGrid3DAction::setVertex(cocos2d::CCPoint const &,cocos2d::_ccVertex3F const &) ; +0x24d, 0x18003902d movss xmm0, dword ptr [rbx+64h] ; +0x252, 0x180039032 inc edi ; +0x257, 0x180039037 movd xmm9, edi ; +0x259, 0x180039039 cvtdq2ps xmm9, xmm9 ; +0x25e, 0x18003903e comiss xmm0, xmm9 ; +0x262, 0x180039042 jnb loc_180038F10 ; +0x266, 0x180039046 xorps xmm14, xmm14 ; +0x26c, 0x18003904c movss xmm0, dword ptr [rbx+60h] ; +0x270, 0x180039050 inc esi ; +0x275, 0x180039055 movd xmm11, esi ; +0x277, 0x180039057 cvtdq2ps xmm11, xmm11 ; +0x27c, 0x18003905c comiss xmm0, xmm11 ; +0x280, 0x180039060 jnb loc_180038EF0 ; +0x284, 0x180039064 movaps xmm15, [rsp+0F8h+var_A8] ; +0x28a, 0x18003906a movaps xmm11, [rsp+0F8h+var_68] ; +0x290, 0x180039070 movaps xmm10, [rsp+0F8h+var_58] ; +0x299, 0x180039079 movaps xmm9, [rsp+0F8h+var_48] ; +0x2a2, 0x180039082 movaps xmm8, [rsp+0F8h+var_38] ; +0x2ab, 0x18003908b movaps xmm7, [rsp+0F8h+var_28] ; +0x2b4, 0x180039094 mov rdi, [rsp+0F8h+arg_10] ; +0x2bc, 0x18003909c mov rcx, [rsp+0F8h+var_B0] ; +0x2c4, 0x1800390a4 xor rcx, rsp; StackCookie ; +0x2c9, 0x1800390a9 call __security_check_cookie ; +0x2cc, 0x1800390ac lea r11, [rsp+0F8h+var_8] ; +0x2d1, 0x1800390b1 mov rbx, [r11+28h] ; +0x2d9, 0x1800390b9 movaps xmm6, xmmword ptr [r11-10h] ; +0x2dd, 0x1800390bd movaps xmm12, xmmword ptr [r11-70h] ; +0x2e2, 0x1800390c2 movaps xmm13, xmmword ptr [r11-80h] ; +0x2e7, 0x1800390c7 movaps xmm14, [rsp+0F8h+var_98] ; +0x2ec, 0x1800390cc mov rsp, r11 ; +0x2f2, 0x1800390d2 pop rsi ; +0x2f5, 0x1800390d5 retn ; +0x2f6, 0x1800390d6