	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decide_unrolling_and_peeling
_decide_unrolling_and_peeling:          ## @decide_unrolling_and_peeling
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r13
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_1
## %bb.2:
	cmpq	%rax, %r13
	je	LBB0_14
## %bb.3:
	movq	_LPT_NONE@GOTPCREL(%rip), %r12
	movq	_dump_file@GOTPCREL(%rip), %r14
	jmp	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rsi
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%rbx), %r13
	je	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r13, %r15
	movq	48(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r13
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%r15), %r13
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r15), %edi
	callq	_maybe_hot_bb_p
	testl	%eax, %eax
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_can_duplicate_loop_p
	testl	%eax, %eax
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r15)
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jne	LBB0_20
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_num_loop_insns
	movl	%eax, 20(%r15)
	movq	%r15, %rdi
	callq	_average_num_loop_insns
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_decide_unroll_constant_iterations
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, %rax
	je	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, %rax
	jne	LBB0_13
	jmp	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_decide_unroll_runtime_iterations
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_decide_unroll_stupid
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_13
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_decide_peel_simple
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LPT_NONE,8,3                   ## @LPT_NONE
	.comm	_dump_file,8,3                  ## @dump_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n;; *** Considering loop %d ***\n"

L_.str.1:                               ## @.str.1
	.asciz	";; Not considering loop, cold area\n"

L_.str.2:                               ## @.str.2
	.asciz	";; Not considering loop, cannot duplicate\n"

L_.str.3:                               ## @.str.3
	.asciz	";; Not considering loop, is not innermost\n"

	.no_dead_strip	_decide_unrolling_and_peeling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decide_unrolling_and_peeling
_decide_unrolling_and_peeling:          ; @decide_unrolling_and_peeling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	mov	x9, x8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x9
	ldr	x9, [x9, #24]
	cbnz	x9, LBB0_1
; %bb.2:
	cmp	x26, x8
	b.eq	LBB0_26
; %bb.3:
Lloh0:
	adrp	x27, _LPT_NONE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _LPT_NONE@GOTPAGEOFF]
Lloh2:
	adrp	x28, _dump_file@GOTPAGE
Lloh3:
	ldr	x28, [x28, _dump_file@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x23, l_.str.3@PAGE
Lloh9:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh10:
	adrp	x24, l_.str@PAGE
Lloh11:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x23
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_fprintf
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	cmp	x26, x8
	b.eq	LBB0_26
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x25, x26
	ldr	x8, [x26, #48]
	cbz	x8, LBB0_9
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x8
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_8
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [x25, #40]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27]
	str	x8, [x25, #8]
	ldr	x0, [x28]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x25]
	str	x8, [sp]
	mov	x1, x24
	bl	_fprintf
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x25, #32]
	bl	_maybe_hot_bb_p
	cbz	w0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_can_duplicate_loop_p
	cbz	w0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x28]
	cbnz	x0, LBB0_4
	b	LBB0_6
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x28]
	cbz	x0, LBB0_6
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x21
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x28]
	cbz	x0, LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x22
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_num_loop_insns
	str	w0, [x25, #20]
	mov	x0, x25
	bl	_average_num_loop_insns
	str	w0, [x25, #16]
	mov	x0, x25
	mov	x1, x19
	bl	_decide_unroll_constant_iterations
	ldr	x8, [x25, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	x8, x9
	b.eq	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x8, x9
	b.ne	LBB0_6
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x19
	bl	_decide_unroll_runtime_iterations
	ldr	x8, [x25, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_24:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x19
	bl	_decide_unroll_stupid
	ldr	x8, [x25, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x19
	bl	_decide_peel_simple
	b	LBB0_6
LBB0_26:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LPT_NONE,8,3                   ; @LPT_NONE
	.comm	_dump_file,8,3                  ; @dump_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n;; *** Considering loop %d ***\n"

l_.str.1:                               ; @.str.1
	.asciz	";; Not considering loop, cold area\n"

l_.str.2:                               ; @.str.2
	.asciz	";; Not considering loop, cannot duplicate\n"

l_.str.3:                               ; @.str.3
	.asciz	";; Not considering loop, is not innermost\n"

	.no_dead_strip	_decide_unrolling_and_peeling
.subsections_via_symbols
