	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_page_hittest
_preview_page_hittest:                  ## @preview_page_hittest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_preview@GOTPCREL(%rip), %r15
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	%rax, -56(%rbp)
	addq	24(%r15), %rax
	movq	%rax, -64(%rbp)
	movq	%rcx, -48(%rbp)
	addq	32(%r15), %rcx
	movq	%rcx, -40(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	callq	_PtInRect
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$2, (%r15)
	jl	LBB0_4
## %bb.2:
	movq	8(%r15), %rax
	addq	24(%r15), %rax
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	-64(%rbp), %xmm0
	movdqa	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%r14d, %esi
	callq	_PtInRect
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %edi
	callq	_is_last_preview_page
	xorl	%ebx, %ebx
	cmpq	$1, %rax
	adcl	$1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_preview,40,3                   ## @preview
	.no_dead_strip	_preview_page_hittest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_page_hittest
_preview_page_hittest:                  ; @preview_page_hittest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _preview@GOTPAGE
Lloh1:
	ldr	x20, [x20, _preview@GOTPAGEOFF]
	ldp	x8, x9, [x20, #8]
	ldp	x10, x11, [x20, #24]
	add	x10, x10, x8
	stp	x10, x8, [sp]
	add	x8, x11, x9
	stp	x9, x8, [sp, #16]
	mov	x0, sp
	mov	x1, x19
	bl	_PtInRect
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_6
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #2
	b.ge	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20, #24]
	ldr	x9, [x20, #8]
	add	x8, x9, x8
	ldr	q0, [sp]
	dup.2d	v1, x8
	add.2d	v0, v0, v1
	str	q0, [sp]
	mov	x0, sp
	mov	x1, x19
	bl	_PtInRect
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20, #4]
	bl	_is_last_preview_page
	cmp	x0, #0
	mov	w8, #1
	cinc	w0, w8, eq
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_preview,40,3                   ; @preview
	.no_dead_strip	_preview_page_hittest
.subsections_via_symbols
