	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvtap_get_user
_macvtap_get_user:                      ## @macvtap_get_user
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -80(%rbp)
	movq	_IFF_VNET_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movslq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-112(%rbp), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	$40, %ecx
	callq	_memcpy_fromiovecend
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_31
## %bb.3:
	movq	%r12, %r14
	subq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	_VIRTIO_NET_HDR_F_NEEDS_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -112(%rbp)
	je	LBB0_4
## %bb.5:
	movq	-104(%rbp), %rax
	movq	-96(%rbp), %rcx
	addq	%rcx, %rax
	addq	$2, %rax
	movq	-88(%rbp), %rcx
	cmpq	%rcx, %rax
	jbe	LBB0_7
## %bb.6:
	movq	%rax, -88(%rbp)
	movq	%rax, %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	%r12, %r14
	jmp	LBB0_8
LBB0_4:
	movq	-88(%rbp), %rcx
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	movl	%eax, -44(%rbp)
	cmpq	%r14, %rcx
	ja	LBB0_31
LBB0_8:
	movl	%eax, -44(%rbp)
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_31
## %bb.9:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movq	_UIO_MAXIOV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	setb	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_31
## %bb.10:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_19
## %bb.11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.12:
	leaq	12(%rbx), %rdi
	movq	_SOCK_ZEROCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_19
## %bb.13:
	movq	_MAX_SKB_FRAGS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%r15, %rcx
	jae	LBB0_15
## %bb.14:
	movq	%r15, %rsi
	subq	%rcx, %rsi
	movq	%r13, %rdi
	callq	_iov_length
	xorl	%ecx, %ecx
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cmovll	%ecx, %eax
LBB0_15:
	movslq	%eax, %rdx
	movq	-88(%rbp), %rcx
	cmpq	%rdx, %rcx
	cmoval	%ecx, %edx
	testl	%edx, %edx
	jne	LBB0_17
## %bb.16:
	movq	_GOODCOPY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_17:
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r9
	movq	-120(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_macvtap_alloc_skb
	testq	%rax, %rax
	je	LBB0_31
## %bb.18:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %rcx
	callq	_zerocopy_sg_from_iovec
	xorl	%r13d, %r13d
	movq	%r14, %r15
	jmp	LBB0_21
LBB0_19:
	movl	-88(%rbp), %ecx
	leaq	12(%rbx), %rdi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r9
	movl	%r14d, %edx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_macvtap_alloc_skb
	testq	%rax, %rax
	je	LBB0_31
## %bb.20:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r14, %r8
	callq	_skb_copy_datagram_from_iovec
	movb	$1, %r13b
LBB0_21:
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_22
LBB0_30:
	movq	%r15, %rdi
	callq	_kfree_skb
LBB0_31:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%rbx), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_netdev_get_tx_queue
	incl	(%rax)
LBB0_33:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movslq	-44(%rbp), %r12
LBB0_34:
	movq	%r12, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_skb_set_network_header
	movq	%r15, %rdi
	callq	_skb_reset_mac_header
	movq	%r15, %rdi
	callq	_eth_hdr
	movl	(%rax), %eax
	movl	%eax, (%r15)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_macvtap_skb_from_vnet_hdr
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_30
LBB0_24:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	8(%rbx), %edi
	callq	_rcu_dereference
	movq	%rax, %rbx
	testb	%r13b, %r13b
	jne	LBB0_26
## %bb.25:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	%r14, (%rax)
	movq	%r15, %rdi
	callq	_skb_tx
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_skb_tx
	movl	$1, 4(%rax)
LBB0_26:
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_macvlan_start_xmit
	jmp	LBB0_29
LBB0_28:
	movq	%r15, %rdi
	callq	_kfree_skb
LBB0_29:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_VNET_HDR,4,2               ## @IFF_VNET_HDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VIRTIO_NET_HDR_F_NEEDS_CSUM,4,2 ## @VIRTIO_NET_HDR_F_NEEDS_CSUM
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_UIO_MAXIOV,8,3                 ## @UIO_MAXIOV
	.comm	_SOCK_ZEROCOPY,4,2              ## @SOCK_ZEROCOPY
	.comm	_MAX_SKB_FRAGS,8,3              ## @MAX_SKB_FRAGS
	.comm	_GOODCOPY_LEN,4,2               ## @GOODCOPY_LEN
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.no_dead_strip	_macvtap_get_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvtap_get_user
_macvtap_get_user:                      ; @macvtap_get_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x5
	mov	x25, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IFF_VNET_HDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_VNET_HDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldrsw	x22, [x21, #4]
	mov	x0, sp
	mov	x1, x23
	mov	w2, #0
	mov	w3, #40
	bl	_memcpy_fromiovecend
	str	w0, [sp, #44]
	tbnz	w0, #31, LBB0_23
; %bb.2:
	sub	x26, x19, x22
	ldr	w8, [sp]
Lloh3:
	adrp	x9, _VIRTIO_NET_HDR_F_NEEDS_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIRTIO_NET_HDR_F_NEEDS_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	ldp	x8, x9, [sp, #8]
	add	x8, x8, x9
	add	x8, x8, #2
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.ls	LBB0_7
; %bb.4:
	str	x8, [sp, #24]
	mov	x9, x8
	b	LBB0_7
LBB0_5:
	mov	w22, #0
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	mov	x26, x19
	b	LBB0_8
LBB0_6:
	ldr	x9, [sp, #24]
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #44]
	cmp	x9, x26
	b.hi	LBB0_23
LBB0_8:
	str	w8, [sp, #44]
Lloh12:
	adrp	x28, _ETH_HLEN@GOTPAGE
Lloh13:
	ldr	x28, [x28, _ETH_HLEN@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x26, x8
	cset	w0, lo
	bl	_unlikely
	cbnz	x0, LBB0_23
; %bb.9:
Lloh14:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #44]
Lloh17:
	adrp	x8, _UIO_MAXIOV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UIO_MAXIOV@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, x25
	cset	w0, lo
	bl	_unlikely
	cbnz	x0, LBB0_23
; %bb.10:
	cbz	x20, LBB0_15
; %bb.11:
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.12:
	add	x27, x21, #12
Lloh20:
	adrp	x8, _SOCK_ZEROCOPY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOCK_ZEROCOPY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_sock_flag
	cbz	x0, LBB0_15
; %bb.13:
Lloh23:
	adrp	x8, _MAX_SKB_FRAGS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_SKB_FRAGS@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x8, x25
	b.hs	LBB0_17
; %bb.14:
	sub	x1, x25, x8
	mov	x0, x23
	bl	_iov_length
	subs	w8, w0, w22
	csel	w8, wzr, w8, lt
	b	LBB0_18
LBB0_15:
	ldr	w3, [sp, #24]
	add	x0, x21, #12
Lloh26:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x5, sp, #44
	mov	x2, x26
	mov	x4, x24
	bl	_macvtap_alloc_skb
	cbz	x0, LBB0_23
; %bb.16:
	mov	x24, x0
	mov	w1, #0
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	_skb_copy_datagram_from_iovec
	mov	w23, #1
	str	w0, [sp, #44]
	cbnz	w0, LBB0_22
	b	LBB0_20
LBB0_17:
	mov	w8, #0
LBB0_18:
	ldr	x3, [sp, #24]
	cmp	x3, w8, sxtw
	csel	w8, w3, w8, hi
Lloh29:
	adrp	x9, _GOODCOPY_LEN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GOODCOPY_LEN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w2, w9, w8, eq
Lloh32:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x5, sp, #44
	mov	x0, x27
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x24
	bl	_macvtap_alloc_skb
	cbz	x0, LBB0_23
; %bb.19:
	mov	x24, x0
	mov	x1, x23
	mov	x2, x22
	mov	x3, x25
	bl	_zerocopy_sg_from_iovec
	mov	w23, #0
	str	w0, [sp, #44]
	cbnz	w0, LBB0_22
LBB0_20:
	ldr	x1, [x28]
	mov	x0, x24
	bl	_skb_set_network_header
	mov	x0, x24
	bl	_skb_reset_mac_header
	mov	x0, x24
	bl	_eth_hdr
	ldr	w8, [x0]
	str	w8, [x24]
	cbz	w22, LBB0_27
; %bb.21:
	mov	x1, sp
	mov	x0, x24
	bl	_macvtap_skb_from_vnet_hdr
	str	w0, [sp, #44]
	cbz	w0, LBB0_27
LBB0_22:
	mov	x0, x24
	bl	_kfree_skb
LBB0_23:
	bl	_rcu_read_lock
	ldr	w0, [x21, #8]
	bl	_rcu_dereference
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w0, [x0]
	mov	w1, #0
	bl	_netdev_get_tx_queue
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_25:
	bl	_rcu_read_unlock
	ldrsw	x19, [sp, #44]
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
	bl	_rcu_read_lock
	ldr	w0, [x21, #8]
	bl	_rcu_dereference
	mov	x21, x0
	tbnz	w23, #0, LBB0_29
; %bb.28:
	ldr	x20, [x20]
	mov	x0, x24
	bl	_skb_shinfo
	str	x20, [x0]
	mov	x0, x24
	bl	_skb_tx
	mov	w20, #1
	str	w20, [x0]
	mov	x0, x24
	bl	_skb_tx
	str	w20, [x0, #4]
LBB0_29:
	cbz	x21, LBB0_31
; %bb.30:
	ldr	w1, [x21]
	mov	x0, x24
	bl	_macvlan_start_xmit
	bl	_rcu_read_unlock
	b	LBB0_26
LBB0_31:
	mov	x0, x24
	bl	_kfree_skb
	bl	_rcu_read_unlock
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_VNET_HDR,4,2               ; @IFF_VNET_HDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VIRTIO_NET_HDR_F_NEEDS_CSUM,4,2 ; @VIRTIO_NET_HDR_F_NEEDS_CSUM
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_UIO_MAXIOV,8,3                 ; @UIO_MAXIOV
	.comm	_SOCK_ZEROCOPY,4,2              ; @SOCK_ZEROCOPY
	.comm	_MAX_SKB_FRAGS,8,3              ; @MAX_SKB_FRAGS
	.comm	_GOODCOPY_LEN,4,2               ; @GOODCOPY_LEN
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.no_dead_strip	_macvtap_get_user
.subsections_via_symbols
