	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_vfdi_insert_filter
_efx_vfdi_insert_filter:                ## @efx_vfdi_insert_filter
	.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	%rdi, %r12
	movq	16(%rdi), %r13
	movq	24(%rdi), %rbx
	movq	8(%rbx), %r15
	movl	(%r13), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bad_vf_index
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	movq	_VFDI_RC_EINVAL@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movl	12(%r12), %r8d
	movl	4(%r13), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r9d
	callq	_netif_err
LBB0_9:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r13), %eax
	movq	_VFDI_MAC_FILTER_FLAG_RSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movq	_EFX_FILTER_FLAG_RX_RSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	movq	_VFDI_MAC_FILTER_FLAG_SCATTER@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_8
## %bb.7:
	movq	_EFX_FILTER_FLAG_RX_SCATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	orl	%ecx, %eax
	movl	%eax, 4(%r12)
	movl	%r14d, 8(%r12)
	movl	$1, (%r12)
	movq	%r12, %rdi
	callq	_efx_siena_sriov_reset_rx_filter
	movq	_vfdi_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_queue_work
	movq	_VFDI_RC_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Invalid INSERT_FILTER from %s: rxq %d flags 0x%x\n"

	.comm	_VFDI_RC_EINVAL,4,2             ## @VFDI_RC_EINVAL
	.comm	_VFDI_MAC_FILTER_FLAG_RSS,4,2   ## @VFDI_MAC_FILTER_FLAG_RSS
	.comm	_EFX_FILTER_FLAG_RX_RSS,4,2     ## @EFX_FILTER_FLAG_RX_RSS
	.comm	_VFDI_MAC_FILTER_FLAG_SCATTER,4,2 ## @VFDI_MAC_FILTER_FLAG_SCATTER
	.comm	_EFX_FILTER_FLAG_RX_SCATTER,4,2 ## @EFX_FILTER_FLAG_RX_SCATTER
	.comm	_vfdi_workqueue,4,2             ## @vfdi_workqueue
	.comm	_VFDI_RC_SUCCESS,4,2            ## @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_insert_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_vfdi_insert_filter
_efx_vfdi_insert_filter:                ; @efx_vfdi_insert_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldp	x23, x22, [x0, #16]
	ldr	x21, [x22, #8]
	ldr	w19, [x23]
	mov	x0, x22
	mov	x1, x19
	bl	_bad_vf_index
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_6
LBB0_2:
	bl	_net_ratelimit
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x22]
	ldr	w4, [x20, #12]
	ldr	w6, [x23, #4]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x5, x19
	bl	_netif_err
LBB0_4:
Lloh5:
	adrp	x8, _VFDI_RC_EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VFDI_RC_EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x23, #4]
Lloh7:
	adrp	x9, _VFDI_MAC_FILTER_FLAG_RSS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VFDI_MAC_FILTER_FLAG_RSS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _EFX_FILTER_FLAG_RX_RSS@GOTPAGE
Lloh11:
	ldr	x10, [x10, _EFX_FILTER_FLAG_RX_RSS@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w9, w8
Lloh13:
	adrp	x9, _VFDI_MAC_FILTER_FLAG_SCATTER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VFDI_MAC_FILTER_FLAG_SCATTER@GOTPAGEOFF]
	csel	w10, wzr, w10, eq
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x11, _EFX_FILTER_FLAG_RX_SCATTER@GOTPAGE
Lloh17:
	ldr	x11, [x11, _EFX_FILTER_FLAG_RX_SCATTER@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w8, wzr, w11, eq
	orr	w8, w8, w10
	stp	w8, w19, [x20, #4]
	mov	w9, #1
	str	w9, [x20]
	mov	x0, x20
	bl	_efx_siena_sriov_reset_rx_filter
Lloh19:
	adrp	x8, _vfdi_workqueue@GOTPAGE
Lloh20:
	ldr	x8, [x8, _vfdi_workqueue@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_queue_work
Lloh22:
	adrp	x8, _VFDI_RC_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VFDI_RC_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Invalid INSERT_FILTER from %s: rxq %d flags 0x%x\n"

	.comm	_VFDI_RC_EINVAL,4,2             ; @VFDI_RC_EINVAL
	.comm	_VFDI_MAC_FILTER_FLAG_RSS,4,2   ; @VFDI_MAC_FILTER_FLAG_RSS
	.comm	_EFX_FILTER_FLAG_RX_RSS,4,2     ; @EFX_FILTER_FLAG_RX_RSS
	.comm	_VFDI_MAC_FILTER_FLAG_SCATTER,4,2 ; @VFDI_MAC_FILTER_FLAG_SCATTER
	.comm	_EFX_FILTER_FLAG_RX_SCATTER,4,2 ; @EFX_FILTER_FLAG_RX_SCATTER
	.comm	_vfdi_workqueue,4,2             ; @vfdi_workqueue
	.comm	_VFDI_RC_SUCCESS,4,2            ; @VFDI_RC_SUCCESS
	.no_dead_strip	_efx_vfdi_insert_filter
.subsections_via_symbols
