	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_output                  ## -- Begin function finish_output
	.p2align	4, 0x90
_finish_output:                         ## @finish_output
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_outfile@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	_stdout@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_17
## %bb.2:
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
LBB0_4:
	movq	(%r12), %rdi
	callq	_pclose
	movl	%eax, %ebx
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_7
LBB0_9:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_11
	jmp	LBB0_17
LBB0_7:
	movl	%ebx, %edi
	callq	_WIFEXITED
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	%ebx, %edi
	callq	_WEXITSTATUS
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_17
LBB0_11:
	movq	_EXIT_TROUBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	$126, %ebx
	je	LBB0_12
## %bb.13:
	cmpl	$127, %ebx
	jne	LBB0_14
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_16
LBB0_14:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_16:
	callq	__
	movq	_pr_program@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	movl	%ebx, %r8d
	callq	_error
LBB0_17:
	movq	$0, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_outfile,8,3                    ## @outfile
	.comm	_stdout,8,3                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write failed"

	.comm	_errno,4,2                      ## @errno
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EXIT_TROUBLE,4,2               ## @EXIT_TROUBLE
L_.str.1:                               ## @.str.1
	.asciz	"subsidiary program `%s' could not be invoked"

L_.str.2:                               ## @.str.2
	.asciz	"subsidiary program `%s' not found"

L_.str.3:                               ## @.str.3
	.asciz	"subsidiary program `%s' failed"

L_.str.4:                               ## @.str.4
	.asciz	"subsidiary program `%s' failed (exit status %d)"

	.comm	_pr_program,4,2                 ## @pr_program
	.comm	_pr_pid,4,2                     ## @pr_pid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_output                  ; -- Begin function finish_output
	.p2align	2
_finish_output:                         ; @finish_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _outfile@GOTPAGE
Lloh1:
	ldr	x22, [x22, _outfile@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_13
; %bb.1:
	bl	_ferror
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_3:
	ldr	x0, [x22]
	bl	_pclose
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w19, w8, wzr, eq
	cbz	w19, LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	cbnz	w20, LBB0_7
	b	LBB0_13
LBB0_5:
	mov	x20, x0
	bl	_WIFEXITED
	cbz	x0, LBB0_4
; %bb.6:
	mov	x0, x20
	bl	_WEXITSTATUS
	mov	x20, x0
	cbz	w20, LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _EXIT_TROUBLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXIT_TROUBLE@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	cmp	w20, #126
	b.eq	LBB0_10
; %bb.8:
	cmp	w20, #127
	b.ne	LBB0_11
; %bb.9:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, l_.str.4@PAGE
Lloh24:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh25:
	adrp	x10, l_.str.3@PAGE
Lloh26:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w20, w8
	csel	x0, x10, x9, eq
LBB0_12:
	bl	__
	mov	x2, x0
Lloh27:
	adrp	x8, _pr_program@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pr_program@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x4, x20
	bl	_error
LBB0_13:
	str	xzr, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_outfile,8,3                    ; @outfile
	.comm	_stdout,8,3                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write failed"

	.comm	_errno,4,2                      ; @errno
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EXIT_TROUBLE,4,2               ; @EXIT_TROUBLE
l_.str.1:                               ; @.str.1
	.asciz	"subsidiary program `%s' could not be invoked"

l_.str.2:                               ; @.str.2
	.asciz	"subsidiary program `%s' not found"

l_.str.3:                               ; @.str.3
	.asciz	"subsidiary program `%s' failed"

l_.str.4:                               ; @.str.4
	.asciz	"subsidiary program `%s' failed (exit status %d)"

	.comm	_pr_program,4,2                 ; @pr_program
	.comm	_pr_pid,4,2                     ; @pr_pid
.subsections_via_symbols
