	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schedule_prefetches
_schedule_prefetches:                   ## @schedule_prefetches
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movl	%esi, %r14d
	movq	_SIMULTANEOUS_PREFETCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %eax
	imull	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	xorl	%r12d, %r12d
	cmpl	%r13d, %eax
	cmovbl	%eax, %r13d
	movq	%rdi, %r15
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_fprintf
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.4:
	testq	%r15, %r15
	je	LBB0_12
## %bb.5:
	decl	%r14d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_12
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r15), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rbx
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	callq	_should_issue_prefetch_p
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	$1, (%rbx)
	movl	4(%rbx), %ecx
	leal	(%r14,%rcx), %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	$1, %r12d
	subl	%eax, %r13d
	ja	LBB0_10
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIMULTANEOUS_PREFETCHES,4,2    ## @SIMULTANEOUS_PREFETCHES
	.comm	_dump_file,8,3                  ## @dump_file
	.comm	_dump_flags,4,2                 ## @dump_flags
	.comm	_TDF_DETAILS,4,2                ## @TDF_DETAILS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Max prefetches to issue: %d.\n"

	.no_dead_strip	_schedule_prefetches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schedule_prefetches
_schedule_prefetches:                   ; @schedule_prefetches
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SIMULTANEOUS_PREFETCHES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIMULTANEOUS_PREFETCHES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w9, w8, w1
	udiv	w9, w9, w2
	cmp	w9, w8
	csel	w20, w9, w8, lo
Lloh3:
	adrp	x8, _dump_file@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dump_file@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _dump_flags@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_fprintf
LBB0_3:
	cmp	w20, #0
	mov	w21, #0
	ccmp	x19, #0, #4, ne
	b.eq	LBB0_11
; %bb.4:
	sub	w23, w22, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x22, [x19]
	cbnz	x22, LBB0_9
	b	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	w21, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_should_issue_prefetch_p
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w21, #1
	str	w21, [x22]
	ldr	w8, [x22, #4]
	add	w9, w23, w8
	udiv	w8, w9, w8
	subs	w20, w20, w8
	b.hi	LBB0_7
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIMULTANEOUS_PREFETCHES,4,2    ; @SIMULTANEOUS_PREFETCHES
	.comm	_dump_file,8,3                  ; @dump_file
	.comm	_dump_flags,4,2                 ; @dump_flags
	.comm	_TDF_DETAILS,4,2                ; @TDF_DETAILS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Max prefetches to issue: %d.\n"

	.no_dead_strip	_schedule_prefetches
.subsections_via_symbols
