; ; GJShopLayer::ccTouchBegan from 0x1402ae950 to 0x1402aeb88 (568 bytes) ; ; 2 xrefs: ; > @ 0x14057e268 ; > @ 0x1406d2288 ; ; 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, 0x1402ae950 push rdi ; +0x5, 0x1402ae955 sub rsp, 80h ; +0x6, 0x1402ae956 movaps [rsp+88h+var_18], xmm6 ; +0xd, 0x1402ae95d mov rax, rdx ; +0x12, 0x1402ae962 mov rbx, rcx ; +0x15, 0x1402ae965 cmp dword ptr [rcx+88h], 0 ; +0x18, 0x1402ae968 jz short loc_1402AE978 ; +0x1f, 0x1402ae96f xor al, al ; +0x21, 0x1402ae971 jmp loc_1402AEB72 ; +0x23, 0x1402ae973 lea rdx, [rsp+88h+arg_0] ; +0x28, 0x1402ae978 mov rcx, rax ; +0x30, 0x1402ae980 call cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x33, 0x1402ae983 lea r8, [rsp+88h+arg_0] ; +0x39, 0x1402ae989 lea rdx, [rsp+88h+arg_18] ; +0x41, 0x1402ae991 lea rcx, [rbx-140h] ; +0x49, 0x1402ae999 call cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x50, 0x1402ae9a0 mov rdx, rax ; +0x56, 0x1402ae9a6 lea rcx, [rsp+88h+arg_0] ; +0x59, 0x1402ae9a9 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x61, 0x1402ae9b1 mov rcx, [rbx+0C8h] ; +0x67, 0x1402ae9b7 mov rax, [rcx] ; +0x6e, 0x1402ae9be call qword ptr [rax+0C8h] ; +0x71, 0x1402ae9c1 movss xmm6, dword ptr [rax+4] ; +0x77, 0x1402ae9c7 mov rcx, [rbx+0C8h] ; +0x7c, 0x1402ae9cc mov rax, [rcx] ; +0x83, 0x1402ae9d3 call qword ptr [rax+0C8h] ; +0x86, 0x1402ae9d6 subss xmm6, cs:dword_1406231D0 ; +0x8c, 0x1402ae9dc addss xmm6, cs:flt_14062307C ; +0x94, 0x1402ae9e4 movss xmm1, dword ptr [rax] ; +0x9c, 0x1402ae9ec subss xmm1, cs:dword_1406231B0 ; +0xa0, 0x1402ae9f0 movss xmm0, cs:dword_140623294 ; +0xa8, 0x1402ae9f8 movss [rsp+88h+var_68], xmm0 ; +0xb0, 0x1402aea00 movss xmm3, cs:dword_14062326C ; +0xb6, 0x1402aea06 movaps xmm2, xmm6 ; +0xbe, 0x1402aea0e lea rcx, [rsp+88h+var_50] ; +0xc1, 0x1402aea11 call cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xc6, 0x1402aea16 lea rdx, [rsp+88h+arg_0] ; +0xcc, 0x1402aea1c lea rcx, [rsp+88h+var_50] ; +0xd4, 0x1402aea24 call cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xd9, 0x1402aea29 test al, al ; +0xdf, 0x1402aea2f jz loc_1402AEB70 ; +0xe1, 0x1402aea31 mov rax, [rbx+0C8h] ; +0xe7, 0x1402aea37 cmp byte ptr [rax+2F5h], 0 ; +0xee, 0x1402aea3e jnz loc_1402AEB70 ; +0xf5, 0x1402aea45 mov rcx, cs:qword_1406C2ED8 ; +0xfb, 0x1402aea4b test rcx, rcx ; +0x102, 0x1402aea52 jnz short loc_1402AEA89 ; +0x105, 0x1402aea55 mov ecx, 668h; Size ; +0x107, 0x1402aea57 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x10c, 0x1402aea5c mov [rsp+88h+arg_18], rax ; +0x111, 0x1402aea61 mov rcx, rax ; +0x119, 0x1402aea69 call sub_14017AB00 ; +0x11c, 0x1402aea6c nop ; +0x121, 0x1402aea71 mov cs:qword_1406C2ED8, rax ; +0x122, 0x1402aea72 mov rdx, [rax] ; +0x129, 0x1402aea79 mov rcx, rax ; +0x12c, 0x1402aea7c call qword ptr [rdx+48h] ; +0x12f, 0x1402aea7f mov rcx, cs:qword_1406C2ED8 ; +0x132, 0x1402aea82 lea rdx, word_14055A648 ; +0x139, 0x1402aea89 call GameManager__getUGV ; +0x140, 0x1402aea90 test al, al ; +0x145, 0x1402aea95 jz loc_1402AEB20 ; +0x147, 0x1402aea97 lea rax, [rsp+88h+var_40] ; +0x14d, 0x1402aea9d mov [rsp+88h+arg_18], rax ; +0x152, 0x1402aeaa2 xorps xmm0, xmm0 ; +0x15a, 0x1402aeaaa movups [rsp+88h+var_40], xmm0 ; +0x15d, 0x1402aeaad mov [rsp+88h+var_30], 4 ; +0x162, 0x1402aeab2 mov [rsp+88h+var_28], 0Fh ; +0x16b, 0x1402aeabb mov eax, cs:dword_1405628D0 ; +0x174, 0x1402aeac4 mov dword ptr [rsp+88h+var_40], eax ; +0x17a, 0x1402aeaca mov byte ptr [rsp+88h+var_40+4], 0 ; +0x17e, 0x1402aeace mov rcx, cs:qword_1406C2EE8 ; +0x183, 0x1402aead3 test rcx, rcx ; +0x18a, 0x1402aeada jnz short loc_1402AEB0E ; +0x18d, 0x1402aeadd mov ecx, 3E0h; Size ; +0x18f, 0x1402aeadf call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x194, 0x1402aeae4 mov [rsp+88h+var_58], rax ; +0x199, 0x1402aeae9 mov rcx, rax ; +0x19e, 0x1402aeaee call sub_1401D0AE0 ; +0x1a1, 0x1402aeaf1 nop ; +0x1a6, 0x1402aeaf6 mov cs:qword_1406C2EE8, rax ; +0x1a7, 0x1402aeaf7 mov rdx, [rax] ; +0x1ae, 0x1402aeafe mov rcx, rax ; +0x1b1, 0x1402aeb01 call qword ptr [rdx+48h] ; +0x1b4, 0x1402aeb04 mov rcx, cs:qword_1406C2EE8 ; +0x1b7, 0x1402aeb07 lea rdx, [rsp+88h+var_40] ; +0x1be, 0x1402aeb0e call GameStatsManager__isSpecialChestUnlocked ; +0x1c3, 0x1402aeb13 test al, al ; +0x1c8, 0x1402aeb18 jnz short loc_1402AEB20 ; +0x1ca, 0x1402aeb1a mov cl, 1 ; +0x1cc, 0x1402aeb1c jmp short loc_1402AEB22 ; +0x1ce, 0x1402aeb1e xor cl, cl ; +0x1d0, 0x1402aeb20 mov rax, [rbx+0C8h] ; +0x1d2, 0x1402aeb22 cmp dword ptr [rax+2F8h], 5 ; +0x1d9, 0x1402aeb29 jge short loc_1402AEB40 ; +0x1e0, 0x1402aeb30 test cl, cl ; +0x1e2, 0x1402aeb32 jnz short loc_1402AEB40 ; +0x1e4, 0x1402aeb34 mov rcx, rax ; +0x1e6, 0x1402aeb36 call AnimatedShopKeeper__playReactAnimation ; +0x1e9, 0x1402aeb39 jmp short loc_1402AEB70 ; +0x1ee, 0x1402aeb3e mov dword ptr [rax+2F8h], 2 ; +0x1f0, 0x1402aeb40 lea rcx, [rbx-140h] ; +0x1fa, 0x1402aeb4a call GJShopLayer__showReactMessage ; +0x201, 0x1402aeb51 cmp dword ptr [rbx+0D0h], 9 ; +0x206, 0x1402aeb56 jnz short loc_1402AEB70 ; +0x20d, 0x1402aeb5d mov rax, [rbx+0C8h] ; +0x20f, 0x1402aeb5f mov dword ptr [rax+2F8h], 0 ; +0x216, 0x1402aeb66 mov al, 1 ; +0x220, 0x1402aeb70 mov rbx, [rsp+88h+arg_8] ; +0x222, 0x1402aeb72 movaps xmm6, [rsp+88h+var_18] ; +0x22a, 0x1402aeb7a add rsp, 80h ; +0x22f, 0x1402aeb7f pop rdi ; +0x236, 0x1402aeb86 retn ; +0x237, 0x1402aeb87