	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_out                      ## -- Begin function flush_out
	.p2align	4, 0x90
_flush_out:                             ## @flush_out
	.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	_wptr@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	_wst@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%r12d, %edi
	subl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	subl	%ebx, %r12d
	je	LBB0_6
## %bb.1:
	movq	_targ_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	%r12d, %edx
	callq	_write
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	movq	_true_wr_bytes@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
LBB0_3:
	cmpl	%r12d, %eax
	jl	LBB0_7
## %bb.4:
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jle	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_targ_fname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movq	_WB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_targ_fname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movl	$3, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_wptr,4,2                       ## @wptr
	.comm	_wst,4,2                        ## @wst
	.comm	_WB,4,2                         ## @WB
	.comm	_targ_fd,4,2                    ## @targ_fd
	.comm	_true_wr_bytes,4,2              ## @true_wr_bytes
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error writing to %s: %d bytes written out of %d: %m\n"

	.comm	_targ_fname,8,3                 ## @targ_fname
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"%d bytes written to %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flush_out                      ; -- Begin function flush_out
	.p2align	2
_flush_out:                             ; @flush_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x20, _wptr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wptr@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh2:
	adrp	x21, _wst@GOTPAGE
Lloh3:
	ldr	x21, [x21, _wst@GOTPAGEOFF]
	ldr	w22, [x21]
	subs	w8, w19, w22
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_assert
	subs	w19, w19, w22
	b.eq	LBB0_6
; %bb.1:
Lloh4:
	adrp	x8, _targ_fd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _targ_fd@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x21]
	mov	x2, x19
	bl	_write
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _true_wr_bytes@GOTPAGE
Lloh8:
	ldr	x8, [x8, _true_wr_bytes@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
LBB0_3:
	cmp	w0, w19
	b.lt	LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _verbosity@GOTPAGE
Lloh10:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _targ_fname@GOTPAGE
Lloh16:
	ldr	x9, [x9, _targ_fname@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	stp	x0, x9, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_6:
Lloh20:
	adrp	x8, _WB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WB@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21]
	str	w8, [x20]
	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
	add	sp, sp, #80
	ret
LBB0_7:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _targ_fname@GOTPAGE
Lloh27:
	ldr	x9, [x9, _targ_fname@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x19, [sp, #8]
	str	x9, [sp]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	mov	w0, #3
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_wptr,4,2                       ; @wptr
	.comm	_wst,4,2                        ; @wst
	.comm	_WB,4,2                         ; @WB
	.comm	_targ_fd,4,2                    ; @targ_fd
	.comm	_true_wr_bytes,4,2              ; @true_wr_bytes
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error writing to %s: %d bytes written out of %d: %m\n"

	.comm	_targ_fname,8,3                 ; @targ_fname
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"%d bytes written to %s\n"

.subsections_via_symbols
