; ; GJUINode::activeTouchTest from 0x1404cf2c0 to 0x1404cf49f (479 bytes) ; ; 5 xrefs: ; > UILayer::processUINodeTouch @ 0x1404ce7b9 ; > GJUINode::touchTest @ 0x1404cf297 ; > @ 0x1406a9f50 ; > @ 0x1406a9f64 ; > @ 0x1406dd5c8 ; ; 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 [rsp+arg_8], rbx ; +0x0, 0x1404cf2c0 push rdi ; +0x5, 0x1404cf2c5 sub rsp, 40h ; +0x6, 0x1404cf2c6 cmp byte ptr [rcx+17Dh], 0 ; +0xa, 0x1404cf2ca mov rdi, rcx ; +0x11, 0x1404cf2d1 jnz short loc_1404CF31A ; +0x14, 0x1404cf2d4 movss xmm2, dword ptr [rdx] ; +0x16, 0x1404cf2d6 movss xmm0, dword ptr [rcx+178h] ; +0x1a, 0x1404cf2da movaps xmm1, xmm2 ; +0x22, 0x1404cf2e2 andps xmm1, cs:xmmword_1406243C0 ; +0x25, 0x1404cf2e5 comiss xmm0, xmm1 ; +0x2c, 0x1404cf2ec jbe short loc_1404CF301 ; +0x2f, 0x1404cf2ef mov eax, 5 ; +0x31, 0x1404cf2f1 mov rbx, [rsp+48h+arg_8] ; +0x36, 0x1404cf2f6 add rsp, 40h ; +0x3b, 0x1404cf2fb pop rdi ; +0x3f, 0x1404cf2ff retn ; +0x40, 0x1404cf300 xor ebx, ebx ; +0x41, 0x1404cf301 xorps xmm0, xmm0 ; +0x43, 0x1404cf303 comiss xmm2, xmm0 ; +0x46, 0x1404cf306 setnb bl ; +0x49, 0x1404cf309 lea eax, [rbx+2] ; +0x4c, 0x1404cf30c mov rbx, [rsp+48h+arg_8] ; +0x4f, 0x1404cf30f add rsp, 40h ; +0x54, 0x1404cf314 pop rdi ; +0x58, 0x1404cf318 retn ; +0x59, 0x1404cf319 movaps [rsp+48h+var_18], xmm6 ; +0x5a, 0x1404cf31a lea rcx, [rsp+48h+arg_10] ; +0x5f, 0x1404cf31f movaps [rsp+48h+var_28], xmm7 ; +0x64, 0x1404cf324 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x69, 0x1404cf329 mov rcx, [rdi+140h] ; +0x6f, 0x1404cf32f mov rbx, rax ; +0x76, 0x1404cf336 movss xmm6, dword ptr [rax+4] ; +0x79, 0x1404cf339 mov rdx, [rcx] ; +0x7e, 0x1404cf33e call qword ptr [rdx+0C8h] ; +0x81, 0x1404cf341 movss xmm7, cs:dword_1406231B0 ; +0x87, 0x1404cf347 lea rcx, [rsp+48h+arg_0] ; +0x8f, 0x1404cf34f addss xmm6, xmm7 ; +0x94, 0x1404cf354 movss xmm1, dword ptr [rax] ; +0x98, 0x1404cf358 movaps xmm2, xmm6 ; +0x9c, 0x1404cf35c call cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x9f, 0x1404cf35f mov rcx, [rdi+140h] ; +0xa5, 0x1404cf365 mov rax, [rcx] ; +0xac, 0x1404cf36c call qword ptr [rax+0C8h] ; +0xaf, 0x1404cf36f movss xmm1, dword ptr [rbx] ; +0xb5, 0x1404cf375 movss xmm0, dword ptr [rdi+178h] ; +0xb9, 0x1404cf379 movaps xmm3, xmm1 ; +0xc1, 0x1404cf381 movaps xmm6, [rsp+48h+var_18] ; +0xc4, 0x1404cf384 subss xmm3, dword ptr [rax] ; +0xc9, 0x1404cf389 movaps xmm4, xmm3 ; +0xcd, 0x1404cf38d andps xmm4, cs:xmmword_1406243C0 ; +0xd0, 0x1404cf390 comiss xmm0, xmm4 ; +0xd7, 0x1404cf397 jbe short loc_1404CF3A6 ; +0xda, 0x1404cf39a movss xmm1, [rsp+48h+arg_0] ; +0xdc, 0x1404cf39c xor ebx, ebx ; +0xe2, 0x1404cf3a2 jmp short loc_1404CF3E7 ; +0xe4, 0x1404cf3a4 movss xmm0, dword ptr [rdi+174h] ; +0xe6, 0x1404cf3a6 xorps xmm2, xmm2 ; +0xee, 0x1404cf3ae comiss xmm4, xmm0 ; +0xf1, 0x1404cf3b1 jbe short loc_1404CF3D6 ; +0xf4, 0x1404cf3b4 comiss xmm3, xmm2 ; +0xf6, 0x1404cf3b6 jbe short loc_1404CF3C7 ; +0xf9, 0x1404cf3b9 subss xmm1, xmm0 ; +0xfb, 0x1404cf3bb movss [rsp+48h+arg_0], xmm1 ; +0xff, 0x1404cf3bf jmp short loc_1404CF3DC ; +0x105, 0x1404cf3c5 addss xmm0, xmm1 ; +0x107, 0x1404cf3c7 movss [rsp+48h+arg_0], xmm0 ; +0x10b, 0x1404cf3cb movaps xmm1, xmm0 ; +0x111, 0x1404cf3d1 jmp short loc_1404CF3DC ; +0x114, 0x1404cf3d4 movss xmm1, [rsp+48h+arg_0] ; +0x116, 0x1404cf3d6 xor ebx, ebx ; +0x11c, 0x1404cf3dc comiss xmm3, xmm2 ; +0x11e, 0x1404cf3de setnbe bl ; +0x121, 0x1404cf3e1 add ebx, 2 ; +0x124, 0x1404cf3e4 movss xmm2, dword ptr [rdi+158h] ; +0x127, 0x1404cf3e7 movss xmm4, cs:dword_140622B08 ; +0x12f, 0x1404cf3ef movaps xmm3, xmm2 ; +0x137, 0x1404cf3f7 xorps xmm2, cs:xmmword_1406243F0 ; +0x13a, 0x1404cf3fa mulss xmm3, xmm4 ; +0x141, 0x1404cf401 mulss xmm2, xmm4 ; +0x145, 0x1404cf405 movaps xmm0, xmm3 ; +0x149, 0x1404cf409 minss xmm0, xmm1 ; +0x14c, 0x1404cf40c comiss xmm2, xmm0 ; +0x150, 0x1404cf410 jbe short loc_1404CF41D ; +0x153, 0x1404cf413 movss [rsp+48h+arg_0], xmm2 ; +0x155, 0x1404cf415 jmp short loc_1404CF428 ; +0x15b, 0x1404cf41b comiss xmm1, xmm3 ; +0x15d, 0x1404cf41d jbe short loc_1404CF428 ; +0x160, 0x1404cf420 movss [rsp+48h+arg_0], xmm3 ; +0x162, 0x1404cf422 movss xmm0, dword ptr [rdi+15Ch] ; +0x168, 0x1404cf428 movss xmm2, [rsp+48h+arg_4] ; +0x170, 0x1404cf430 mulss xmm0, xmm4 ; +0x176, 0x1404cf436 movaps xmm1, xmm0 ; +0x17a, 0x1404cf43a addss xmm1, xmm7 ; +0x17d, 0x1404cf43d subss xmm7, xmm0 ; +0x181, 0x1404cf441 movaps xmm0, xmm1 ; +0x185, 0x1404cf445 minss xmm0, xmm2 ; +0x188, 0x1404cf448 comiss xmm7, xmm0 ; +0x18c, 0x1404cf44c jbe short loc_1404CF459 ; +0x18f, 0x1404cf44f movss [rsp+48h+arg_4], xmm7 ; +0x191, 0x1404cf451 jmp short loc_1404CF464 ; +0x197, 0x1404cf457 comiss xmm2, xmm1 ; +0x199, 0x1404cf459 jbe short loc_1404CF464 ; +0x19c, 0x1404cf45c movss [rsp+48h+arg_4], xmm1 ; +0x19e, 0x1404cf45e mov rcx, [rdi+140h] ; +0x1a4, 0x1404cf464 mov dl, 1 ; +0x1ab, 0x1404cf46b mov r8, [rcx] ; +0x1ad, 0x1404cf46d call qword ptr [r8+140h] ; +0x1b0, 0x1404cf470 mov rcx, [rdi+140h] ; +0x1b7, 0x1404cf477 lea rdx, [rsp+48h+arg_0] ; +0x1be, 0x1404cf47e mov r8, [rcx] ; +0x1c3, 0x1404cf483 call qword ptr [r8+0B8h] ; +0x1c6, 0x1404cf486 movaps xmm7, [rsp+48h+var_28] ; +0x1cd, 0x1404cf48d mov eax, ebx ; +0x1d2, 0x1404cf492 mov rbx, [rsp+48h+arg_8] ; +0x1d4, 0x1404cf494 add rsp, 40h ; +0x1d9, 0x1404cf499 pop rdi ; +0x1dd, 0x1404cf49d retn ; +0x1de, 0x1404cf49e