; ; cocos2d::CCDirector::convertToGL from 0x1800be160 to 0x1800be29a (314 bytes) ; ; 8 xrefs: ; > cocos2d::CCTouch::getDelta @ 0x1800b2726 ; > cocos2d::CCTouch::getDelta @ 0x1800b273c ; > cocos2d::CCTouch::getLocation @ 0x1800b278f ; > cocos2d::CCTouch::getPreviousLocation @ 0x1800b27ef ; > cocos2d::CCTouch::getStartLocation @ 0x1800b284f ; > @ 0x1801438a8 ; > @ 0x1801b9168 ; > @ 0x1801b9174 ; ; 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 ; push rbx ; +0x0, 0x1800be160 push rsi ; +0x2, 0x1800be162 push rdi ; +0x3, 0x1800be163 sub rsp, 170h ; +0x4, 0x1800be164 movaps [rsp+188h+var_28], xmm6 ; +0xb, 0x1800be16b mov rax, cs:__security_cookie ; +0x13, 0x1800be173 xor rax, rsp ; +0x1a, 0x1800be17a mov [rsp+188h+var_38], rax ; +0x1d, 0x1800be17d mov rsi, rdx ; +0x25, 0x1800be185 mov rbx, rcx ; +0x28, 0x1800be188 lea rdx, [rsp+188h+var_B8] ; +0x2b, 0x1800be18b mov ecx, 1701h ; +0x33, 0x1800be193 mov rdi, r8 ; +0x38, 0x1800be198 call kmGLGetMatrix ; +0x3b, 0x1800be19b lea rdx, [rsp+188h+var_F8] ; +0x40, 0x1800be1a0 mov ecx, 1700h ; +0x48, 0x1800be1a8 call kmGLGetMatrix ; +0x4d, 0x1800be1ad lea r8, [rsp+188h+var_F8] ; +0x52, 0x1800be1b2 lea rdx, [rsp+188h+var_B8] ; +0x5a, 0x1800be1ba lea rcx, [rsp+188h+var_138] ; +0x62, 0x1800be1c2 call kmMat4Multiply ; +0x67, 0x1800be1c7 lea rdx, [rsp+188h+var_138] ; +0x6c, 0x1800be1cc lea rcx, [rsp+188h+var_78] ; +0x71, 0x1800be1d1 call kmMat4Inverse ; +0x79, 0x1800be1d9 mov rcx, [rbx+0B8h] ; +0x7e, 0x1800be1de movss xmm6, [rsp+188h+var_100] ; +0x85, 0x1800be1e5 divss xmm6, [rsp+188h+var_FC] ; +0x8e, 0x1800be1ee mov rax, [rcx] ; +0x97, 0x1800be1f7 call qword ptr [rax+50h] ; +0x9a, 0x1800be1fa mov rdx, rax ; +0x9d, 0x1800be1fd lea rcx, [rsp+188h+var_168] ; +0xa0, 0x1800be200 call ??4cc_timeval@cocos2d@@QEAAAEAU01@$$QEAU01@@Z; cocos2d::cc_timeval::operator=(cocos2d::cc_timeval &&) ; +0xa5, 0x1800be205 movss xmm0, dword ptr [rdi] ; +0xaa, 0x1800be20a lea r8, [rsp+188h+var_78] ; +0xae, 0x1800be20e movss xmm1, cs:flt_1800E61A8 ; +0xb6, 0x1800be216 addss xmm0, xmm0 ; +0xbe, 0x1800be21e lea rdx, [rsp+188h+var_160] ; +0xc2, 0x1800be222 movss [rsp+188h+var_158], xmm6 ; +0xc7, 0x1800be227 lea rcx, [rsp+188h+var_150] ; +0xcd, 0x1800be22d divss xmm0, [rsp+188h+var_168] ; +0xd2, 0x1800be232 subss xmm0, xmm1 ; +0xd8, 0x1800be238 movss [rsp+188h+var_160], xmm0 ; +0xdc, 0x1800be23c movss xmm0, dword ptr [rdi+4] ; +0xe2, 0x1800be242 addss xmm0, xmm0 ; +0xe7, 0x1800be247 divss xmm0, [rsp+188h+var_164] ; +0xeb, 0x1800be24b subss xmm1, xmm0 ; +0xf1, 0x1800be251 movss [rsp+188h+var_15C], xmm1 ; +0xf5, 0x1800be255 call kmVec3TransformCoord ; +0xfb, 0x1800be25b movss xmm2, [rsp+188h+var_14C] ; +0x100, 0x1800be260 mov rcx, rsi ; +0x106, 0x1800be266 movss xmm1, [rsp+188h+var_150] ; +0x109, 0x1800be269 call kmVec2Fill ; +0x10f, 0x1800be26f mov rax, rsi ; +0x114, 0x1800be274 mov rcx, [rsp+188h+var_38] ; +0x117, 0x1800be277 xor rcx, rsp; StackCookie ; +0x11f, 0x1800be27f call __security_check_cookie ; +0x122, 0x1800be282 movaps xmm6, [rsp+188h+var_28] ; +0x127, 0x1800be287 add rsp, 170h ; +0x12f, 0x1800be28f pop rdi ; +0x136, 0x1800be296 pop rsi ; +0x137, 0x1800be297 pop rbx ; +0x138, 0x1800be298 retn ; +0x139, 0x1800be299