	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function canonicalize_loop_induction_variables
_canonicalize_loop_induction_variables: ## @canonicalize_loop_induction_variables
	.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
	movl	%r8d, %r14d
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	callq	_number_of_iterations_in_loop
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TREE_CODE
	movq	_INTEGER_CST@GOTPCREL(%rip), %r15
	movq	8(%r13), %rcx
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.1:
	movq	%rcx, -48(%rbp)
	movl	(%rcx), %esi
	movq	%r13, %rdi
	callq	_just_once_each_iteration_p
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_MINUS_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	movl	$1, %esi
	callq	_build_int_cst
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fold_build2
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_4:
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_find_loop_niter
	movl	%eax, %ebx
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.7:
	movl	%ebx, %edi
	callq	_chrec_contains_undetermined
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %edi
	callq	_TREE_CODE
	cmpq	(%r15), %rax
	je	LBB0_10
LBB0_9:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_find_loop_niter_by_eval
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %edi
	callq	_chrec_contains_undetermined
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_18
## %bb.11:
	movl	%ebx, %edi
	callq	_TREE_CODE
	cmpq	(%r15), %rax
	jne	LBB0_18
LBB0_12:
	movq	_dump_file@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.14:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r14), %rdi
	movq	_TDF_SLIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_print_generic_expr
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	callq	_try_unroll_loop_completely
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	xorl	%r14d, %r14d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_create_canonical_iv
	jmp	LBB0_18
LBB0_2:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEGER_CST,8,3                ## @INTEGER_CST
	.comm	_MINUS_EXPR,4,2                 ## @MINUS_EXPR
	.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	"Loop %d iterates "

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

	.no_dead_strip	_canonicalize_loop_induction_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function canonicalize_loop_induction_variables
_canonicalize_loop_induction_variables: ; @canonicalize_loop_induction_variables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	_number_of_iterations_in_loop
	mov	x23, x0
	bl	_TREE_CODE
Lloh0:
	adrp	x25, _INTEGER_CST@GOTPAGE
Lloh1:
	ldr	x25, [x25, _INTEGER_CST@GOTPAGEOFF]
	ldr	x9, [x25]
	ldr	x8, [x19, #8]
	cmp	x0, x9
	b.ne	LBB0_3
; %bb.1:
	str	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_just_once_each_iteration_p
	cbz	w0, LBB0_19
; %bb.2:
Lloh2:
	adrp	x8, _MINUS_EXPR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MINUS_EXPR@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_TREE_TYPE
	mov	x25, x0
	mov	x0, x23
	bl	_TREE_TYPE
	mov	w1, #1
	bl	_build_int_cst
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x23
	bl	_fold_build2
	mov	x23, x0
	b	LBB0_11
LBB0_3:
	cbnz	x8, LBB0_5
; %bb.4:
	add	x1, sp, #8
	mov	x0, x19
	bl	_find_loop_niter
	mov	x23, x0
LBB0_5:
	cbz	w24, LBB0_9
; %bb.6:
	mov	x0, x23
	bl	_chrec_contains_undetermined
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_TREE_CODE
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_9
LBB0_8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_find_loop_niter_by_eval
	mov	x23, x0
LBB0_9:
	mov	x0, x23
	bl	_chrec_contains_undetermined
	cbnz	x0, LBB0_18
; %bb.10:
	mov	x0, x23
	bl	_TREE_CODE
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_18
LBB0_11:
Lloh5:
	adrp	x24, _dump_file@GOTPAGE
Lloh6:
	ldr	x24, [x24, _dump_file@GOTPAGEOFF]
	ldr	x0, [x24]
	cbz	x0, LBB0_14
; %bb.12:
Lloh7:
	adrp	x8, _dump_flags@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x0, [x24]
Lloh15:
	adrp	x8, _TDF_SLIM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TDF_SLIM@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_print_generic_expr
	ldr	x0, [x24]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_14:
	ldr	x2, [sp, #8]
	mov	x0, x22
	mov	x1, x19
	mov	x3, x23
	mov	x4, x21
	bl	_try_unroll_loop_completely
	cbz	x0, LBB0_16
; %bb.15:
	mov	w0, #1
	b	LBB0_19
LBB0_16:
	cbz	w20, LBB0_18
; %bb.17:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x23
	bl	_create_canonical_iv
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEGER_CST,8,3                ; @INTEGER_CST
	.comm	_MINUS_EXPR,4,2                 ; @MINUS_EXPR
	.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	"Loop %d iterates "

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

	.no_dead_strip	_canonicalize_loop_induction_variables
.subsections_via_symbols
