	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_configure_rfs_ntuple_filter ## -- Begin function qed_configure_rfs_ntuple_filter
	.p2align	4, 0x90
_qed_configure_rfs_ntuple_filter:       ## @qed_configure_rfs_ntuple_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movl	$0, -36(%rbp)
	movq	$0, -56(%rbp)
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_qed_spq_get_cid
	movl	%eax, -60(%rbp)
	movl	(%r15), %eax
	movl	%eax, -64(%rbp)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_QED_SPQ_MODE_CB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -72(%rbp)
	jmp	LBB0_3
LBB0_2:
	movq	_QED_SPQ_MODE_EBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, -80(%rbp)
	movq	_ETH_RAMROD_GFT_UPDATE_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PROTOCOLID_ETH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %r8
	movq	%r15, %rdi
	callq	_qed_sp_init_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movq	-48(%rbp), %r12
	movl	48(%r12), %edi
	movq	16(%r14), %rsi
	callq	_DMA_REGPAIR_LE
	movl	8(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r12)
	cmpq	$0, 40(%r14)
	je	LBB0_6
## %bb.5:
	movq	_ETH_GFT_TRASHCAN_VPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r12)
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	cmpq	$0, 24(%r14)
	movq	_GFT_ADD_FILTER@GOTPCREL(%rip), %rax
	cmoveq	_GFT_DELETE_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rax, %r9
	movl	8(%r14), %eax
	movl	16(%r14), %ebx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	pushq	%rax
	pushq	%rbx
	callq	_DP_VERBOSE
	addq	$16, %rsp
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_qed_spq_post
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_6:
	movl	32(%r14), %esi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_qed_fw_vport
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_12:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qed_sp_destroy_request
LBB0_13:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rsi
	movq	_QED_RFS_NTUPLE_QID_RSS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_10
## %bb.8:
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_qed_fw_l2_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	$1, (%r12)
	movl	-36(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r12)
LBB0_10:
	movl	-56(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rcx
	movl	-36(%rbp), %r8d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_SPQ_MODE_CB,4,2            ## @QED_SPQ_MODE_CB
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ## @QED_SPQ_MODE_EBLOCK
	.comm	_ETH_RAMROD_GFT_UPDATE_FILTER,4,2 ## @ETH_RAMROD_GFT_UPDATE_FILTER
	.comm	_PROTOCOLID_ETH,4,2             ## @PROTOCOLID_ETH
	.comm	_ETH_GFT_TRASHCAN_VPORT,4,2     ## @ETH_GFT_TRASHCAN_VPORT
	.comm	_QED_RFS_NTUPLE_QID_RSS,8,3     ## @QED_RFS_NTUPLE_QID_RSS
	.comm	_GFT_ADD_FILTER,4,2             ## @GFT_ADD_FILTER
	.comm	_GFT_DELETE_FILTER,4,2          ## @GFT_DELETE_FILTER
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"V[%0x], Q[%04x] - %s filter from 0x%llx [length %04xb]\n"

L_.str.1:                               ## @.str.1
	.asciz	"Adding"

L_.str.2:                               ## @.str.2
	.asciz	"Removing"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_configure_rfs_ntuple_filter ; -- Begin function qed_configure_rfs_ntuple_filter
	.p2align	2
_qed_configure_rfs_ntuple_filter:       ; @qed_configure_rfs_ntuple_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	str	wzr, [sp, #12]
	str	xzr, [sp]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x19
	bl	_qed_spq_get_cid
	ldr	w8, [x19]
	stp	w8, w0, [sp, #32]
	cbz	x21, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _QED_SPQ_MODE_CB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_SPQ_MODE_CB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	x21, [sp, #24]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _QED_SPQ_MODE_EBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_SPQ_MODE_EBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_3:
	str	w8, [sp, #16]
Lloh6:
	adrp	x8, _ETH_RAMROD_GFT_UPDATE_FILTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_RAMROD_GFT_UPDATE_FILTER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _PROTOCOLID_ETH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROTOCOLID_ETH@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x1, sp, #40
	add	x4, sp, #16
	mov	x0, x19
	bl	_qed_sp_init_request
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x22, [sp, #40]
	ldr	w0, [x22, #48]
	ldr	x1, [x20, #16]
	bl	_DMA_REGPAIR_LE
	ldr	w0, [x20, #8]
	bl	_cpu_to_le16
	str	x0, [x22, #40]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _ETH_GFT_TRASHCAN_VPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_GFT_TRASHCAN_VPORT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	mov	w4, #0
	mov	x3, #0
	str	x0, [x22, #24]
LBB0_6:
	stp	xzr, xzr, [x22, #8]
	ldr	x8, [x20, #24]
Lloh15:
	adrp	x9, _GFT_ADD_FILTER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GFT_ADD_FILTER@GOTPAGEOFF]
Lloh17:
	adrp	x10, _GFT_DELETE_FILTER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GFT_DELETE_FILTER@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x22, #4]
Lloh19:
	adrp	x8, _QED_MSG_SP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QED_MSG_SP@GOTPAGEOFF]
Lloh21:
	adrp	x9, l_.str.1@PAGE
Lloh22:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, l_.str.2@PAGE
Lloh25:
	add	x8, x8, l_.str.2@PAGEOFF
	csel	x5, x8, x9, eq
	ldr	w6, [x20, #16]
	ldr	w7, [x20, #8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, #0
	bl	_qed_spq_post
	mov	x21, x0
	b	LBB0_9
LBB0_7:
	ldr	w1, [x20, #32]
	mov	x2, sp
	mov	x0, x19
	bl	_qed_fw_vport
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_8:
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_qed_sp_destroy_request
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x1, [x20]
Lloh28:
	adrp	x8, _QED_RFS_NTUPLE_QID_RSS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _QED_RFS_NTUPLE_QID_RSS@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.11:
	add	x2, sp, #12
	mov	x0, x19
	bl	_qed_fw_l2_queue
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.12:
	mov	w8, #1
	str	w8, [x22]
	ldr	w0, [sp, #12]
	bl	_cpu_to_le16
	str	x0, [x22, #32]
LBB0_13:
	ldr	w0, [sp]
	bl	_cpu_to_le16
	str	x0, [x22, #24]
	ldr	x3, [sp]
	ldr	w4, [sp, #12]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_SPQ_MODE_CB,4,2            ; @QED_SPQ_MODE_CB
	.comm	_QED_SPQ_MODE_EBLOCK,4,2        ; @QED_SPQ_MODE_EBLOCK
	.comm	_ETH_RAMROD_GFT_UPDATE_FILTER,4,2 ; @ETH_RAMROD_GFT_UPDATE_FILTER
	.comm	_PROTOCOLID_ETH,4,2             ; @PROTOCOLID_ETH
	.comm	_ETH_GFT_TRASHCAN_VPORT,4,2     ; @ETH_GFT_TRASHCAN_VPORT
	.comm	_QED_RFS_NTUPLE_QID_RSS,8,3     ; @QED_RFS_NTUPLE_QID_RSS
	.comm	_GFT_ADD_FILTER,4,2             ; @GFT_ADD_FILTER
	.comm	_GFT_DELETE_FILTER,4,2          ; @GFT_DELETE_FILTER
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"V[%0x], Q[%04x] - %s filter from 0x%llx [length %04xb]\n"

l_.str.1:                               ; @.str.1
	.asciz	"Adding"

l_.str.2:                               ; @.str.2
	.asciz	"Removing"

.subsections_via_symbols
