	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_get_cls_rule_entry        ## -- Begin function qede_get_cls_rule_entry
	.p2align	4, 0x90
_qede_get_cls_rule_entry:               ## @qede_get_cls_rule_entry
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_QEDE_RFS_MAX_FLTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	callq	___qede_lock
	cmpl	$0, (%r14)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_QEDE_ARFS_BUCKET_HEAD
	movl	44(%r15), %esi
	movl	%eax, %edi
	callq	_qede_get_arfs_fltr_by_loc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	24(%rax), %rbx
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	32(%r12), %rcx
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.5:
	cmpq	%rdx, %rcx
	jne	LBB0_6
## %bb.7:
	movq	_TCP_V4_FLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movl	44(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_9:
	cmpq	%rdx, %rcx
	jne	LBB0_10
## %bb.11:
	movq	_TCP_V6_FLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_UDP_V4_FLOW@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movdqu	48(%r12), %xmm0
	pshufd	$78, %xmm0, %xmm0               ## xmm0 = xmm0[2,3,0,1]
	movdqu	%xmm0, 24(%r15)
	jmp	LBB0_13
LBB0_10:
	movq	_UDP_V6_FLOW@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movl	52(%r12), %eax
	leaq	8(%r15), %rbx
	movl	%eax, 20(%r15)
	movl	48(%r12), %eax
	movl	%eax, 16(%r15)
	leaq	12(%r15), %rdi
	leaq	44(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_13:
	movl	(%r12), %eax
	movl	%eax, 4(%r15)
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	movq	_ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, 4(%r15)
LBB0_15:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r12)
	je	LBB0_17
## %bb.16:
	movq	_RX_CLS_FLOW_DISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_17:
	movq	%r14, %rdi
	callq	___qede_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDE_RFS_MAX_FLTR,4,2          ## @QEDE_RFS_MAX_FLTR
	.comm	_EPERM,4,2                      ## @EPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rule not found - location=0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_TCP_V4_FLOW,4,2                ## @TCP_V4_FLOW
	.comm	_UDP_V4_FLOW,4,2                ## @UDP_V4_FLOW
	.comm	_TCP_V6_FLOW,4,2                ## @TCP_V6_FLOW
	.comm	_UDP_V6_FLOW,4,2                ## @UDP_V6_FLOW
	.comm	_ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF,4,2 ## @ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF
	.comm	_RX_CLS_FLOW_DISC,4,2           ## @RX_CLS_FLOW_DISC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_get_cls_rule_entry        ; -- Begin function qede_get_cls_rule_entry
	.p2align	2
_qede_get_cls_rule_entry:               ; @qede_get_cls_rule_entry
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _QEDE_RFS_MAX_FLTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QEDE_RFS_MAX_FLTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	bl	___qede_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_QEDE_ARFS_BUCKET_HEAD
	ldr	w1, [x20, #44]
	bl	_qede_get_arfs_fltr_by_loc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	x22, [x0, #24]
Lloh3:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	ldr	x8, [x21, #32]
Lloh6:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x22, x0
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x10, _TCP_V4_FLOW@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TCP_V4_FLOW@GOTPAGEOFF]
Lloh11:
	adrp	x11, _UDP_V4_FLOW@GOTPAGE
Lloh12:
	ldr	x11, [x11, _UDP_V4_FLOW@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x20, #40]
	ldr	q0, [x21, #48]
	ext.16b	v0, v0, v0, #8
	stur	q0, [x20, #24]
	b	LBB0_8
LBB0_4:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w2, [x20, #44]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_7:
Lloh19:
	adrp	x10, _TCP_V6_FLOW@GOTPAGE
Lloh20:
	ldr	x10, [x10, _TCP_V6_FLOW@GOTPAGEOFF]
Lloh21:
	adrp	x11, _UDP_V6_FLOW@GOTPAGE
Lloh22:
	ldr	x11, [x11, _UDP_V6_FLOW@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x20, #40]
	add	x22, x20, #8
	ldr	d0, [x21, #48]
	str	d0, [x20, #16]
	add	x0, x20, #12
	add	x1, x21, #44
	mov	w2, #4
	bl	_memcpy
	add	x1, x21, #40
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
LBB0_8:
	ldr	w8, [x21]
	str	w8, [x20, #4]
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_10
; %bb.9:
Lloh23:
	adrp	x10, _ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_12
; %bb.11:
	mov	w21, #0
Lloh26:
	adrp	x8, _RX_CLS_FLOW_DISC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RX_CLS_FLOW_DISC@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20, #4]
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x19
	bl	___qede_unlock
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDE_RFS_MAX_FLTR,4,2          ; @QEDE_RFS_MAX_FLTR
	.comm	_EPERM,4,2                      ; @EPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rule not found - location=0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_TCP_V4_FLOW,4,2                ; @TCP_V4_FLOW
	.comm	_UDP_V4_FLOW,4,2                ; @UDP_V4_FLOW
	.comm	_TCP_V6_FLOW,4,2                ; @TCP_V6_FLOW
	.comm	_UDP_V6_FLOW,4,2                ; @UDP_V6_FLOW
	.comm	_ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF,4,2 ; @ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF
	.comm	_RX_CLS_FLOW_DISC,4,2           ; @RX_CLS_FLOW_DISC
.subsections_via_symbols
