	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_net_get_client_port ## -- Begin function vc_container_net_get_client_port
	.p2align	4, 0x90
_vc_container_net_get_client_port:      ## @vc_container_net_get_client_port
	.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
	movq	(%rdi), %rax
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_VC_CONTAINER_NET_ERROR_NOT_CONNECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_VC_CONTAINER_NET_ERROR_INVALID_SOCKET@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_4:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	_VC_CONTAINER_NET_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	20(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.8:
	movl	16(%rbx), %edi
	jmp	LBB0_9
LBB0_5:
	movq	_VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movl	12(%rbx), %edi
LBB0_9:
	callq	_ntohs
	movw	%ax, (%r14)
	jmp	LBB0_13
LBB0_11:
	movq	_VC_CONTAINER_NET_ERROR_GENERAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_13:
	addq	$8, %rbx
LBB0_14:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_NET_ERROR_INVALID_SOCKET,4,2 ## @VC_CONTAINER_NET_ERROR_INVALID_SOCKET
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_VC_CONTAINER_NET_ERROR_NOT_CONNECTED,4,2 ## @VC_CONTAINER_NET_ERROR_NOT_CONNECTED
	.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_GENERAL,4,2 ## @VC_CONTAINER_NET_ERROR_GENERAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_net_get_client_port ; -- Begin function vc_container_net_get_client_port
	.p2align	2
_vc_container_net_get_client_port:      ; @vc_container_net_get_client_port
	.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_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INVALID_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _VC_CONTAINER_NET_ERROR_NOT_CONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_NOT_CONNECTED@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh5:
	adrp	x8, _VC_CONTAINER_NET_ERROR_INVALID_SOCKET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_INVALID_SOCKET@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
	mov	x20, x1
	cbz	x1, LBB0_8
; %bb.5:
Lloh7:
	adrp	x8, _VC_CONTAINER_NET_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_NET_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x19, #20]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [x19, #16]
	b	LBB0_10
LBB0_8:
Lloh10:
	adrp	x8, _VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	ldr	w0, [x19, #12]
LBB0_10:
	bl	_ntohs
	strh	w0, [x20]
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x8, _VC_CONTAINER_NET_ERROR_GENERAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VC_CONTAINER_NET_ERROR_GENERAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_13:
	add	x8, x19, #8
LBB0_14:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_NET_ERROR_INVALID_SOCKET,4,2 ; @VC_CONTAINER_NET_ERROR_INVALID_SOCKET
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_VC_CONTAINER_NET_ERROR_NOT_CONNECTED,4,2 ; @VC_CONTAINER_NET_ERROR_NOT_CONNECTED
	.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_GENERAL,4,2 ; @VC_CONTAINER_NET_ERROR_GENERAL
.subsections_via_symbols
