	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function determine_unroll_factor
_determine_unroll_factor:               ## @determine_unroll_factor
	.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	%r8, %r15
	movl	%ecx, %r14d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_PARAM_MAX_UNROLL_TIMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	movl	%eax, %ebx
	movq	_PARAM_MAX_UNROLLED_INSNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	xorl	%edx, %edx
	divl	%r14d
	movl	$1, %r14d
	cmpl	$2, %eax
	jb	LBB0_10
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	movl	$1, %r15d
	testq	%r12, %r12
	movq	%r13, %rdi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_9
## %bb.2:
	movl	$1, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %ebx
	movq	8(%r14), %r14
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r14, %r14
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, %r12d
	movq	%rdi, %rbx
	movq	%r14, %rdi
	callq	_should_issue_prefetch_p
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r14), %eax
	cmpl	%r15d, %eax
	cmoval	%eax, %r15d
	jmp	LBB0_7
LBB0_9:
	movq	_SIMULTANEOUS_PREFETCHES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%r13), %eax
	decl	%eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
	cmpl	%eax, %r15d
	cmoval	%r15d, %r14d
	cmpl	%ebx, %r14d
	cmovael	%ebx, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_should_unroll_loop_p
	testl	%eax, %eax
	movl	$1, %eax
	cmovel	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARAM_MAX_UNROLL_TIMES,4,2     ## @PARAM_MAX_UNROLL_TIMES
	.comm	_PARAM_MAX_UNROLLED_INSNS,4,2   ## @PARAM_MAX_UNROLLED_INSNS
	.comm	_SIMULTANEOUS_PREFETCHES,4,2    ## @SIMULTANEOUS_PREFETCHES
	.no_dead_strip	_determine_unroll_factor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function determine_unroll_factor
_determine_unroll_factor:               ; @determine_unroll_factor
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PARAM_MAX_UNROLL_TIMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARAM_MAX_UNROLL_TIMES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PARAM_VALUE
	mov	x23, x0
Lloh3:
	adrp	x8, _PARAM_MAX_UNROLLED_INSNS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARAM_MAX_UNROLLED_INSNS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PARAM_VALUE
	udiv	w8, w0, w24
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_4
LBB0_2:
	cmp	w8, w23
	csel	w24, w8, w23, lo
	mov	w25, #1
	cbnz	x22, LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _SIMULTANEOUS_PREFETCHES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIMULTANEOUS_PREFETCHES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w21, w8
	sub	w9, w9, #1
	udiv	w8, w9, w8
	cmp	w25, w8
	csel	w8, w25, w8, hi
	cmp	w8, w24
	csel	w21, w8, w24, lo
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_should_unroll_loop_p
	cmp	w0, #0
	csinc	w0, w21, wzr, ne
LBB0_4:
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22, #8]
	cbz	x22, LBB0_3
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x23, [x22]
	cbnz	x23, LBB0_8
	b	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_should_issue_prefetch_p
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x23]
	cmp	w8, w25
	csel	w25, w8, w25, hi
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PARAM_MAX_UNROLL_TIMES,4,2     ; @PARAM_MAX_UNROLL_TIMES
	.comm	_PARAM_MAX_UNROLLED_INSNS,4,2   ; @PARAM_MAX_UNROLLED_INSNS
	.comm	_SIMULTANEOUS_PREFETCHES,4,2    ; @SIMULTANEOUS_PREFETCHES
	.no_dead_strip	_determine_unroll_factor
.subsections_via_symbols
