	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virtnet_xdp_set
_virtnet_xdp_set:                       ## @virtnet_xdp_set
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movl	48(%rax), %edi
	movq	_VIRTIO_NET_F_CTRL_GUEST_OFFLOADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	cmpq	$0, 40(%r14)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 32(%r14)
	je	LBB0_15
LBB0_3:
	addq	$-4, %r13
	cmpq	%r13, (%rbx)
	jbe	LBB0_11
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movl	48(%r14), %edi
	movq	_VIRTIO_NET_F_GUEST_TSO4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movl	48(%r14), %edi
	movq	_VIRTIO_NET_F_GUEST_TSO6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movl	48(%r14), %edi
	movq	_VIRTIO_NET_F_GUEST_ECN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	48(%r14), %edi
	movq	_VIRTIO_NET_F_GUEST_UFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	48(%r14), %edi
	movq	_VIRTIO_NET_F_GUEST_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_virtio_has_feature
	testq	%rax, %rax
	je	LBB0_1
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r13d
	subl	4(%r14), %r13d
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	addl	%ebx, %r13d
	cmpl	8(%r14), %r13d
	jle	LBB0_19
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movl	8(%r14), %ecx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_netdev_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r12d, %r12d
LBB0_17:
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	callq	_rtnl_dereference
	xorl	%r12d, %r12d
	movq	%r15, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	orq	%rax, %rcx
	je	LBB0_18
## %bb.20:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testq	%r15, %r15
	je	LBB0_23
## %bb.21:
	movl	8(%r14), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_bpf_prog_add
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_23:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_25
LBB0_24:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	cmpl	$0, 8(%r14)
	jle	LBB0_29
## %bb.27:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	%r12, %rdi
	callq	_napi_disable
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	callq	_virtnet_napi_tx_disable
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$12, %r12
	addq	$8, %r15
	cmpq	%rax, %rbx
	jl	LBB0_28
LBB0_29:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_37
## %bb.30:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	__virtnet_set_queues
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_45
## %bb.31:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_netif_set_real_num_rx_queues
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	cmpl	$0, 8(%r14)
	jle	LBB0_60
## %bb.32:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%r15
	movslq	8(%r14), %rax
	addq	$12, %rbx
	cmpq	%rax, %r15
	jge	LBB0_52
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	8(%rax,%rbx), %edi
	movq	%r13, %rsi
	callq	_rcu_assign_pointer
	testq	%rbx, %rbx
	jne	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	testq	%r12, %r12
	jne	LBB0_33
## %bb.36:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r14, %rdi
	callq	_virtnet_clear_guest_offloads
	jmp	LBB0_33
LBB0_37:
	cmpl	$0, 8(%r14)
	jle	LBB0_41
## %bb.38:
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movq	%r14, %rdi
	callq	_virtnet_restore_guest_offloads
	cmpl	$2, 8(%r14)
	jl	LBB0_41
## %bb.39:
	movl	$1, %r15d
	movl	$20, %ebx
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%rbx), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movslq	8(%r14), %rax
	incq	%r15
	addq	$12, %rbx
	cmpq	%rax, %r15
	jl	LBB0_40
LBB0_41:
	xorl	%eax, %eax
	callq	_synchronize_net
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	__virtnet_set_queues
	testl	%eax, %eax
	je	LBB0_51
## %bb.42:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_virtnet_clear_guest_offloads
	cmpl	$0, 8(%r14)
	jle	LBB0_45
## %bb.43:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%r15), %edi
	movq	%r13, %rsi
	callq	_rcu_assign_pointer
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$12, %r15
	cmpq	%rax, %rbx
	jl	LBB0_44
LBB0_45:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_49
## %bb.46:
	cmpl	$0, 8(%r14)
	jle	LBB0_49
## %bb.47:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	movl	4(%rsi,%rbx), %edi
	addq	%rbx, %rsi
	callq	_virtnet_napi_enable
	movq	16(%r14), %rdx
	movl	4(%rdx,%r15), %esi
	addq	%r15, %rdx
	movq	%r14, %rdi
	callq	_virtnet_napi_tx_enable
	incq	%r13
	movslq	8(%r14), %rax
	addq	$12, %rbx
	addq	$8, %r15
	cmpq	%rax, %r13
	jl	LBB0_48
LBB0_49:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.50:
	movl	8(%r14), %esi
	decl	%esi
	callq	_bpf_prog_sub
	jmp	LBB0_18
LBB0_51:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_netif_set_real_num_rx_queues
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movl	8(%r14), %eax
LBB0_52:
	testl	%eax, %eax
	jle	LBB0_60
## %bb.53:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_55 Depth=1
	incq	%r13
	movslq	8(%r14), %rax
	addq	$12, %rbx
	addq	$8, %r15
	cmpq	%rax, %r13
	jge	LBB0_18
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_55 Depth=1
	callq	_bpf_prog_put
LBB0_57:                                ##   in Loop: Header=BB0_55 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_54
## %bb.58:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	24(%r14), %rsi
	movl	4(%rsi,%rbx), %edi
	addq	%rbx, %rsi
	callq	_virtnet_napi_enable
	movq	16(%r14), %rdx
	movl	4(%rdx,%r15), %esi
	addq	%r15, %rdx
	movq	%r14, %rdi
	callq	_virtnet_napi_tx_enable
	jmp	LBB0_54
LBB0_60:
	xorl	%r12d, %r12d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_VIRTIO_NET_F_CTRL_GUEST_OFFLOADS,4,2 ## @VIRTIO_NET_F_CTRL_GUEST_OFFLOADS
	.comm	_VIRTIO_NET_F_GUEST_TSO4,4,2    ## @VIRTIO_NET_F_GUEST_TSO4
	.comm	_VIRTIO_NET_F_GUEST_TSO6,4,2    ## @VIRTIO_NET_F_GUEST_TSO6
	.comm	_VIRTIO_NET_F_GUEST_ECN,4,2     ## @VIRTIO_NET_F_GUEST_ECN
	.comm	_VIRTIO_NET_F_GUEST_UFO,4,2     ## @VIRTIO_NET_F_GUEST_UFO
	.comm	_VIRTIO_NET_F_GUEST_CSUM,4,2    ## @VIRTIO_NET_F_GUEST_CSUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't set XDP while host is implementing LRO/CSUM, disable LRO/CSUM first"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"XDP expects header/data in single page, any_header_sg required"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"MTU too large to enable XDP"

L_.str.3:                               ## @.str.3
	.asciz	"XDP requires MTU less than %lu\n"

	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
L_.str.4:                               ## @.str.4
	.asciz	"Too few free TX rings available"

L_.str.5:                               ## @.str.5
	.asciz	"request %i queues but max is %i\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_virtnet_xdp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virtnet_xdp_set
_virtnet_xdp_set:                       ; @virtnet_xdp_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x23, [x8]
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x0, #48]
Lloh3:
	adrp	x8, _VIRTIO_NET_F_CTRL_GUEST_OFFLOADS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIRTIO_NET_F_CTRL_GUEST_OFFLOADS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbz	x0, LBB0_5
LBB0_1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_13
LBB0_3:
	sub	x23, x23, #4
	ldr	x8, [x20]
	cmp	x8, x23
	b.ls	LBB0_11
; %bb.4:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_NL_SET_ERR_MSG_MOD
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_netdev_warn
	b	LBB0_14
LBB0_5:
	ldr	w0, [x19, #48]
Lloh10:
	adrp	x8, _VIRTIO_NET_F_GUEST_TSO4@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VIRTIO_NET_F_GUEST_TSO4@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbnz	x0, LBB0_10
; %bb.6:
	ldr	w0, [x19, #48]
Lloh13:
	adrp	x8, _VIRTIO_NET_F_GUEST_TSO6@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VIRTIO_NET_F_GUEST_TSO6@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbnz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x19, #48]
Lloh16:
	adrp	x8, _VIRTIO_NET_F_GUEST_ECN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VIRTIO_NET_F_GUEST_ECN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	w0, [x19, #48]
Lloh19:
	adrp	x8, _VIRTIO_NET_F_GUEST_UFO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VIRTIO_NET_F_GUEST_UFO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #48]
Lloh22:
	adrp	x8, _VIRTIO_NET_F_GUEST_CSUM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VIRTIO_NET_F_GUEST_CSUM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_virtio_has_feature
	cbz	x0, LBB0_1
LBB0_10:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_NL_SET_ERR_MSG_MOD
Lloh27:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	ldp	w8, w9, [x19]
Lloh29:
	adrp	x10, _nr_cpu_ids@GOTPAGE
Lloh30:
	ldr	x10, [x10, _nr_cpu_ids@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	x22, #0
	csel	w25, w10, wzr, ne
	sub	w8, w8, w9
	add	w23, w25, w8
	ldr	w8, [x19, #8]
	cmp	w23, w8
	b.le	LBB0_17
; %bb.12:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_NL_SET_ERR_MSG_MOD
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_netdev_warn
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_NL_SET_ERR_MSG_MOD
LBB0_14:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_rtnl_dereference
	orr	x8, x22, x0
	cbz	x8, LBB0_55
; %bb.18:
	mov	x21, x0
	cbz	x22, LBB0_21
; %bb.19:
	ldr	w8, [x19, #8]
	sub	w1, w8, #1
	mov	x0, x22
	bl	_bpf_prog_add
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_21:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_25
; %bb.22:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.23:
	mov	x24, #0
	mov	x26, #0
	mov	x27, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x26
	bl	_napi_disable
	ldr	x8, [x19, #16]
	add	x0, x8, x24
	bl	_virtnet_napi_tx_disable
	add	x27, x27, #1
	ldrsw	x8, [x19, #8]
	add	x26, x26, #12
	add	x24, x24, #8
	cmp	x27, x8
	b.lt	LBB0_24
LBB0_25:
	cbz	x22, LBB0_33
; %bb.26:
	mov	x0, x19
	mov	x1, x23
	bl	__virtnet_set_queues
	mov	x24, x0
	cbnz	w0, LBB0_41
; %bb.27:
	mov	x0, x20
	mov	x1, x23
	bl	_netif_set_real_num_rx_queues
	str	w25, [x19, #4]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.28:
	mov	x23, #0
	mov	w24, #8
	b	LBB0_30
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x24, x24, #12
	cmp	x23, x8
	b.ge	LBB0_48
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x24]
	mov	x1, x22
	bl	_rcu_assign_pointer
	cmp	x24, #8
	b.ne	LBB0_29
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	cbnz	x21, LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=1
	mov	x0, x19
	bl	_virtnet_clear_guest_offloads
	b	LBB0_29
LBB0_33:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_37
; %bb.34:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	mov	x1, #0
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_virtnet_restore_guest_offloads
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_37
; %bb.35:
	mov	w24, #1
	mov	w26, #20
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x26]
	mov	x1, #0
	bl	_rcu_assign_pointer
	ldrsw	x8, [x19, #8]
	add	x24, x24, #1
	add	x26, x26, #12
	cmp	x24, x8
	b.lt	LBB0_36
LBB0_37:
	bl	_synchronize_net
	mov	x0, x19
	mov	x1, x23
	bl	__virtnet_set_queues
	cbz	w0, LBB0_47
; %bb.38:
	mov	x24, x0
	mov	x0, x19
	bl	_virtnet_clear_guest_offloads
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.39:
	mov	x23, #0
	mov	w25, #8
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x25]
	mov	x1, x21
	bl	_rcu_assign_pointer
	add	x23, x23, #1
	ldrsw	x8, [x19, #8]
	add	x25, x25, #12
	cmp	x23, x8
	b.lt	LBB0_40
LBB0_41:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_45
; %bb.42:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.43:
	mov	x20, #0
	mov	w21, #4
	mov	w23, #4
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x23
	ldr	w0, [x1], #-4
	bl	_virtnet_napi_enable
	ldr	x8, [x19, #16]
	add	x2, x8, x21
	ldr	w1, [x2], #-4
	mov	x0, x19
	bl	_virtnet_napi_tx_enable
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	add	x23, x23, #12
	add	x21, x21, #8
	cmp	x20, x8
	b.lt	LBB0_44
LBB0_45:
	cbz	x22, LBB0_16
; %bb.46:
	ldr	w8, [x19, #8]
	sub	w1, w8, #1
	mov	x0, x22
	bl	_bpf_prog_sub
	b	LBB0_16
LBB0_47:
	mov	x0, x20
	mov	x1, x23
	bl	_netif_set_real_num_rx_queues
	str	w25, [x19, #4]
	ldr	w8, [x19, #8]
LBB0_48:
	cmp	w8, #1
	b.lt	LBB0_55
; %bb.49:
	mov	x22, #0
	mov	w23, #4
	mov	w25, #4
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_51 Depth=1
	mov	w24, #0
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	add	x25, x25, #12
	add	x23, x23, #8
	cmp	x22, x8
	b.ge	LBB0_16
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	cbz	x21, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	mov	x0, x21
	bl	_bpf_prog_put
LBB0_53:                                ;   in Loop: Header=BB0_51 Depth=1
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_50
; %bb.54:                               ;   in Loop: Header=BB0_51 Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x25
	ldr	w0, [x1], #-4
	bl	_virtnet_napi_enable
	ldr	x8, [x19, #16]
	add	x2, x8, x23
	ldr	w1, [x2], #-4
	mov	x0, x19
	bl	_virtnet_napi_tx_enable
	b	LBB0_50
LBB0_55:
	mov	w24, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_VIRTIO_NET_F_CTRL_GUEST_OFFLOADS,4,2 ; @VIRTIO_NET_F_CTRL_GUEST_OFFLOADS
	.comm	_VIRTIO_NET_F_GUEST_TSO4,4,2    ; @VIRTIO_NET_F_GUEST_TSO4
	.comm	_VIRTIO_NET_F_GUEST_TSO6,4,2    ; @VIRTIO_NET_F_GUEST_TSO6
	.comm	_VIRTIO_NET_F_GUEST_ECN,4,2     ; @VIRTIO_NET_F_GUEST_ECN
	.comm	_VIRTIO_NET_F_GUEST_UFO,4,2     ; @VIRTIO_NET_F_GUEST_UFO
	.comm	_VIRTIO_NET_F_GUEST_CSUM,4,2    ; @VIRTIO_NET_F_GUEST_CSUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't set XDP while host is implementing LRO/CSUM, disable LRO/CSUM first"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"XDP expects header/data in single page, any_header_sg required"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"MTU too large to enable XDP"

l_.str.3:                               ; @.str.3
	.asciz	"XDP requires MTU less than %lu\n"

	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
l_.str.4:                               ; @.str.4
	.asciz	"Too few free TX rings available"

l_.str.5:                               ; @.str.5
	.asciz	"request %i queues but max is %i\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_virtnet_xdp_set
.subsections_via_symbols
