	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tap_get_user_xdp
_tap_get_user_xdp:                      ## @tap_get_user_xdp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %r15
	movl	(%r15), %r13d
	movq	_IFF_VNET_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	callq	_READ_ONCE
	movl	%eax, %r12d
	movq	16(%rbx), %rdi
	jmp	LBB0_3
LBB0_2:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
LBB0_3:
	movl	%r13d, %esi
	callq	_build_skb
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r13
	movq	(%rbx), %rsi
	subq	16(%rbx), %rsi
	sarq	$3, %rsi
	movq	%rax, %rdi
	callq	_skb_reserve
	movq	8(%rbx), %rsi
	subq	(%rbx), %rsi
	sarq	$3, %rsi
	movq	%r13, %rdi
	callq	_skb_put
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_set_network_header
	movq	%r13, %rdi
	callq	_skb_reset_mac_header
	movq	%r13, %rdi
	callq	_eth_hdr
	movq	(%rax), %rbx
	movq	%rbx, (%r13)
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.5:
	addq	$4, %r15
	movq	%r14, %rdi
	callq	_tap_is_little_endian
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_virtio_net_hdr_to_skb
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_kfree_skb
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r14), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.10:
	movq	%rax, %rdi
	callq	*%rcx
	jmp	LBB0_20
LBB0_11:
	movq	(%r13), %rbx
LBB0_12:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	je	LBB0_14
## %bb.13:
	movq	(%r13), %rbx
	movq	_ETH_P_8021AD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	jne	LBB0_16
LBB0_14:
	movq	(%r13), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	___vlan_get_protocol
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	-44(%rbp), %esi
	movq	%r13, %rdi
	callq	_skb_set_network_header
LBB0_16:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	4(%r14), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	8(%rax), %eax
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_skb_probe_transport_header
	movq	%r13, %rdi
	callq	_dev_queue_xmit
	jmp	LBB0_19
LBB0_18:
	movq	%r13, %rdi
	callq	_kfree_skb
LBB0_19:
	xorl	%r15d, %r15d
LBB0_20:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_VNET_HDR,4,2               ## @IFF_VNET_HDR
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_ETH_P_8021AD,4,2               ## @ETH_P_8021AD
	.no_dead_strip	_tap_get_user_xdp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tap_get_user_xdp
_tap_get_user_xdp:                      ; @tap_get_user_xdp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x1
	mov	x19, x0
	ldr	x0, [x1, #16]
	mov	x21, x0
	ldr	w20, [x21], #4
	ldr	w8, [x19]
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_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_READ_ONCE
	mov	x22, x0
	ldr	x0, [x23, #16]
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	mov	x1, x20
	bl	_build_skb
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
	ldr	x8, [x23]
	ldr	x9, [x23, #16]
	sub	x8, x8, x9
	asr	x1, x8, #3
	bl	_skb_reserve
	ldp	x9, x8, [x23]
	sub	x8, x8, x9
	asr	x1, x8, #3
	mov	x0, x20
	bl	_skb_put
Lloh3:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_skb_set_network_header
	mov	x0, x20
	bl	_skb_reset_mac_header
	mov	x0, x20
	bl	_eth_hdr
	ldr	x23, [x0]
	str	x23, [x20]
	cbz	w22, LBB0_13
; %bb.5:
	mov	x0, x19
	bl	_tap_is_little_endian
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_virtio_net_hdr_to_skb
	cbz	w0, LBB0_12
; %bb.6:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree_skb
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	bl	_rcu_read_lock
	ldr	w0, [x19, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.10:
	blr	x8
LBB0_11:
	bl	_rcu_read_unlock
	b	LBB0_21
LBB0_12:
	ldr	x23, [x20]
LBB0_13:
Lloh9:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.eq	LBB0_15
; %bb.14:
	ldr	x21, [x20]
Lloh12:
	adrp	x8, _ETH_P_8021AD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_P_8021AD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_17
LBB0_15:
	ldr	x1, [x20]
	add	x2, sp, #12
	mov	x0, x20
	bl	___vlan_get_protocol
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_skb_set_network_header
LBB0_17:
	bl	_rcu_read_lock
	ldr	w0, [x19, #4]
	bl	_rcu_dereference
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w8, [x0, #8]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_skb_probe_transport_header
	mov	x0, x20
	bl	_dev_queue_xmit
	b	LBB0_20
LBB0_19:
	mov	x0, x20
	bl	_kfree_skb
LBB0_20:
	bl	_rcu_read_unlock
	mov	w21, #0
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_VNET_HDR,4,2               ; @IFF_VNET_HDR
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_ETH_P_8021AD,4,2               ; @ETH_P_8021AD
	.no_dead_strip	_tap_get_user_xdp
.subsections_via_symbols
