	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ia64_sched_finish
_ia64_sched_finish:                     ## @ia64_sched_finish
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	$23, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
LBB0_2:
	movq	_reload_completed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_final_emit_insn_group_barriers
	movq	_current_sched_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bundling
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	callq	_NEXT_INSN
	movl	%eax, %edi
	callq	_INSN_UID
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_PREV_INSN
	movl	%eax, %edi
	callq	_INSN_UID
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"// Finishing schedule.\n"

	.comm	_reload_completed,8,3           ## @reload_completed
	.comm	_current_sched_info,8,3         ## @current_sched_info
L_.str.1:                               ## @.str.1
	.asciz	"//    finishing %d-%d\n"

	.no_dead_strip	_ia64_sched_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ia64_sched_finish
_ia64_sched_finish:                     ; @ia64_sched_finish
	.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
	mov	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #23
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
LBB0_2:
Lloh2:
	adrp	x8, _reload_completed@GOTPAGE
Lloh3:
	ldr	x8, [x8, _reload_completed@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_final_emit_insn_group_barriers
Lloh5:
	adrp	x21, _current_sched_info@GOTPAGE
Lloh6:
	ldr	x21, [x21, _current_sched_info@GOTPAGEOFF]
	ldr	x8, [x21]
	ldp	w3, w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bundling
	cbz	x19, LBB0_6
; %bb.4:
	cbz	w20, LBB0_6
; %bb.5:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_NEXT_INSN
	bl	_INSN_UID
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_PREV_INSN
	bl	_INSN_UID
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"// Finishing schedule.\n"

	.comm	_reload_completed,8,3           ; @reload_completed
	.comm	_current_sched_info,8,3         ; @current_sched_info
l_.str.1:                               ; @.str.1
	.asciz	"//    finishing %d-%d\n"

	.no_dead_strip	_ia64_sched_finish
.subsections_via_symbols
