	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decide_unroll_constant_iterations
_decide_unroll_constant_iterations:     ## @decide_unroll_constant_iterations
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_UAP_UNROLL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_29
## %bb.1:
	movq	%rdi, %r15
	movq	_dump_file@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_3:
	movq	_PARAM_MAX_UNROLLED_INSNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	xorl	%edx, %edx
	divl	(%r15)
	movl	%eax, %ebx
	movq	_PARAM_MAX_AVERAGE_UNROLLED_INSNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	xorl	%edx, %edx
	divl	4(%r15)
	movl	%eax, %r14d
	cmpl	%eax, %ebx
	cmovbl	%ebx, %r14d
	movq	_PARAM_MAX_UNROLL_TIMES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_PARAM_VALUE
	cmpl	%eax, %r14d
	jbe	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	callq	_PARAM_VALUE
	movl	%eax, %r14d
LBB0_5:
	cmpl	$1, %r14d
	ja	LBB0_9
## %bb.6:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_get_simple_loop_desc
	cmpl	$0, 28(%rax)
	je	LBB0_12
## %bb.10:
	movq	%rax, %rdi
	cmpl	$0, 24(%rax)
	je	LBB0_12
## %bb.11:
	cmpq	$0, 16(%rdi)
	je	LBB0_14
LBB0_12:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_14:
	movl	(%rdi), %eax
	leal	(%r14,%r14), %ebx
	cmpl	%ebx, %eax
	jae	LBB0_17
## %bb.15:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_17:
	leal	10(%rbx), %ecx
	leal	2(%rbx), %edx
	orl	$1, %ebx
	leal	-2(%rax), %esi
	cmpl	%eax, %ebx
	cmovbl	%edx, %esi
	leal	-1(%r14), %edx
	xorl	%r12d, %r12d
	cmpl	%edx, %esi
	jb	LBB0_26
## %bb.18:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leal	2(%rsi), %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r13d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	leal	1(%rsi), %r15d
	leal	-1(%rbx), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	divl	%ecx
	movl	%edx, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_loop_exit_at_end_p
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpl	%r14d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%rdx), %rax
	movq	_NULL_RTX@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	je	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	leal	(%r14,%rsi), %r15d
	addl	$2, %r15d
	jmp	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_19 Depth=1
	addl	%r14d, %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	cmpl	%ecx, %r15d
	cmovbl	%r13d, %r12d
	cmovbl	%r15d, %ecx
	addl	$-3, %ebx
	cmpl	%r8d, %ebx
	jb	LBB0_25
## %bb.30:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdx), %eax
	decl	%esi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %ebx
	jmp	LBB0_19
LBB0_25:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	_dump_file@GOTPCREL(%rip), %r13
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_26:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.28:
	leal	1(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rdi
	movq	_LPT_UNROLL_CONSTANT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r12d, 8(%r15)
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.31:
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_27:
	movq	_LPT_UNROLL_CONSTANT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r12d, 8(%r15)
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UAP_UNROLL,4,2                 ## @UAP_UNROLL
	.comm	_dump_file,8,3                  ## @dump_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n;; Considering unrolling loop with constant number of iterations\n"

	.comm	_PARAM_MAX_UNROLLED_INSNS,4,2   ## @PARAM_MAX_UNROLLED_INSNS
	.comm	_PARAM_MAX_AVERAGE_UNROLLED_INSNS,4,2 ## @PARAM_MAX_AVERAGE_UNROLLED_INSNS
	.comm	_PARAM_MAX_UNROLL_TIMES,4,2     ## @PARAM_MAX_UNROLL_TIMES
L_.str.1:                               ## @.str.1
	.asciz	";; Not considering loop, is too big\n"

L_.str.2:                               ## @.str.2
	.asciz	";; Unable to prove that the loop iterates constant times\n"

L_.str.3:                               ## @.str.3
	.asciz	";; Not unrolling loop, doesn't roll\n"

	.comm	_NULL_RTX,8,3                   ## @NULL_RTX
L_.str.4:                               ## @.str.4
	.asciz	";; max_unroll %d (%d copies, initial %d).\n"

	.comm	_LPT_UNROLL_CONSTANT,4,2        ## @LPT_UNROLL_CONSTANT
L_.str.5:                               ## @.str.5
	.asciz	";; Decided to unroll the constant times rolling loop, %d times.\n"

	.no_dead_strip	_decide_unroll_constant_iterations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decide_unroll_constant_iterations
_decide_unroll_constant_iterations:     ; @decide_unroll_constant_iterations
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _UAP_UNROLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UAP_UNROLL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_32
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x22, _dump_file@GOTPAGE
Lloh4:
	ldr	x22, [x22, _dump_file@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
Lloh7:
	adrp	x8, _PARAM_MAX_UNROLLED_INSNS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PARAM_MAX_UNROLLED_INSNS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_PARAM_VALUE
	ldr	w9, [x19]
Lloh10:
	adrp	x8, _PARAM_MAX_AVERAGE_UNROLLED_INSNS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PARAM_MAX_AVERAGE_UNROLLED_INSNS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	udiv	w20, w0, w9
	mov	x0, x8
	bl	_PARAM_VALUE
	ldr	w8, [x19, #4]
	udiv	w8, w0, w8
	cmp	w20, w8
	csel	w20, w20, w8, lo
Lloh13:
	adrp	x21, _PARAM_MAX_UNROLL_TIMES@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PARAM_MAX_UNROLL_TIMES@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PARAM_VALUE
	cmp	w20, w0
	b.ls	LBB0_5
; %bb.4:
	ldr	w0, [x21]
	bl	_PARAM_VALUE
	mov	x20, x0
LBB0_5:
	subs	w21, w20, #1
	b.hi	LBB0_8
; %bb.6:
	ldr	x0, [x22]
	cbz	x0, LBB0_32
; %bb.7:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	bl	_get_simple_loop_desc
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_11
; %bb.9:
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_14
LBB0_11:
	ldr	x0, [x22]
	cbz	x0, LBB0_32
; %bb.12:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_fprintf
LBB0_14:
	ldr	w8, [x0]
	lsl	w9, w20, #1
	cmp	w8, w9
	b.hs	LBB0_17
; %bb.15:
	ldr	x0, [x22]
	cbz	x0, LBB0_32
; %bb.16:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_17:
	add	w25, w9, #10
	add	w10, w9, #2
	orr	w9, w9, #0x1
	sub	w11, w8, #2
	cmp	w9, w8
	csel	w26, w10, w11, lo
	cmp	w26, w21
	b.hs	LBB0_19
; %bb.18:
	mov	w23, #0
	b	LBB0_28
LBB0_19:
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	mov	w23, #0
	add	w27, w26, #2
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	w22, w27, #2
	add	w24, w26, #1
	sub	w28, w27, #1
	udiv	w9, w8, w28
	msub	w21, w9, w28, w8
	mov	x0, x19
	bl	_loop_exit_at_end_p
	cbz	w0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cmp	w22, w21
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x10, #8]
Lloh21:
	adrp	x9, _NULL_RTX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NULL_RTX@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w8, w21, w26
	add	w24, w8, #2
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w24, w24, w21
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_20 Depth=1
	cmp	w24, w25
	csel	w23, w22, w23, lo
	csel	w25, w24, w25, lo
	sub	w8, w27, #3
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.lo	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x10]
	sub	w26, w26, #1
	mov	x27, x28
	b	LBB0_20
LBB0_27:
Lloh24:
	adrp	x22, _dump_file@GOTPAGE
Lloh25:
	ldr	x22, [x22, _dump_file@GOTPAGEOFF]
LBB0_28:
	ldr	x0, [x22]
	cbz	x0, LBB0_31
; %bb.29:
	add	w8, w23, #1
	stp	x25, x20, [sp, #8]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x0, [x22]
Lloh28:
	adrp	x8, _LPT_UNROLL_CONSTANT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LPT_UNROLL_CONSTANT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	stp	w23, w8, [x19, #8]
	cbz	x0, LBB0_32
; %bb.30:
	str	x23, [sp]
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	b	LBB0_32
LBB0_31:
Lloh33:
	adrp	x8, _LPT_UNROLL_CONSTANT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _LPT_UNROLL_CONSTANT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	stp	w23, w8, [x19, #8]
LBB0_32:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_UAP_UNROLL,4,2                 ; @UAP_UNROLL
	.comm	_dump_file,8,3                  ; @dump_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n;; Considering unrolling loop with constant number of iterations\n"

	.comm	_PARAM_MAX_UNROLLED_INSNS,4,2   ; @PARAM_MAX_UNROLLED_INSNS
	.comm	_PARAM_MAX_AVERAGE_UNROLLED_INSNS,4,2 ; @PARAM_MAX_AVERAGE_UNROLLED_INSNS
	.comm	_PARAM_MAX_UNROLL_TIMES,4,2     ; @PARAM_MAX_UNROLL_TIMES
l_.str.1:                               ; @.str.1
	.asciz	";; Not considering loop, is too big\n"

l_.str.2:                               ; @.str.2
	.asciz	";; Unable to prove that the loop iterates constant times\n"

l_.str.3:                               ; @.str.3
	.asciz	";; Not unrolling loop, doesn't roll\n"

	.comm	_NULL_RTX,8,3                   ; @NULL_RTX
l_.str.4:                               ; @.str.4
	.asciz	";; max_unroll %d (%d copies, initial %d).\n"

	.comm	_LPT_UNROLL_CONSTANT,4,2        ; @LPT_UNROLL_CONSTANT
l_.str.5:                               ; @.str.5
	.asciz	";; Decided to unroll the constant times rolling loop, %d times.\n"

	.no_dead_strip	_decide_unroll_constant_iterations
.subsections_via_symbols
