	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decide_peel_simple
_decide_peel_simple:                    ## @decide_peel_simple
	.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
	movq	_UAP_PEEL@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_26
## %bb.1:
	movq	%rdi, %r13
	movq	_dump_file@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_3:
	movq	_PARAM_MAX_PEELED_INSNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	xorl	%edx, %edx
	divl	(%r13)
	movl	%eax, %r14d
	movq	_PARAM_MAX_PEEL_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:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.9:
	movq	%r13, %rdi
	callq	_get_simple_loop_desc
	cmpq	$0, 16(%rax)
	je	LBB0_14
## %bb.10:
	cmpl	$0, 8(%rax)
	je	LBB0_11
LBB0_14:
	movq	%r13, %rdi
	callq	_num_loop_branches
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.15:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_17:
	movq	16(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.18:
	movq	%r13, %rdi
	callq	_expected_loop_iterations
	movl	%eax, %r15d
	incl	%r15d
	cmpl	%r14d, %r15d
	jbe	LBB0_23
## %bb.19:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rdi
	movq	_HOST_WIDEST_INT_PRINT_DEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	jmp	LBB0_25
LBB0_11:
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.12:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_21:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.22:
	leaq	L_.str.6(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_23:
	movq	_LPT_PEEL_SIMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	%r15d, 4(%r13)
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.24:
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
LBB0_25:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UAP_PEEL,4,2                   ## @UAP_PEEL
	.comm	_dump_file,8,3                  ## @dump_file
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n;; Considering simply peeling loop\n"

	.comm	_PARAM_MAX_PEELED_INSNS,4,2     ## @PARAM_MAX_PEELED_INSNS
	.comm	_PARAM_MAX_PEEL_TIMES,4,2       ## @PARAM_MAX_PEEL_TIMES
L_.str.1:                               ## @.str.1
	.asciz	";; Not considering loop, is too big\n"

L_.str.2:                               ## @.str.2
	.asciz	";; Loop iterates constant times\n"

L_.str.3:                               ## @.str.3
	.asciz	";; Not peeling, contains branches\n"

L_.str.4:                               ## @.str.4
	.asciz	";; Not peeling loop, rolls too much ("

	.comm	_HOST_WIDEST_INT_PRINT_DEC,8,3  ## @HOST_WIDEST_INT_PRINT_DEC
L_.str.5:                               ## @.str.5
	.asciz	" iterations > %d [maximum peelings])\n"

L_.str.6:                               ## @.str.6
	.asciz	";; Not peeling loop, no evidence it will be profitable\n"

	.comm	_LPT_PEEL_SIMPLE,4,2            ## @LPT_PEEL_SIMPLE
L_.str.7:                               ## @.str.7
	.asciz	";; Decided to simply peel the loop, %d times.\n"

	.no_dead_strip	_decide_peel_simple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decide_peel_simple
_decide_peel_simple:                    ; @decide_peel_simple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _UAP_PEEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UAP_PEEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_26
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x21, _dump_file@GOTPAGE
Lloh4:
	ldr	x21, [x21, _dump_file@GOTPAGEOFF]
	ldr	x0, [x21]
	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_PEELED_INSNS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PARAM_MAX_PEELED_INSNS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_PARAM_VALUE
	ldr	w9, [x19]
Lloh10:
	adrp	x22, _PARAM_MAX_PEEL_TIMES@GOTPAGE
Lloh11:
	ldr	x22, [x22, _PARAM_MAX_PEEL_TIMES@GOTPAGEOFF]
	ldr	w8, [x22]
	udiv	w20, w0, w9
	mov	x0, x8
	bl	_PARAM_VALUE
	cmp	w20, w0
	b.ls	LBB0_5
; %bb.4:
	ldr	w0, [x22]
	bl	_PARAM_VALUE
	mov	x20, x0
LBB0_5:
	cbz	w20, LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_get_simple_loop_desc
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_17
LBB0_8:
	mov	x0, x19
	bl	_num_loop_branches
	cmp	w0, #2
	b.lt	LBB0_13
; %bb.9:
	ldr	x0, [x21]
	cbz	x0, LBB0_26
; %bb.10:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_11:
	ldr	x0, [x21]
	cbz	x0, LBB0_26
; %bb.12:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.14:
	mov	x0, x19
	bl	_expected_loop_iterations
	add	w22, w0, #1
	cmp	w22, w20
	b.ls	LBB0_23
; %bb.15:
	ldr	x0, [x21]
	cbz	x0, LBB0_26
; %bb.16:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	x0, [x21]
Lloh18:
	adrp	x8, _HOST_WIDEST_INT_PRINT_DEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOST_WIDEST_INT_PRINT_DEC@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	str	x22, [sp]
	bl	_fprintf
	ldr	x0, [x21]
	str	x20, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_25
LBB0_17:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.18:
	ldr	x0, [x21]
	cbz	x0, LBB0_26
; %bb.19:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_20:
	ldr	x0, [x21]
	cbz	x0, LBB0_26
; %bb.21:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_22:
	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
	add	sp, sp, #64
	b	_fprintf
LBB0_23:
Lloh27:
	adrp	x8, _LPT_PEEL_SIMPLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LPT_PEEL_SIMPLE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	stp	w22, w8, [x19, #4]
	ldr	x0, [x21]
	cbz	x0, LBB0_26
; %bb.24:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_25:
	bl	_fprintf
LBB0_26:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_UAP_PEEL,4,2                   ; @UAP_PEEL
	.comm	_dump_file,8,3                  ; @dump_file
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n;; Considering simply peeling loop\n"

	.comm	_PARAM_MAX_PEELED_INSNS,4,2     ; @PARAM_MAX_PEELED_INSNS
	.comm	_PARAM_MAX_PEEL_TIMES,4,2       ; @PARAM_MAX_PEEL_TIMES
l_.str.1:                               ; @.str.1
	.asciz	";; Not considering loop, is too big\n"

l_.str.2:                               ; @.str.2
	.asciz	";; Loop iterates constant times\n"

l_.str.3:                               ; @.str.3
	.asciz	";; Not peeling, contains branches\n"

l_.str.4:                               ; @.str.4
	.asciz	";; Not peeling loop, rolls too much ("

	.comm	_HOST_WIDEST_INT_PRINT_DEC,8,3  ; @HOST_WIDEST_INT_PRINT_DEC
l_.str.5:                               ; @.str.5
	.asciz	" iterations > %d [maximum peelings])\n"

l_.str.6:                               ; @.str.6
	.asciz	";; Not peeling loop, no evidence it will be profitable\n"

	.comm	_LPT_PEEL_SIMPLE,4,2            ; @LPT_PEEL_SIMPLE
l_.str.7:                               ; @.str.7
	.asciz	";; Decided to simply peel the loop, %d times.\n"

	.no_dead_strip	_decide_peel_simple
.subsections_via_symbols
