	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_net_read          ## -- Begin function vc_container_net_read
	.p2align	4, 0x90
_vc_container_net_read:                 ## @vc_container_net_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	movq	_VC_CONTAINER_NET_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_7
## %bb.3:
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_socket_wait_for_data
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	24(%rbx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_recv
	jmp	LBB0_10
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_6:
	movq	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_7:
	cmpl	$130, %eax
	jne	LBB0_12
## %bb.8:
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_socket_wait_for_data
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movl	24(%rbx), %edi
	leaq	20(%rbx), %r8
	leaq	16(%rbx), %r9
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_recvfrom
LBB0_10:
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	_VC_CONTAINER_NET_ERROR_CONNECTION_LOST@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_VC_CONTAINER_NET_ERROR_TIMED_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_VC_CONTAINER_NET_ERROR_NOT_ALLOWED@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	xorl	%r14d, %r14d
LBB0_16:
	movq	_SOCKET_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_18
## %bb.17:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_vc_container_net_private_last_error
	movq	%rax, 8(%rbx)
LBB0_18:
	movslq	%r14d, %rax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER,8,3 ## @VC_CONTAINER_NET_ERROR_INVALID_PARAMETER
	.comm	_VC_CONTAINER_NET_SUCCESS,8,3   ## @VC_CONTAINER_NET_SUCCESS
	.comm	_VC_CONTAINER_NET_ERROR_CONNECTION_LOST,8,3 ## @VC_CONTAINER_NET_ERROR_CONNECTION_LOST
	.comm	_VC_CONTAINER_NET_ERROR_TIMED_OUT,8,3 ## @VC_CONTAINER_NET_ERROR_TIMED_OUT
	.comm	_VC_CONTAINER_NET_ERROR_NOT_ALLOWED,8,3 ## @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_read          ; -- Begin function vc_container_net_read
	.p2align	2
_vc_container_net_read:                 ; @vc_container_net_read
	.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
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_5
; %bb.2:
	mov	x20, x2
Lloh0:
	adrp	x8, _VC_CONTAINER_NET_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_NET_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_6
; %bb.3:
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_socket_wait_for_data
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x19, #24]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_recv
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_13
	b	LBB0_9
LBB0_5:
	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	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_16
LBB0_6:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.7:
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_socket_wait_for_data
	cbz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x19, #24]
	add	x4, x19, #20
	add	x5, x19, #16
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_recvfrom
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_13
LBB0_9:
Lloh6:
	adrp	x8, _VC_CONTAINER_NET_ERROR_CONNECTION_LOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_CONNECTION_LOST@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh8:
	adrp	x8, _VC_CONTAINER_NET_ERROR_TIMED_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_TIMED_OUT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _VC_CONTAINER_NET_ERROR_NOT_ALLOWED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_NOT_ALLOWED@GOTPAGEOFF]
LBB0_12:
	mov	w0, #0
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_13:
Lloh12:
	adrp	x8, _SOCKET_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCKET_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.14:
	bl	_vc_container_net_private_last_error
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
LBB0_15:
	sxtw	x0, w0
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER,8,3 ; @VC_CONTAINER_NET_ERROR_INVALID_PARAMETER
	.comm	_VC_CONTAINER_NET_SUCCESS,8,3   ; @VC_CONTAINER_NET_SUCCESS
	.comm	_VC_CONTAINER_NET_ERROR_CONNECTION_LOST,8,3 ; @VC_CONTAINER_NET_ERROR_CONNECTION_LOST
	.comm	_VC_CONTAINER_NET_ERROR_TIMED_OUT,8,3 ; @VC_CONTAINER_NET_ERROR_TIMED_OUT
	.comm	_VC_CONTAINER_NET_ERROR_NOT_ALLOWED,8,3 ; @VC_CONTAINER_NET_ERROR_NOT_ALLOWED
	.comm	_SOCKET_ERROR,4,2               ; @SOCKET_ERROR
.subsections_via_symbols
