	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_write_buf
_io_write_buf:                          ## @io_write_buf
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_SSIZE_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rdx, (%rax)
	seta	%dil
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	cltq
	leaq	(%r15,%rax,4), %r15
	subq	%rax, %rbx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_write
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rdi
	cmpq	(%r13), %rdi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_user_abort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_IS_EAGAIN_OR_EWOULDBLOCK
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_io_wait
	movq	_IO_WAIT_MORE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
LBB0_12:
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	(%r12), %rax
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.14:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movl	(%r14), %r14d
	movq	(%r12), %rdi
	callq	_strerror
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_message_error
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SSIZE_MAX,8,3                  ## @SSIZE_MAX
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_user_abort,8,3                 ## @user_abort
	.comm	_IO_WAIT_MORE,8,3               ## @IO_WAIT_MORE
	.comm	_EPIPE,8,3                      ## @EPIPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Write error: %s"

	.no_dead_strip	_io_write_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_write_buf
_io_write_buf:                          ; @io_write_buf
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SSIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	cset	w0, hi
	bl	_assert
	cbz	x20, LBB0_9
; %bb.1:
Lloh3:
	adrp	x22, _errno@GOTPAGE
Lloh4:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh5:
	adrp	x23, _EINTR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
Lloh7:
	adrp	x24, _user_abort@GOTPAGE
Lloh8:
	ldr	x24, [x24, _user_abort@GOTPAGEOFF]
Lloh9:
	adrp	x25, _IO_WAIT_MORE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IO_WAIT_MORE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, w0, sxtw #2
	sub	x20, x20, w0, sxtw
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x21
	mov	x2, x20
	bl	_write
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x22]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	cbz	x8, LBB0_3
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_IS_EAGAIN_OR_EWOULDBLOCK
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #0
	bl	_io_wait
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_3
	b	LBB0_12
LBB0_9:
	mov	w0, #0
LBB0_10:
	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_11:
	ldr	x8, [x22]
Lloh11:
	adrp	x9, _EPIPE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EPIPE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	mov	w0, #1
	b	LBB0_10
LBB0_13:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	ldr	w19, [x19]
	ldr	x0, [x22]
	bl	_strerror
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_message_error
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SSIZE_MAX,8,3                  ; @SSIZE_MAX
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_user_abort,8,3                 ; @user_abort
	.comm	_IO_WAIT_MORE,8,3               ; @IO_WAIT_MORE
	.comm	_EPIPE,8,3                      ; @EPIPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Write error: %s"

	.no_dead_strip	_io_write_buf
.subsections_via_symbols
