; ; BoomScrollLayer::ccTouchEnded from 0x1400424f0 to 0x1400426d8 (488 bytes) ; ; 4 xrefs: ; > @ 0x1407061c0 ; > @ 0x140884e60 ; > @ 0x140884e94 ; > @ 0x14090f5d8 ; ; 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:25:30 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x1400424f0 push rsi ; +0x5, 0x1400424f5 sub rsp, 60h ; +0x6, 0x1400424f6 mov rax, cs:__security_cookie ; +0xa, 0x1400424fa xor rax, rsp ; +0x11, 0x140042501 mov [rsp+68h+var_30], rax ; +0x14, 0x140042504 mov rax, rdx ; +0x19, 0x140042509 mov rbx, rcx ; +0x1c, 0x14004250c cmp [rcx+98h], rdx ; +0x1f, 0x14004250f jnz loc_1400426BD ; +0x26, 0x140042516 mov qword ptr [rcx+98h], 0 ; +0x2c, 0x14004251c lea rdx, [rsp+68h+var_48] ; +0x37, 0x140042527 mov rcx, rax ; +0x3c, 0x14004252c mov [rsp+68h+arg_10], rdi ; +0x3f, 0x14004252f movaps [rsp+68h+var_18], xmm6 ; +0x47, 0x140042537 call cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x4c, 0x14004253c call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x52, 0x140042542 mov rcx, rax ; +0x58, 0x140042548 lea r8, [rsp+68h+var_48] ; +0x5b, 0x14004254b lea rdx, [rsp+68h+Time] ; +0x60, 0x140042550 call cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x65, 0x140042555 mov rdx, rax ; +0x6b, 0x14004255b lea rcx, [rsp+68h+var_48] ; +0x6e, 0x14004255e call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x73, 0x140042563 movss xmm6, [rsp+68h+var_48] ; +0x79, 0x140042569 lea rcx, [rsp+68h+Time]; Time ; +0x7f, 0x14004256f subss xmm6, dword ptr [rbx+6Ch] ; +0x84, 0x140042574 mov edi, [rbx+10Ch] ; +0x89, 0x140042579 call cs:_ftime64 ; +0x8f, 0x14004257f movzx eax, [rsp+68h+Time.millitm] ; +0x95, 0x140042585 xorps xmm0, xmm0 ; +0x9a, 0x14004258a cvtsi2sd xmm0, [rsp+68h+Time.time] ; +0x9d, 0x14004258d movdqa xmm3, cs:xmmword_140836C90 ; +0xa4, 0x140042594 movd xmm2, eax ; +0xac, 0x14004259c cvtdq2pd xmm2, xmm2 ; +0xb0, 0x1400425a0 divsd xmm2, cs:qword_140835460 ; +0xb4, 0x1400425a4 addsd xmm2, xmm0 ; +0xbc, 0x1400425ac xorps xmm0, xmm0 ; +0xc0, 0x1400425b0 subsd xmm2, qword ptr [rbx+0A8h] ; +0xc3, 0x1400425b3 ucomisd xmm2, xmm0 ; +0xcb, 0x1400425bb jp short loc_1400425D5 ; +0xcf, 0x1400425bf jnz short loc_1400425D5 ; +0xd1, 0x1400425c1 movss xmm0, dword ptr [rbx+0D4h] ; +0xd3, 0x1400425c3 addss xmm0, cs:flt_140835080 ; +0xdb, 0x1400425cb jmp short loc_1400425E6 ; +0xe3, 0x1400425d3 movaps xmm0, xmm6 ; +0xe5, 0x1400425d5 andps xmm0, xmm3 ; +0xe8, 0x1400425d8 cvtps2pd xmm1, xmm0 ; +0xeb, 0x1400425db divsd xmm1, xmm2 ; +0xee, 0x1400425de cvtpd2ps xmm0, xmm1 ; +0xf2, 0x1400425e2 movaps xmm2, xmm6 ; +0xf6, 0x1400425e6 movss dword ptr [rbx+70h], xmm0 ; +0xf9, 0x1400425e9 movss xmm1, dword ptr [rbx+0F0h] ; +0xfe, 0x1400425ee andps xmm2, xmm3 ; +0x106, 0x1400425f6 comiss xmm2, xmm1 ; +0x109, 0x1400425f9 jnb short loc_14004261C ; +0x10c, 0x1400425fc comiss xmm0, dword ptr [rbx+0D0h] ; +0x10e, 0x1400425fe jbe loc_1400426A2 ; +0x115, 0x140042605 mulss xmm1, cs:dword_140834E84 ; +0x11b, 0x14004260b comiss xmm2, xmm1 ; +0x123, 0x140042613 jb loc_1400426A2 ; +0x126, 0x140042616 mov rcx, [rbx+0B8h] ; +0x12c, 0x14004261c mov rax, [rcx] ; +0x133, 0x140042623 call qword ptr [rax+0C8h] ; +0x136, 0x140042626 mov rdx, rax ; +0x13c, 0x14004262c lea rcx, [rsp+68h+Time] ; +0x13f, 0x14004262f call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x144, 0x140042634 lea rcx, [rbx-140h] ; +0x14a, 0x14004263a call BoomScrollLayer__pageNumberForPosition ; +0x151, 0x140042641 mov edi, eax ; +0x156, 0x140042646 cmp eax, [rbx+10Ch] ; +0x158, 0x140042648 jnz short loc_1400426A2 ; +0x15e, 0x14004264e movaps [rsp+68h+var_28], xmm7 ; +0x160, 0x140042650 xorps xmm7, xmm7 ; +0x165, 0x140042655 comiss xmm7, xmm6 ; +0x168, 0x140042658 jbe short loc_14004268C ; +0x16b, 0x14004265b cmp byte ptr [rbx+74h], 0 ; +0x16d, 0x14004265d jnz short loc_140042688 ; +0x171, 0x140042661 cmp byte ptr [rbx+88h], 0 ; +0x173, 0x140042663 jz short loc_140042675 ; +0x17a, 0x14004266a mov rcx, [rbx+80h] ; +0x17c, 0x14004266c jmp short loc_14004267C ; +0x183, 0x140042673 mov rcx, [rbx+0A0h] ; +0x185, 0x140042675 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x18c, 0x14004267c dec eax ; +0x192, 0x140042682 cmp edi, eax ; +0x194, 0x140042684 jge short loc_14004268C ; +0x196, 0x140042686 inc edi ; +0x198, 0x140042688 jmp short loc_14004269D ; +0x19a, 0x14004268a comiss xmm6, xmm7 ; +0x19c, 0x14004268c jbe short loc_14004269D ; +0x19f, 0x14004268f cmp byte ptr [rbx+74h], 0 ; +0x1a1, 0x140042691 jnz short loc_14004269B ; +0x1a5, 0x140042695 test edi, edi ; +0x1a7, 0x140042697 jle short loc_14004269D ; +0x1a9, 0x140042699 dec edi ; +0x1ab, 0x14004269b movaps xmm7, [rsp+68h+var_28] ; +0x1ad, 0x14004269d mov edx, edi ; +0x1b2, 0x1400426a2 lea rcx, [rbx-140h] ; +0x1b4, 0x1400426a4 call BoomScrollLayer__moveToPage ; +0x1bb, 0x1400426ab movaps xmm6, [rsp+68h+var_18] ; +0x1c0, 0x1400426b0 mov rdi, [rsp+68h+arg_10] ; +0x1c5, 0x1400426b5 mov rcx, [rsp+68h+var_30] ; +0x1cd, 0x1400426bd xor rcx, rsp; StackCookie ; +0x1d2, 0x1400426c2 call __security_check_cookie ; +0x1d5, 0x1400426c5 mov rbx, [rsp+68h+arg_18] ; +0x1da, 0x1400426ca add rsp, 60h ; +0x1e2, 0x1400426d2 pop rsi ; +0x1e6, 0x1400426d6 retn ; +0x1e7, 0x1400426d7