	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_appends
_flush_appends:                         ## @flush_appends
	.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
	pushq	%rax
	movl	$8200, %eax                     ## imm = 0x2008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_appendx@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	xorl	%r13d, %r13d
	movq	_appends@GOTPCREL(%rip), %r14
	leaq	-8240(%rbp), %r15
	movq	_outfile@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_fclose
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_appendx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r13
	jae	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r14), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movl	(%rax,%rcx,8), %edx
	cmpl	$129, %edx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %edx
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%rcx,8), %rdi
	movl	16(%rax,%rcx,8), %edx
	movl	(%r12), %ecx
	movl	$1, %esi
	callq	_fwrite
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%rcx,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	movq	%rbx, %rcx
	callq	_fread
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_fwrite
	jmp	LBB0_8
LBB0_11:
	movq	_outfile@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	_outfname@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.13:
	movq	_EIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_14:
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_errx
LBB0_15:
	movq	_sdone@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_appendx@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$8200, %rsp                     ## imm = 0x2008
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_appendx,4,2                    ## @appendx
	.comm	_appends,8,3                    ## @appends
	.comm	_outfile,4,2                    ## @outfile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_outfname,4,2                   ## @outfname
	.comm	_errno,8,3                      ## @errno
	.comm	_EIO,8,3                        ## @EIO
	.comm	_sdone,4,2                      ## @sdone
	.no_dead_strip	_flush_appends
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_appends
_flush_appends:                         ; @flush_appends
	.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	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh5:
	adrp	x21, _appendx@GOTPAGE
Lloh6:
	ldr	x21, [x21, _appendx@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x22, _outfile@GOTPAGE
Lloh8:
	ldr	x22, [x22, _outfile@GOTPAGEOFF]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x23, #0
Lloh9:
	adrp	x24, _appends@GOTPAGE
Lloh10:
	ldr	x24, [x24, _appends@GOTPAGEOFF]
	mov	w25, #24
Lloh11:
	adrp	x19, l_.str@PAGE
Lloh12:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_fclose
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldr	w8, [x21]
	cmp	x23, x8
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x24]
	mul	x9, x23, x25
	ldr	w9, [x8, x9]
	cmp	w9, #129
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x23, x25, x8
	ldr	x0, [x8, #8]
	ldr	w2, [x8, #16]
	ldr	w3, [x22]
	mov	w1, #1
	bl	_fwrite
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x23, x25, x8
	ldr	x0, [x8, #8]
	mov	x1, x19
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #8192
	mov	x3, x20
	bl	_fread
	cbz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w3, [x22]
	add	x0, sp, #8
	mov	w1, #1
	bl	_fwrite
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #8192
	mov	x3, x20
	bl	_fread
	mov	x2, x0
	cbnz	w0, LBB0_10
	b	LBB0_2
LBB0_11:
	ldr	w0, [x22]
	bl	_ferror
	cbz	x0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _outfname@GOTPAGE
Lloh14:
	ldr	x8, [x8, _outfname@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _EIO@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x0, x9, x8, eq
	bl	_strerror
	mov	x3, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_13:
Lloh24:
	adrp	x8, _sdone@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sdone@GOTPAGEOFF]
Lloh26:
	str	wzr, [x8]
	str	wzr, [x21]
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	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:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_appendx,4,2                    ; @appendx
	.comm	_appends,8,3                    ; @appends
	.comm	_outfile,4,2                    ; @outfile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_outfname,4,2                   ; @outfname
	.comm	_errno,8,3                      ; @errno
	.comm	_EIO,8,3                        ; @EIO
	.comm	_sdone,4,2                      ; @sdone
	.no_dead_strip	_flush_appends
.subsections_via_symbols
