	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_add_cls_rule              ## -- Begin function qede_add_cls_rule
	.p2align	4, 0x90
_qede_add_cls_rule:                     ## @qede_add_cls_rule
	.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, %r14
	movq	%rdi, %r12
	callq	___qede_lock
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_qede_flow_spec_to_rule
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_qede_flow_find_fltr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	%r12, %rdi
	callq	___qede_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	leaq	-48(%rbp), %rdi
	callq	_qede_flow_get_min_header_size
	movl	%eax, %ebx
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	(%r14), %edi
	movl	%edi, 24(%r15)
	movq	(%r12), %rax
	movl	(%rax), %esi
	callq	_set_bit
	movl	%ebx, (%r15)
	movq	%r15, %rbx
	addq	$16, %rbx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_qede_flow_set_destination
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	*16(%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_qede_enqueue_fltr_and_config_searcher
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	4(%r15), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %ecx
	callq	_qede_configure_arfs_fltr
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_qede_poll_arfs_filter_config
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_cls_rule              ; -- Begin function qede_add_cls_rule
	.p2align	2
_qede_add_cls_rule:                     ; @qede_add_cls_rule
	.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, x1
	mov	x19, x0
	bl	___qede_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_qede_flow_spec_to_rule
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_qede_flow_find_fltr
	cbz	x0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EPERM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x19
	bl	___qede_unlock
	mov	x0, x22
	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_7:
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.8:
	mov	x21, x0
	add	x0, sp, #8
	bl	_qede_flow_get_min_header_size
	mov	x22, x0
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [x20]
	str	w0, [x21, #24]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_set_bit
	str	w22, [x21]
	add	x22, x21, #16
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #8
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_qede_flow_set_destination
	ldp	x1, x8, [x21, #8]
	mov	x0, x22
	blr	x8
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_qede_enqueue_fltr_and_config_searcher
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.10:
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_qede_configure_arfs_fltr
	mov	x0, x19
	mov	x1, x21
	bl	_qede_poll_arfs_filter_config
	mov	x22, x0
	b	LBB0_6
LBB0_11:
	mov	x0, x21
	bl	_kfree
LBB0_12:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
