	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_put_user_xdp
_tun_put_user_xdp:                      ## @tun_put_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	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	(%rdx), %rbx
	movq	_IFF_VNET_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	$0, -48(%rbp)
	movl	8(%r15), %edi
	callq	_READ_ONCE
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_iov_iter_count
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_4:
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	movq	%r14, %rdx
	callq	_copy_to_iter
	xorl	%edi, %edi
	cmpl	$4, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_9
LBB0_7:
	movl	%r13d, %esi
	addl	$-4, %esi
	movq	%r14, %rdi
	callq	_iov_iter_advance
LBB0_8:
	movq	8(%r12), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_copy_to_iter
	addl	%r13d, %eax
	movslq	%eax, %rbx
	movl	4(%r15), %edi
	callq	_get_cpu_ptr
	movq	%rax, %r14
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_u64_stats_update_begin
	incl	12(%r14)
	addq	%rbx, (%r14)
	movq	%r12, %rdi
	callq	_u64_stats_update_end
	movl	4(%r15), %edi
	callq	_put_cpu_ptr
LBB0_9:
	movq	%rbx, %rax
	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	_EINVAL,8,3                     ## @EINVAL
	.comm	_EFAULT,8,3                     ## @EFAULT
	.no_dead_strip	_tun_put_user_xdp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_put_user_xdp
_tun_put_user_xdp:                      ; @tun_put_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	x20, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x21, [x2]
	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_3
; %bb.1:
	str	wzr, [sp, #8]
	ldr	w0, [x19, #8]
	bl	_READ_ONCE
	mov	x23, x0
	mov	x0, x20
	bl	_iov_iter_count
	cmp	w0, w23
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	w23, #0
	b	LBB0_8
LBB0_4:
	add	x0, sp, #8
	mov	w1, #4
	mov	x2, x20
	bl	_copy_to_iter
	cmp	w0, #4
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	neg	x20, x8
	b	LBB0_9
LBB0_7:
	sub	w1, w23, #4
	mov	x0, x20
	bl	_iov_iter_advance
LBB0_8:
	ldr	x0, [x22, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_copy_to_iter
	add	w8, w0, w23
	sxtw	x20, w8
	ldr	w0, [x19, #4]
	bl	_get_cpu_ptr
	mov	x21, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	ldr	x8, [x21]
	add	x8, x8, x20
	str	x8, [x21]
	mov	x0, x22
	bl	_u64_stats_update_end
	ldr	w0, [x19, #4]
	bl	_put_cpu_ptr
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_VNET_HDR,4,2               ; @IFF_VNET_HDR
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EFAULT,8,3                     ; @EFAULT
	.no_dead_strip	_tun_put_user_xdp
.subsections_via_symbols
