	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_out
_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	_woptr@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_roptr@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	subl	%esi, %ebx
	jle	LBB0_4
## %bb.1:
	movq	_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %edi
	movl	%ebx, %edx
	callq	_write
	movl	%eax, %r14d
	cmpl	%ebx, %eax
	jge	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_fnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_fprintf
LBB0_3:
	xorl	%edi, %edi
	cmpl	%ebx, %r14d
	sete	%dil
	callq	_assert
LBB0_4:
	movq	_obuff@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_woptr,4,2                      ## @woptr
	.comm	_roptr,4,2                      ## @roptr
	.comm	_fd,8,3                         ## @fd
	.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	_fnames,8,3                     ## @fnames
	.comm	_obuff,4,2                      ## @obuff
	.no_dead_strip	_flush_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_out
_flush_out:                             ; @flush_out
	.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	x21, _woptr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _woptr@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _roptr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _roptr@GOTPAGEOFF]
	ldr	w1, [x22]
	sub	w19, w8, w1
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _fd@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fd@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w0, [x8, #8]
	mov	x2, x19
	bl	_write
	mov	x20, x0
	cmp	w0, w19
	b.ge	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _fnames@GOTPAGE
Lloh11:
	ldr	x8, [x8, _fnames@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x2, [x8, #16]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_fprintf
LBB0_3:
	cmp	w20, w19
	cset	w0, eq
	bl	_assert
LBB0_4:
Lloh15:
	adrp	x8, _obuff@GOTPAGE
Lloh16:
	ldr	x8, [x8, _obuff@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22]
	str	w8, [x21]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_woptr,4,2                      ; @woptr
	.comm	_roptr,4,2                      ; @roptr
	.comm	_fd,8,3                         ; @fd
	.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	_fnames,8,3                     ; @fnames
	.comm	_obuff,4,2                      ; @obuff
	.no_dead_strip	_flush_out
.subsections_via_symbols
