	.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
	movl	$8, -44(%rbp)
	movl	16(%rdi), %edi
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	__getpeername
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	-56(%rbp), %rax
	movq	_AF_LOCAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.3:
	movl	%r14d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movl	%r12d, %edx
	movq	%r13, %rsi
	callq	___msgwrite
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%eax, %rcx
	addq	%rcx, %r13
	subl	%eax, %r12d
	jg	LBB0_4
	jmp	LBB0_11
LBB0_6:
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.7:
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movl	%ebx, %edx
	movq	%r13, %rsi
	callq	__write
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	%eax, %rcx
	addq	%rcx, %r13
	subl	%eax, %ebx
	jg	LBB0_8
	jmp	LBB0_11
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	_RPC_CANTSEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	$-1, %r14d
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	_AF_LOCAL,8,3                   ## @AF_LOCAL
	.comm	_errno,8,3                      ## @errno
	.comm	_RPC_CANTSEND,8,3               ## @RPC_CANTSEND
	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w8, #8
	str	w8, [sp, #4]
	ldr	w0, [x0, #16]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	__getpeername
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _AF_LOCAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x22, x19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #16]
	mov	w2, w22
	mov	x1, x21
	bl	___msgwrite
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w22, w22, w0
	add	x21, x21, w0, sxtw
	cmp	w22, #0
	b.gt	LBB0_4
	b	LBB0_11
LBB0_6:
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x22, x19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #16]
	mov	w2, w22
	mov	x1, x21
	bl	__write
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w22, w22, w0
	add	x21, x21, w0, sxtw
	cmp	w22, #0
	b.gt	LBB0_8
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _RPC_CANTSEND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RPC_CANTSEND@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	stp	x9, x8, [x20]
	mov	w19, #-1
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_LOCAL,8,3                   ; @AF_LOCAL
	.comm	_errno,8,3                      ; @errno
	.comm	_RPC_CANTSEND,8,3               ; @RPC_CANTSEND
	.no_dead_strip	_write_vc
.subsections_via_symbols
