	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_ssa_iv_optimize_loop
_tree_ssa_iv_optimize_loop:             ## @tree_ssa_iv_optimize_loop
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsi, (%rdi)
	movq	_dump_file@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.2:
	movq	%rsi, %rbx
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_single_dom_exit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	(%r12), %rdi
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax), %edx
	movl	(%rcx), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r12), %r14
	movq	(%rbx), %rdi
	callq	_last_stmt
	movq	_TDF_SLIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_print_generic_expr
	movq	(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	movq	(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	movq	%r15, %rdi
	callq	_find_induction_variables
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_find_interesting_uses
	movq	%r15, %rdi
	callq	_n_iv_uses
	movq	_MAX_CONSIDERED_USES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_find_iv_candidates
	movq	%r15, %rdi
	callq	_determine_use_iv_costs
	movq	%r15, %rdi
	callq	_determine_iv_costs
	movq	%r15, %rdi
	callq	_determine_set_costs
	movq	%r15, %rdi
	callq	_find_optimal_iv_set
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_create_new_ivs
	leaq	-40(%rbp), %rdi
	callq	_iv_ca_free
	movq	%r15, %rdi
	callq	_rewrite_uses
	movq	%r15, %rdi
	callq	_remove_unused_ivs
	xorl	%eax, %eax
	callq	_scev_reset
	movl	$1, %r14d
LBB0_9:
	movq	%r15, %rdi
	callq	_free_loop_data
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	"Processing loop %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"  single exit %d -> %d, exit condition "

	.comm	_TDF_SLIM,4,2                   ## @TDF_SLIM
L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_MAX_CONSIDERED_USES,8,3        ## @MAX_CONSIDERED_USES
	.no_dead_strip	_tree_ssa_iv_optimize_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_ssa_iv_optimize_loop
_tree_ssa_iv_optimize_loop:             ; @tree_ssa_iv_optimize_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	x1, [x0]
Lloh0:
	adrp	x22, _dump_file@GOTPAGE
Lloh1:
	ldr	x22, [x22, _dump_file@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _dump_flags@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x20, x1
	ldr	w8, [x1]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x20
	bl	_single_dom_exit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x0, [x22]
	ldp	x8, x9, [x20]
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x21, [x22]
	ldr	x0, [x20]
	bl	_last_stmt
	mov	x1, x0
Lloh12:
	adrp	x8, _TDF_SLIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TDF_SLIM@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_print_generic_expr
	ldr	x0, [x22]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_4:
	ldr	x0, [x22]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_5:
	mov	x0, x19
	bl	_find_induction_variables
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_find_interesting_uses
	mov	x0, x19
	bl	_n_iv_uses
Lloh19:
	adrp	x8, _MAX_CONSIDERED_USES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAX_CONSIDERED_USES@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_find_iv_candidates
	mov	x0, x19
	bl	_determine_use_iv_costs
	mov	x0, x19
	bl	_determine_iv_costs
	mov	x0, x19
	bl	_determine_set_costs
	mov	x0, x19
	bl	_find_optimal_iv_set
	str	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x19
	bl	_create_new_ivs
	add	x0, sp, #24
	bl	_iv_ca_free
	mov	x0, x19
	bl	_rewrite_uses
	mov	x0, x19
	bl	_remove_unused_ivs
	bl	_scev_reset
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_free_loop_data
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.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	"Processing loop %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"  single exit %d -> %d, exit condition "

	.comm	_TDF_SLIM,4,2                   ; @TDF_SLIM
l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_MAX_CONSIDERED_USES,8,3        ; @MAX_CONSIDERED_USES
	.no_dead_strip	_tree_ssa_iv_optimize_loop
.subsections_via_symbols
