	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_add_tc_flower_fltr        ## -- Begin function qede_add_tc_flower_fltr
	.p2align	4, 0x90
_qede_add_tc_flower_fltr:               ## @qede_add_tc_flower_fltr
	.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	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	callq	___qede_lock
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_qede_parse_flow_attr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.3:
	movq	(%r15), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_10
## %bb.4:
	movq	8(%rax), %rcx
	movq	-48(%rbp), %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.5:
	movq	_QEDE_RFS_MAX_FLTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_6
	jmp	LBB0_12
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r13d
	jmp	LBB0_19
LBB0_10:
	movq	_QEDE_RFS_MAX_FLTR@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
LBB0_6:
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_qede_parse_actions
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_qede_flow_find_fltr
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_11:
	movq	-48(%rbp), %rdx
	movq	8(%rax), %rcx
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_NOTICE
LBB0_19:
	movq	%r15, %rdi
	callq	___qede_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r12
	leaq	-48(%rbp), %rdi
	callq	_qede_flow_get_min_header_size
	movl	%eax, %r13d
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%r12, %rbx
	addq	$24, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	%r13d, (%r12)
	movl	$1, 4(%r12)
	movl	(%r14), %eax
	movl	%eax, 32(%r12)
	movq	16(%r12), %rsi
	movq	%rbx, %rdi
	callq	*24(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_qede_enqueue_fltr_and_config_searcher
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	8(%r12), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_qede_configure_arfs_fltr
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_qede_poll_arfs_filter_config
	movl	%eax, %r13d
	jmp	LBB0_19
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_16:
	movq	%r12, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_QEDE_RFS_MAX_FLTR,8,3          ## @QEDE_RFS_MAX_FLTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Filter configuration invalidated, filter mode=0x%x, configured mode=0x%x, filter count=0x%x\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_add_tc_flower_fltr        ; -- Begin function qede_add_tc_flower_fltr
	.p2align	2
_qede_add_tc_flower_fltr:               ; @qede_add_tc_flower_fltr
	.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, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	___qede_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	neg	w21, w21
	ldr	x2, [x20, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_qede_parse_flow_attr
	cbnz	x0, LBB0_12
; %bb.2:
	ldr	x8, [x19]
	ldr	x4, [x8]
	cbz	x4, LBB0_6
; %bb.3:
	ldr	x3, [x8, #8]
	ldr	x2, [sp, #8]
Lloh3:
	adrp	x8, _QEDE_RFS_MAX_FLTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QEDE_RFS_MAX_FLTR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x3, x2
	ccmp	x4, x8, #4, eq
	b.ne	LBB0_7
	b	LBB0_11
LBB0_4:
Lloh6:
	adrp	x8, _EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x9, _QEDE_RFS_MAX_FLTR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QEDE_RFS_MAX_FLTR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cbz	x9, LBB0_10
LBB0_7:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_qede_parse_actions
	cbnz	x0, LBB0_12
; %bb.8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qede_flow_find_fltr
	cbz	x0, LBB0_13
; %bb.9:
Lloh11:
	adrp	x8, _EEXIST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	ldr	x2, [sp, #8]
	ldr	x3, [x8, #8]
LBB0_11:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_12:
	mov	x0, x19
	bl	___qede_unlock
	mov	x0, x21
	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
LBB0_13:
Lloh15:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.14:
	mov	x22, x0
	add	x0, sp, #8
	bl	_qede_flow_get_min_header_size
	mov	x21, x0
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x22, #16]
	cbz	x0, LBB0_17
; %bb.15:
	add	x23, x22, #24
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #8
	bl	_memcpy
	mov	w8, #1
	stp	w21, w8, [x22]
	ldr	w8, [x20]
	str	w8, [x22, #32]
	ldp	x1, x8, [x22, #16]
	mov	x0, x23
	blr	x8
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_qede_enqueue_fltr_and_config_searcher
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.16:
	ldr	w2, [x22, #8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #1
	bl	_qede_configure_arfs_fltr
	mov	x0, x19
	mov	x1, x22
	bl	_qede_poll_arfs_filter_config
	mov	x21, x0
	b	LBB0_12
LBB0_17:
	mov	x0, x22
	bl	_kfree
LBB0_18:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_QEDE_RFS_MAX_FLTR,8,3          ; @QEDE_RFS_MAX_FLTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Filter configuration invalidated, filter mode=0x%x, configured mode=0x%x, filter count=0x%x\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
