	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_vc
_write_vc:                              ## @write_vc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	8(%r15), %r12
	cmpq	$0, 8(%r12)
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
LBB0_2:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.3:
	movl	-56(%rbp), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	addq	%rax, %r13
	subl	%ebx, %r14d
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	%r14d, %edx
	movq	%r13, %rsi
	callq	__write
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movl	-48(%rbp), %eax
	subl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	$1, %eax
	jle	LBB0_8
LBB0_10:
	movq	_XPRT_DIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	$-1, %r14d
	jmp	LBB0_11
LBB0_9:
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_XPRT_DIED,8,3                  ## @XPRT_DIED
	.no_dead_strip	_write_vc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_vc
_write_vc:                              ; @write_vc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x22, [x21, #8]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	w23, [sp, #8]
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	mov	x25, x19
Lloh2:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w25, w25, w0
	add	x20, x20, w0, uxtw
	cmp	w25, #0
	b.le	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	w2, w25
	mov	x1, x20
	bl	__write
	tbz	w0, #31, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, sp
	mov	x1, #0
	bl	_gettimeofday
	ldr	w8, [sp]
	sub	w8, w8, w23
	cmp	w8, #1
	b.le	LBB0_4
LBB0_10:
Lloh4:
	adrp	x8, _XPRT_DIED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XPRT_DIED@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x22]
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_XPRT_DIED,8,3                  ; @XPRT_DIED
	.no_dead_strip	_write_vc
.subsections_via_symbols
