	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_xdp_setup
_nicvf_xdp_setup:                       ## @nicvf_xdp_setup
	.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, %r15
	movq	%rdi, %r13
	movq	24(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netif_running
	movl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdx
	movq	_MAX_XDP_MTU@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	8(%r13), %rax
	movq	16(%r13), %rdx
	addq	(%r13), %rax
	cmpq	%rdx, %rax
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_netdev_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_17
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	movq	24(%r13), %rdi
	callq	_nicvf_stop
LBB0_8:
	leaq	32(%r13), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_xchg
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	callq	_bpf_prog_put
LBB0_10:
	movq	(%r12), %rdi
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:
	movq	(%r13), %rsi
	decq	%rsi
	callq	_bpf_prog_add
	movq	%rax, 32(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	$0, (%r12)
LBB0_14:
	xorl	%esi, %esi
	jmp	LBB0_15
LBB0_12:
	movl	$1, %esi
LBB0_15:
	movq	%r13, %rdi
	callq	_nicvf_set_xdp_queues
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.16:
	movq	24(%r13), %rdi
	callq	_nicvf_open
	movq	24(%r13), %rdi
	callq	_netif_trans_update
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_XDP_MTU,8,3                ## @MAX_XDP_MTU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Jumbo frames not yet supported with XDP, current MTU %d.\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Failed to attach BPF prog, RXQs + TXQs > Max %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_xdp_setup
_nicvf_xdp_setup:                       ; @nicvf_xdp_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	mov	x0, x22
	bl	_netif_running
	mov	x20, x0
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x2, [x22]
Lloh0:
	adrp	x8, _MAX_XDP_MTU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_XDP_MTU@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_warn
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldp	x8, x9, [x19]
	ldr	x2, [x19, #16]
	add	x8, x9, x8
	cmp	x8, x2
	b.le	LBB0_6
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_netdev_warn
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	ldr	x0, [x19, #24]
	bl	_nicvf_stop
LBB0_8:
	add	x22, x19, #32
	mov	x0, x22
	mov	x1, x21
	bl	_xchg
	cbz	x0, LBB0_10
; %bb.9:
	bl	_bpf_prog_put
LBB0_10:
	ldr	x0, [x22]
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x19]
	sub	x1, x8, #1
	bl	_bpf_prog_add
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	w0, LBB0_14
; %bb.12:
	ldr	x0, [x22]
	bl	_PTR_ERR
	mov	x21, x0
	mov	w1, #0
	str	xzr, [x22]
	b	LBB0_15
LBB0_13:
	mov	w1, #0
	mov	w21, #0
	b	LBB0_15
LBB0_14:
	mov	w21, #0
	mov	w1, #1
LBB0_15:
	mov	x0, x19
	bl	_nicvf_set_xdp_queues
	cbz	w20, LBB0_17
; %bb.16:
	ldr	x0, [x19, #24]
	bl	_nicvf_open
	ldr	x0, [x19, #24]
	bl	_netif_trans_update
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_XDP_MTU,8,3                ; @MAX_XDP_MTU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Jumbo frames not yet supported with XDP, current MTU %d.\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Failed to attach BPF prog, RXQs + TXQs > Max %d\n"

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