; ; DpadMenu::ccTouchBegan from 0x1401f3100 to 0x1401f31e1 (225 bytes) ; ; 3 xrefs: ; > @ 0x140752cb8 ; > @ 0x14091a9d8 ; > @ 0x14091a9e4 ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401f3100 mov [rsp+arg_10], rbp ; +0x5, 0x1401f3105 mov [rsp+arg_18], rsi ; +0xa, 0x1401f310a push rdi ; +0xf, 0x1401f310f sub rsp, 20h ; +0x10, 0x1401f3110 cmp dword ptr [rcx+74h], 0 ; +0x14, 0x1401f3114 mov rbp, rdx ; +0x18, 0x1401f3118 mov rdi, rcx ; +0x1b, 0x1401f311b jnz loc_1401F31CA ; +0x1e, 0x1401f311e cmp byte ptr [rcx-22h], 0 ; +0x24, 0x1401f3124 jz loc_1401F31CA ; +0x28, 0x1401f3128 mov rax, [rcx-140h] ; +0x2e, 0x1401f312e add rcx, 0FFFFFFFFFFFFFEC0h ; +0x35, 0x1401f3135 call qword ptr [rax+408h] ; +0x3c, 0x1401f313c test al, al ; +0x42, 0x1401f3142 jz loc_1401F31CA ; +0x44, 0x1401f3144 mov rbx, [rdi-68h] ; +0x4a, 0x1401f314a test rbx, rbx ; +0x4e, 0x1401f314e jz short loc_1401F3177 ; +0x51, 0x1401f3151 mov rax, [rbx] ; +0x53, 0x1401f3153 mov rcx, rbx ; +0x56, 0x1401f3156 call qword ptr [rax+158h] ; +0x59, 0x1401f3159 test al, al ; +0x5f, 0x1401f315f jz short loc_1401F31CA ; +0x61, 0x1401f3161 mov rax, [rbx] ; +0x63, 0x1401f3163 mov rcx, rbx ; +0x66, 0x1401f3166 call qword ptr [rax+1F8h] ; +0x69, 0x1401f3169 mov rbx, rax ; +0x6f, 0x1401f316f test rax, rax ; +0x72, 0x1401f3172 jnz short loc_1401F3153 ; +0x75, 0x1401f3175 lea rdx, [rsp+28h+arg_0] ; +0x77, 0x1401f3177 mov rcx, rbp ; +0x7c, 0x1401f317c call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x7f, 0x1401f317f mov rdx, rax ; +0x85, 0x1401f3185 lea rcx, [rdi-140h] ; +0x88, 0x1401f3188 call sub_14004A7E0 ; +0x8f, 0x1401f318f test al, al ; +0x94, 0x1401f3194 jnz short loc_1401F31CA ; +0x96, 0x1401f3196 mov rdx, rbp ; +0x98, 0x1401f3198 lea rcx, [rdi-140h] ; +0x9b, 0x1401f319b call DpadMenu__arrowForTouch ; +0xa2, 0x1401f31a2 mov [rdi+78h], rax ; +0xa7, 0x1401f31a7 test rax, rax ; +0xab, 0x1401f31ab jz short loc_1401F31CA ; +0xae, 0x1401f31ae mov dword ptr [rdi+74h], 1 ; +0xb0, 0x1401f31b0 mov rcx, [rax] ; +0xb7, 0x1401f31b7 mov rdx, [rcx+380h] ; +0xba, 0x1401f31ba mov rcx, rax ; +0xc1, 0x1401f31c1 call rdx ; +0xc4, 0x1401f31c4 mov al, 1 ; +0xc6, 0x1401f31c6 jmp short loc_1401F31CC ; +0xc8, 0x1401f31c8 xor al, al ; +0xca, 0x1401f31ca mov rbx, [rsp+28h+arg_8] ; +0xcc, 0x1401f31cc mov rbp, [rsp+28h+arg_10] ; +0xd1, 0x1401f31d1 mov rsi, [rsp+28h+arg_18] ; +0xd6, 0x1401f31d6 add rsp, 20h ; +0xdb, 0x1401f31db pop rdi ; +0xdf, 0x1401f31df retn ; +0xe0, 0x1401f31e0