; ; DpadMenu::arrowForTouch from 0x1401f3250 to 0x1401f336e (286 bytes) ; ; 3 xrefs: ; > DpadMenu::ccTouchBegan @ 0x1401f31a2 ; > DpadMenu::ccTouchMoved @ 0x1401f3204 ; > @ 0x14091a9fc ; ; 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:28:08 +0000 ; push rbx ; +0x0, 0x1401f3250 sub rsp, 20h ; +0x2, 0x1401f3252 mov rax, rdx ; +0x6, 0x1401f3256 mov rbx, rcx ; +0x9, 0x1401f3259 mov rcx, rax ; +0xc, 0x1401f325c lea rdx, [rsp+28h+arg_10] ; +0xf, 0x1401f325f call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x14, 0x1401f3264 lea rdx, [rsp+28h+arg_18] ; +0x1a, 0x1401f326a mov rcx, rbx ; +0x1f, 0x1401f326f mov r8, rax ; +0x22, 0x1401f3272 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x25, 0x1401f3275 mov rcx, rax ; +0x2b, 0x1401f327b lea r8, [rbx+1E0h] ; +0x2e, 0x1401f327e lea rdx, [rsp+28h+arg_0] ; +0x35, 0x1401f3285 call cs:??GCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator-(cocos2d::CCPoint const &) ; +0x3a, 0x1401f328a movss xmm3, [rsp+28h+arg_0] ; +0x40, 0x1401f3290 movdqa xmm5, cs:xmmword_140836C90 ; +0x46, 0x1401f3296 movss xmm0, dword ptr [rbx+1F0h] ; +0x4e, 0x1401f329e andps xmm3, xmm5 ; +0x56, 0x1401f32a6 comiss xmm0, xmm3 ; +0x59, 0x1401f32a9 movss xmm4, [rsp+28h+arg_4] ; +0x5c, 0x1401f32ac jbe short loc_1401F32CB ; +0x62, 0x1401f32b2 movss xmm0, dword ptr [rbx+1F4h] ; +0x64, 0x1401f32b4 movaps xmm1, xmm4 ; +0x6c, 0x1401f32bc andps xmm1, xmm5 ; +0x6f, 0x1401f32bf comiss xmm0, xmm1 ; +0x72, 0x1401f32c2 ja loc_1401F3366 ; +0x75, 0x1401f32c5 divss xmm3, dword ptr [rbx+1E8h] ; +0x7b, 0x1401f32cb movss xmm0, cs:flt_140835080 ; +0x83, 0x1401f32d3 movaps xmm2, xmm4 ; +0x8b, 0x1401f32db comiss xmm3, xmm0 ; +0x8e, 0x1401f32de andps xmm2, xmm5 ; +0x91, 0x1401f32e1 divss xmm2, dword ptr [rbx+1ECh] ; +0x94, 0x1401f32e4 ja short loc_1401F3366 ; +0x9c, 0x1401f32ec comiss xmm2, xmm0 ; +0x9e, 0x1401f32ee ja short loc_1401F3366 ; +0xa1, 0x1401f32f1 movaps xmm0, xmm3 ; +0xa3, 0x1401f32f3 movaps xmm1, xmm3 ; +0xa6, 0x1401f32f6 maxss xmm0, xmm2 ; +0xa9, 0x1401f32f9 minss xmm1, xmm2 ; +0xad, 0x1401f32fd mulss xmm0, cs:dword_140835010 ; +0xb1, 0x1401f3301 comiss xmm1, xmm0 ; +0xb9, 0x1401f3309 ja short loc_1401F3366 ; +0xbc, 0x1401f330c xor eax, eax ; +0xbe, 0x1401f330e xorps xmm0, xmm0 ; +0xc0, 0x1401f3310 comiss xmm3, xmm2 ; +0xc3, 0x1401f3313 jbe short loc_1401F3322 ; +0xc6, 0x1401f3316 comiss xmm0, [rsp+28h+arg_0] ; +0xc8, 0x1401f3318 setbe al ; +0xcd, 0x1401f331d jmp short loc_1401F332B ; +0xd0, 0x1401f3320 comiss xmm4, xmm0 ; +0xd2, 0x1401f3322 setbe al ; +0xd5, 0x1401f3325 add eax, 2 ; +0xd8, 0x1401f3328 mov eax, eax ; +0xdb, 0x1401f332b mov rbx, [rbx+rax*8+1C0h] ; +0xdd, 0x1401f332d test rbx, rbx ; +0xe5, 0x1401f3335 jz short loc_1401F3366 ; +0xe8, 0x1401f3338 mov rax, [rbx] ; +0xea, 0x1401f333a mov rcx, rbx ; +0xed, 0x1401f333d call qword ptr [rax+158h] ; +0xf0, 0x1401f3340 test al, al ; +0xf6, 0x1401f3346 jz short loc_1401F3366 ; +0xf8, 0x1401f3348 mov rcx, [rbx] ; +0xfa, 0x1401f334a mov rdx, [rcx+3A0h] ; +0xfd, 0x1401f334d mov rcx, rbx ; +0x104, 0x1401f3354 call rdx ; +0x107, 0x1401f3357 test al, al ; +0x109, 0x1401f3359 jz short loc_1401F3366 ; +0x10b, 0x1401f335b mov rax, rbx ; +0x10d, 0x1401f335d add rsp, 20h ; +0x110, 0x1401f3360 pop rbx ; +0x114, 0x1401f3364 retn ; +0x115, 0x1401f3365 xor eax, eax ; +0x116, 0x1401f3366 add rsp, 20h ; +0x118, 0x1401f3368 pop rbx ; +0x11c, 0x1401f336c retn ; +0x11d, 0x1401f336d