	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tree_unswitch_single_loop
_tree_unswitch_single_loop:             ## @tree_unswitch_single_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	%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	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_PARAM_MAX_UNSWITCH_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	cmpl	%r15d, %eax
	jge	LBB0_4
## %bb.1:
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.2:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_28
## %bb.3:
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_28
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.5:
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.6:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_28
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_28
LBB0_8:
	movq	%rbx, %rdi
	callq	_tree_num_loop_insns
	movl	%eax, %r14d
	movq	_PARAM_MAX_UNSWITCH_INSNS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PARAM_VALUE
	cmpl	%eax, %r14d
	jbe	LBB0_12
## %bb.9:
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.10:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_28
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_28
LBB0_12:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_get_loop_body
	movq	%rax, %r13
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r14d, %edi
	callq	_update_stmt
	incl	%r15d
	movl	$1, %r14d
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	(%rbx), %eax
	cmpl	%eax, %r15d
	jae	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%r15,4), %edi
	movq	%rbx, %rsi
	callq	_tree_may_unswitch_on
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=2
	incq	%r15
	movl	(%rbx), %eax
	cmpq	%rax, %r15
	jb	LBB0_15
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %eax
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%eax, %r15d
	je	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_simplify_using_entry_checks
	movl	%eax, %r12d
	movl	%r15d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13,%rax,4), %edi
	callq	_last_stmt
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_integer_nonzerop
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r12d, %edi
	callq	_integer_zerop
	testq	%rax, %rax
	jne	LBB0_21
## %bb.22:
	movq	_dump_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:
	movq	_dump_flags@GOTPCREL(%rip), %rax
	movq	_TDF_DETAILS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_25
## %bb.24:
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
LBB0_25:
	xorl	%eax, %eax
	callq	_initialize_original_copy_tables
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%r13,%rax,4), %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %ecx
	callq	_tree_unswitch_loop
	testq	%rax, %rax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_26
## %bb.29:
	movq	%rax, %r12
	movq	_TODO_update_ssa@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_update_ssa
	xorl	%eax, %eax
	callq	_free_original_copy_tables
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_tree_unswitch_single_loop
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_tree_unswitch_single_loop
	movq	%r13, %rdi
	callq	_free
	movl	$1, %r14d
	jmp	LBB0_28
LBB0_26:
	xorl	%eax, %eax
	callq	_free_original_copy_tables
LBB0_27:
	movq	%r13, %rdi
	callq	_free
LBB0_28:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NULL_TREE,4,2                  ## @NULL_TREE
	.comm	_PARAM_MAX_UNSWITCH_LEVEL,4,2   ## @PARAM_MAX_UNSWITCH_LEVEL
	.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	";; Not unswitching anymore, hit max level\n"

L_.str.1:                               ## @.str.1
	.asciz	";; Not unswitching, not innermost loop\n"

	.comm	_PARAM_MAX_UNSWITCH_INSNS,4,2   ## @PARAM_MAX_UNSWITCH_INSNS
L_.str.2:                               ## @.str.2
	.asciz	";; Not unswitching, loop too big\n"

	.comm	_boolean_true_node,4,2          ## @boolean_true_node
	.comm	_boolean_false_node,4,2         ## @boolean_false_node
L_.str.3:                               ## @.str.3
	.asciz	";; Unswitching loop\n"

	.comm	_TODO_update_ssa,4,2            ## @TODO_update_ssa
	.no_dead_strip	_tree_unswitch_single_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tree_unswitch_single_loop
_tree_unswitch_single_loop:             ; @tree_unswitch_single_loop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _PARAM_MAX_UNSWITCH_LEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARAM_MAX_UNSWITCH_LEVEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PARAM_VALUE
	cmp	w0, w21
	b.ge	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _dump_file@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dump_file@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.2:
Lloh9:
	adrp	x8, _dump_flags@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.3:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh17:
	adrp	x8, _dump_file@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dump_file@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.6:
Lloh20:
	adrp	x8, _dump_flags@GOTPAGE
Lloh21:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.7:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_tree_num_loop_insns
	mov	x22, x0
Lloh28:
	adrp	x8, _PARAM_MAX_UNSWITCH_INSNS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PARAM_MAX_UNSWITCH_INSNS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_PARAM_VALUE
	cmp	w22, w0
	b.ls	LBB0_15
; %bb.9:
Lloh31:
	adrp	x8, _dump_file@GOTPAGE
Lloh32:
	ldr	x8, [x8, _dump_file@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.10:
Lloh34:
	adrp	x8, _dump_flags@GOTPAGE
Lloh35:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	bl	_fprintf
	mov	w23, #0
	b	LBB0_14
LBB0_13:
	mov	w23, #0
LBB0_14:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x19
	bl	_get_loop_body
	mov	x22, x0
	mov	w23, #0
	mov	w26, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x25
	bl	_update_stmt
	add	w26, w26, #1
	mov	w23, #1
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	w8, [x19]
	cmp	w26, w8
	b.hs	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w26, w26
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22, x26, lsl #2]
	mov	x1, x19
	bl	_tree_may_unswitch_on
	mov	x24, x0
	cbnz	w0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	add	x26, x26, #1
	ldr	w8, [x19]
	cmp	x26, x8
	b.lo	LBB0_19
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w8, [x19]
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	w26, w8
	b.eq	LBB0_31
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_simplify_using_entry_checks
	mov	x24, x0
	ldr	w0, [x22, w26, uxtw #2]
	bl	_last_stmt
	mov	x25, x0
	mov	x0, x24
	bl	_integer_nonzerop
	cbnz	x0, LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x24
	bl	_integer_zerop
	cbnz	x0, LBB0_16
; %bb.25:
	mov	w25, w26
Lloh42:
	adrp	x8, _dump_file@GOTPAGE
Lloh43:
	ldr	x8, [x8, _dump_file@GOTPAGEOFF]
Lloh44:
	ldr	x0, [x8]
	cbz	x0, LBB0_28
; %bb.26:
Lloh45:
	adrp	x8, _dump_flags@GOTPAGE
Lloh46:
	ldr	x8, [x8, _dump_flags@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
Lloh48:
	adrp	x9, _TDF_DETAILS@GOTPAGE
Lloh49:
	ldr	x9, [x9, _TDF_DETAILS@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
Lloh51:
	adrp	x1, l_.str.3@PAGE
Lloh52:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_28:
	bl	_initialize_original_copy_tables
	ldr	w2, [x22, x25, lsl #2]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x24
	bl	_tree_unswitch_loop
	cbz	x0, LBB0_30
; %bb.29:
	mov	x24, x0
Lloh53:
	adrp	x8, _TODO_update_ssa@GOTPAGE
Lloh54:
	ldr	x8, [x8, _TODO_update_ssa@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_update_ssa
	bl	_free_original_copy_tables
	add	w21, w21, #1
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_tree_unswitch_single_loop
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_tree_unswitch_single_loop
	mov	x0, x22
	bl	_free
	mov	w23, #1
	b	LBB0_14
LBB0_30:
	bl	_free_original_copy_tables
LBB0_31:
	mov	x0, x22
	bl	_free
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_NULL_TREE,4,2                  ; @NULL_TREE
	.comm	_PARAM_MAX_UNSWITCH_LEVEL,4,2   ; @PARAM_MAX_UNSWITCH_LEVEL
	.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	";; Not unswitching anymore, hit max level\n"

l_.str.1:                               ; @.str.1
	.asciz	";; Not unswitching, not innermost loop\n"

	.comm	_PARAM_MAX_UNSWITCH_INSNS,4,2   ; @PARAM_MAX_UNSWITCH_INSNS
l_.str.2:                               ; @.str.2
	.asciz	";; Not unswitching, loop too big\n"

	.comm	_boolean_true_node,4,2          ; @boolean_true_node
	.comm	_boolean_false_node,4,2         ; @boolean_false_node
l_.str.3:                               ; @.str.3
	.asciz	";; Unswitching loop\n"

	.comm	_TODO_update_ssa,4,2            ; @TODO_update_ssa
	.no_dead_strip	_tree_unswitch_single_loop
.subsections_via_symbols
