; ; BoomScrollLayer::ccTouchEnded from 0x14003eb60 to 0x14003ecf1 (401 bytes) ; ; 4 xrefs: ; > @ 0x14052b6a0 ; > @ 0x140661de8 ; > @ 0x140661e1c ; > @ 0x1406c40e0 ; ; 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 ; push rbx ; +0x0, 0x14003eb60 sub rsp, 40h ; +0x2, 0x14003eb62 mov rax, rdx ; +0x6, 0x14003eb66 mov rbx, rcx ; +0x9, 0x14003eb69 cmp [rcx+90h], rdx ; +0xc, 0x14003eb6c jnz loc_14003ECEB ; +0x13, 0x14003eb73 mov qword ptr [rcx+90h], 0 ; +0x19, 0x14003eb79 lea rdx, [rsp+48h+arg_0] ; +0x24, 0x14003eb84 mov rcx, rax ; +0x29, 0x14003eb89 mov [rsp+48h+arg_10], rdi ; +0x2c, 0x14003eb8c movaps [rsp+48h+var_18], xmm6 ; +0x31, 0x14003eb91 call cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x36, 0x14003eb96 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x14003eb9c mov rcx, rax ; +0x42, 0x14003eba2 lea r8, [rsp+48h+arg_0] ; +0x45, 0x14003eba5 lea rdx, [rsp+48h+arg_8] ; +0x4a, 0x14003ebaa call cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x4f, 0x14003ebaf mov rdx, rax ; +0x55, 0x14003ebb5 lea rcx, [rsp+48h+arg_0] ; +0x58, 0x14003ebb8 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x5d, 0x14003ebbd movss xmm6, [rsp+48h+arg_0] ; +0x63, 0x14003ebc3 subss xmm6, dword ptr [rbx+64h] ; +0x69, 0x14003ebc9 mov edi, [rbx+104h] ; +0x6e, 0x14003ebce call sub_14003CF30 ; +0x74, 0x14003ebd4 movss xmm3, dword ptr cs:xmmword_1406243C0 ; +0x79, 0x14003ebd9 movaps xmm2, xmm0 ; +0x81, 0x14003ebe1 subsd xmm2, qword ptr [rbx+0A0h] ; +0x84, 0x14003ebe4 xorps xmm1, xmm1 ; +0x8c, 0x14003ebec ucomisd xmm2, xmm1 ; +0x8f, 0x14003ebef jp short loc_14003EC09 ; +0x93, 0x14003ebf3 jnz short loc_14003EC09 ; +0x95, 0x14003ebf5 movss xmm0, dword ptr [rbx+0CCh] ; +0x97, 0x14003ebf7 addss xmm0, cs:flt_140622C24 ; +0x9f, 0x14003ebff jmp short loc_14003EC1A ; +0xa7, 0x14003ec07 movaps xmm0, xmm6 ; +0xa9, 0x14003ec09 andps xmm0, xmm3 ; +0xac, 0x14003ec0c cvtps2pd xmm1, xmm0 ; +0xaf, 0x14003ec0f divsd xmm1, xmm2 ; +0xb2, 0x14003ec12 cvtpd2ps xmm0, xmm1 ; +0xb6, 0x14003ec16 movaps xmm2, xmm6 ; +0xba, 0x14003ec1a movss dword ptr [rbx+68h], xmm0 ; +0xbd, 0x14003ec1d movss xmm1, dword ptr [rbx+0E8h] ; +0xc2, 0x14003ec22 andps xmm2, xmm3 ; +0xca, 0x14003ec2a comiss xmm2, xmm1 ; +0xcd, 0x14003ec2d jnb short loc_14003EC50 ; +0xd0, 0x14003ec30 comiss xmm0, dword ptr [rbx+0C8h] ; +0xd2, 0x14003ec32 jbe loc_14003ECD3 ; +0xd9, 0x14003ec39 mulss xmm1, cs:dword_140622A88 ; +0xdf, 0x14003ec3f comiss xmm2, xmm1 ; +0xe7, 0x14003ec47 jb loc_14003ECD3 ; +0xea, 0x14003ec4a mov rcx, [rbx+0B0h] ; +0xf0, 0x14003ec50 mov rax, [rcx] ; +0xf7, 0x14003ec57 call qword ptr [rax+0C8h] ; +0xfa, 0x14003ec5a mov rdx, rax ; +0x100, 0x14003ec60 lea rcx, [rsp+48h+arg_8] ; +0x103, 0x14003ec63 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x108, 0x14003ec68 lea rcx, [rbx-140h] ; +0x10e, 0x14003ec6e call BoomScrollLayer__pageNumberForPosition ; +0x115, 0x14003ec75 mov edi, eax ; +0x11a, 0x14003ec7a cmp eax, [rbx+104h] ; +0x11c, 0x14003ec7c jnz short loc_14003ECD3 ; +0x122, 0x14003ec82 movaps [rsp+48h+var_28], xmm7 ; +0x124, 0x14003ec84 xorps xmm7, xmm7 ; +0x129, 0x14003ec89 comiss xmm7, xmm6 ; +0x12c, 0x14003ec8c jbe short loc_14003ECBD ; +0x12f, 0x14003ec8f cmp byte ptr [rbx+6Ch], 0 ; +0x131, 0x14003ec91 jnz short loc_14003ECB9 ; +0x135, 0x14003ec95 cmp byte ptr [rbx+80h], 0 ; +0x137, 0x14003ec97 jz short loc_14003ECA6 ; +0x13e, 0x14003ec9e mov rcx, [rbx+78h] ; +0x140, 0x14003eca0 jmp short loc_14003ECAD ; +0x144, 0x14003eca4 mov rcx, [rbx+98h] ; +0x146, 0x14003eca6 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x14d, 0x14003ecad dec eax ; +0x153, 0x14003ecb3 cmp edi, eax ; +0x155, 0x14003ecb5 jge short loc_14003ECBD ; +0x157, 0x14003ecb7 inc edi ; +0x159, 0x14003ecb9 jmp short loc_14003ECCE ; +0x15b, 0x14003ecbb comiss xmm6, xmm7 ; +0x15d, 0x14003ecbd jbe short loc_14003ECCE ; +0x160, 0x14003ecc0 cmp byte ptr [rbx+6Ch], 0 ; +0x162, 0x14003ecc2 jnz short loc_14003ECCC ; +0x166, 0x14003ecc6 test edi, edi ; +0x168, 0x14003ecc8 jle short loc_14003ECCE ; +0x16a, 0x14003ecca dec edi ; +0x16c, 0x14003eccc movaps xmm7, [rsp+48h+var_28] ; +0x16e, 0x14003ecce lea rcx, [rbx-140h] ; +0x173, 0x14003ecd3 mov edx, edi ; +0x17a, 0x14003ecda call BoomScrollLayer__moveToPage ; +0x17c, 0x14003ecdc movaps xmm6, [rsp+48h+var_18] ; +0x181, 0x14003ece1 mov rdi, [rsp+48h+arg_10] ; +0x186, 0x14003ece6 add rsp, 40h ; +0x18b, 0x14003eceb pop rbx ; +0x18f, 0x14003ecef retn ; +0x190, 0x14003ecf0