	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_net_write         ## -- Begin function vc_container_net_write
	.p2align	4, 0x90
_vc_container_net_write:                ## @vc_container_net_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	_VC_CONTAINER_NET_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.12:
	movl	28(%rbx), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_send
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movq	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_5:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.6:
	movq	8(%rbx), %rax
	cmpq	%rdx, %rax
	cmovbq	%rax, %rdx
	movl	28(%rbx), %edi
	leaq	24(%rbx), %r8
	movl	20(%rbx), %r9d
	xorl	%ecx, %ecx
	callq	_sendto
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_7:
	movq	_VC_CONTAINER_NET_ERROR_NOT_ALLOWED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_8:
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_10
## %bb.9:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_vc_container_net_private_last_error
	movl	%eax, 16(%rbx)
LBB0_10:
	movslq	%r14d, %rax
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER,4,2 ## @VC_CONTAINER_NET_ERROR_INVALID_PARAMETER
	.comm	_VC_CONTAINER_NET_SUCCESS,4,2   ## @VC_CONTAINER_NET_SUCCESS
	.comm	_VC_CONTAINER_NET_ERROR_NOT_ALLOWED,4,2 ## @VC_CONTAINER_NET_ERROR_NOT_ALLOWED
	.comm	_SOCKET_ERROR,4,2               ## @SOCKET_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_net_write         ; -- Begin function vc_container_net_write
	.p2align	2
_vc_container_net_write:                ; @vc_container_net_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _VC_CONTAINER_NET_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_NET_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.3:
	ldr	w0, [x19, #28]
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	bl	_send
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_8
LBB0_4:
	mov	x0, #0
Lloh3:
	adrp	x8, _VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_11
LBB0_5:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	cmp	x8, x2
	csel	x2, x8, x2, lo
	ldr	w0, [x19, #28]
	add	x4, x19, #24
	ldr	w5, [x19, #20]
	mov	w3, #0
	bl	_sendto
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_8
LBB0_7:
	mov	w0, #0
Lloh6:
	adrp	x8, _VC_CONTAINER_NET_ERROR_NOT_ALLOWED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_NOT_ALLOWED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_8:
Lloh9:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	bl	_vc_container_net_private_last_error
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #16]
LBB0_10:
	sxtw	x0, w0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER,4,2 ; @VC_CONTAINER_NET_ERROR_INVALID_PARAMETER
	.comm	_VC_CONTAINER_NET_SUCCESS,4,2   ; @VC_CONTAINER_NET_SUCCESS
	.comm	_VC_CONTAINER_NET_ERROR_NOT_ALLOWED,4,2 ; @VC_CONTAINER_NET_ERROR_NOT_ALLOWED
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
.subsections_via_symbols
