	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CalculatePrefetchSourceLines
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
LCPI0_3:
	.quad	0x8000000000000000              ## double -0
LCPI0_4:
	.quad	0xc000000000000000              ## double -2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CalculatePrefetchSourceLines:          ## @CalculatePrefetchSourceLines
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdi, %rbx
	addsd	%xmm0, %xmm1
	addsd	LCPI0_0(%rip), %xmm1
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	cvtsi2sd	%esi, %xmm3
	mulsd	%xmm2, %xmm3
	mulsd	%xmm0, %xmm3
	addsd	%xmm3, %xmm1
LBB0_2:
	movq	16(%rbp), %r13
	mulsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm0
	movl	$1, %edi
	callq	_dml_floor
	movsd	%xmm0, (%r12)
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_dml_print
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
LBB0_6:
	movl	%r14d, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	divsd	%xmm1, %xmm0
	movl	$1, %edi
	callq	_dml_ceil
	cvttsd2si	%xmm0, %rcx
	movl	%ecx, (%r13)
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_8
## %bb.7:
	addsd	-64(%rbp), %xmm0                ## 8-byte Folded Reload
LBB0_8:
	addsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	jmp	LBB0_9
LBB0_3:
	addsd	LCPI0_2(%rip), %xmm0
	movl	%r14d, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	movapd	%xmm1, -64(%rbp)                ## 16-byte Spill
	divsd	%xmm1, %xmm0
	movl	$1, %edi
	callq	_dml_ceil
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	movl	%eax, (%r13)
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	cmpltsd	%xmm0, %xmm1
	movsd	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero
	andpd	%xmm1, %xmm2
	andnpd	-64(%rbp), %xmm1                ## 16-byte Folded Reload
	orpd	%xmm2, %xmm1
	addsd	%xmm0, %xmm1
	addsd	LCPI0_4(%rip), %xmm1
	cvttsd2si	%xmm1, %rax
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	movl	$1, %edi
	movl	%edx, %esi
	callq	_dml_max
	movl	%eax, %edx
	movl	(%r13), %ecx
LBB0_9:
	imull	%r14d, %ecx
	addl	%edx, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rcx, %xmm0
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING DML: using viewport y position of 0 even though actual viewport y position is non-zero in prefetch source lines calculation\n"

	.no_dead_strip	_CalculatePrefetchSourceLines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalculatePrefetchSourceLines
_CalculatePrefetchSourceLines:          ; @CalculatePrefetchSourceLines
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x23, x0
	fadd	d1, d0, d1
	fmov	d8, #1.00000000
	fadd	d1, d1, d8
	scvtf	d2, w1
	fmov	d3, #0.50000000
	fmul	d2, d2, d3
	fmadd	d0, d2, d0, d1
	cmp	w2, #0
	fcsel	d0, d0, d1, eq
	fmul	d0, d0, d3
	mov	w0, #1
	bl	_dml_floor
	str	d0, [x21]
	ldr	w8, [x23]
	cbz	w8, LBB0_6
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dml_print
	ldr	d0, [x21]
LBB0_3:
	ucvtf	d8, w19
	fdiv	d0, d0, d8
	mov	w0, #1
	bl	_dml_ceil
	fcvtzu	w8, d0
	str	w8, [x20]
	ldr	d0, [x21]
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.gt	LBB0_5
; %bb.4:
	fadd	d0, d0, d8
LBB0_5:
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fcvtzu	w9, d0
	udiv	w10, w9, w19
	msub	w0, w10, w19, w9
	b	LBB0_7
LBB0_6:
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	ucvtf	d9, w19
	fdiv	d0, d0, d9
	mov	w0, #1
	bl	_dml_ceil
	fadd	d0, d0, d8
	fcvtzu	w8, d0
	str	w8, [x20]
	ldr	d0, [x21]
	fcmp	d0, d8
	mov	x8, #-9223372036854775808
	fmov	d1, x8
	fcsel	d1, d1, d9, gt
	fadd	d0, d0, d1
	fmov	d1, #-2.00000000
	fadd	d0, d0, d1
	fcvtzu	w8, d0
	udiv	w9, w8, w19
	msub	w1, w9, w19, w8
	mov	w0, #1
	bl	_dml_max
	ldr	w8, [x20]
LBB0_7:
	madd	w8, w8, w19, w0
	ucvtf	d0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING DML: using viewport y position of 0 even though actual viewport y position is non-zero in prefetch source lines calculation\n"

	.no_dead_strip	_CalculatePrefetchSourceLines
.subsections_via_symbols
