	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs6000_sched_finish
_rs6000_sched_finish:                   ## @rs6000_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	$24, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
LBB0_2:
	movq	_reload_completed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.3:
	movq	_rs6000_sched_groups@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.4:
	movq	_rs6000_sched_insert_nops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sched_finish_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.5:
	movq	_sched_finish_pad_groups@GOTPCREL(%rip), %rsi
	movq	_current_sched_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %ecx
	cmpq	(%rsi), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pad_groups
	cmpl	$6, %ebx
	jge	LBB0_10
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_redefine_groups
	cmpl	$6, %ebx
	jl	LBB0_9
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_print_rtl
	leaq	L_.str.2(%rip), %rdi
	movl	$18, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=== Finishing schedule.\n"

	.comm	_reload_completed,8,3           ## @reload_completed
	.comm	_rs6000_sched_groups,8,3        ## @rs6000_sched_groups
	.comm	_rs6000_sched_insert_nops,8,3   ## @rs6000_sched_insert_nops
	.comm	_sched_finish_none,8,3          ## @sched_finish_none
	.comm	_sched_finish_pad_groups,8,3    ## @sched_finish_pad_groups
	.comm	_current_sched_info,8,3         ## @current_sched_info
L_.str.1:                               ## @.str.1
	.asciz	"ngroups = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Done finish_sched\n"

	.no_dead_strip	_rs6000_sched_finish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs6000_sched_finish
_rs6000_sched_finish:                   ; @rs6000_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, #24
	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]
Lloh5:
	adrp	x9, _rs6000_sched_groups@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rs6000_sched_groups@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _rs6000_sched_insert_nops@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rs6000_sched_insert_nops@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _sched_finish_none@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sched_finish_none@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
Lloh14:
	adrp	x9, _sched_finish_pad_groups@GOTPAGE
Lloh15:
	ldr	x9, [x9, _sched_finish_pad_groups@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x21, _current_sched_info@GOTPAGE
Lloh18:
	ldr	x21, [x21, _current_sched_info@GOTPAGEOFF]
	ldr	x10, [x21]
	ldp	w2, w3, [x10]
	mov	x0, x19
	mov	x1, x20
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	bl	_pad_groups
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w20, #6
	b.ge	LBB0_8
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
LBB0_7:
	bl	_redefine_groups
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w20, #6
	b.lt	LBB0_6
LBB0_8:
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	x8, [x21]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_print_rtl
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #18
	mov	w2, #1
	mov	x3, x19
	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	_fwrite
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=== Finishing schedule.\n"

	.comm	_reload_completed,8,3           ; @reload_completed
	.comm	_rs6000_sched_groups,8,3        ; @rs6000_sched_groups
	.comm	_rs6000_sched_insert_nops,8,3   ; @rs6000_sched_insert_nops
	.comm	_sched_finish_none,8,3          ; @sched_finish_none
	.comm	_sched_finish_pad_groups,8,3    ; @sched_finish_pad_groups
	.comm	_current_sched_info,8,3         ; @current_sched_info
l_.str.1:                               ; @.str.1
	.asciz	"ngroups = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Done finish_sched\n"

	.no_dead_strip	_rs6000_sched_finish
.subsections_via_symbols
