	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flushout                       ## -- Begin function flushout
	.p2align	4, 0x90
_flushout:                              ## @flushout
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Buff@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_wptr@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	cmpq	%rsi, %rbx
	jle	LBB0_6
## %bb.1:
	subl	%esi, %ebx
	movq	_newidx_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %edx
	callq	_write
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BUFFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_3:
	cmpl	$-1, %r14d
	jne	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	xorl	%edi, %edi
	cmpl	%ebx, %r14d
	sete	%dil
	callq	_assert
	movq	(%r12), %rsi
LBB0_6:
	movq	%rsi, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Buff,8,3                       ## @Buff
	.comm	_wptr,8,3                       ## @wptr
	.comm	_newidx_fd,4,2                  ## @newidx_fd
	.comm	_errno,4,2                      ## @errno
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(s,w,BUFFSIZE) = (%d %d %d)\n"

	.comm	_BUFFSIZE,4,2                   ## @BUFFSIZE
L_.str.1:                               ## @.str.1
	.asciz	"errno = %d (%s)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flushout                       ; -- Begin function flushout
	.p2align	2
_flushout:                              ; @flushout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x24, _Buff@GOTPAGE
Lloh1:
	ldr	x24, [x24, _Buff@GOTPAGEOFF]
	ldr	x1, [x24]
Lloh2:
	adrp	x23, _wptr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _wptr@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x1
	b.le	LBB0_6
; %bb.1:
	sub	w19, w8, w1
Lloh4:
	adrp	x8, _newidx_fd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _newidx_fd@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x2, x19
	bl	_write
	mov	x20, x0
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
Lloh10:
	adrp	x8, _verbosity@GOTPAGE
Lloh11:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x22, _stderr@GOTPAGE
Lloh14:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x22]
Lloh15:
	adrp	x8, _BUFFSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BUFFSIZE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	x20, x8, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_3:
	cmn	w20, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w22, [x22]
	mov	x0, x21
	bl	_strerror
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_fprintf
LBB0_5:
	cmp	w20, w19
	cset	w0, eq
	bl	_assert
	ldr	x1, [x24]
LBB0_6:
	str	x1, [x23]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_Buff,8,3                       ; @Buff
	.comm	_wptr,8,3                       ; @wptr
	.comm	_newidx_fd,4,2                  ; @newidx_fd
	.comm	_errno,4,2                      ; @errno
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(s,w,BUFFSIZE) = (%d %d %d)\n"

	.comm	_BUFFSIZE,4,2                   ; @BUFFSIZE
l_.str.1:                               ; @.str.1
	.asciz	"errno = %d (%s)\n"

.subsections_via_symbols
