	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_flow_spec_to_rule
_qede_flow_spec_to_rule:                ## @qede_flow_spec_to_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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rdx, %rsi
	callq	_qede_flow_spec_validate_unused
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	movq	_FLOW_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.qede_flow_spec_to_rule(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, %r13d
	movq	%rbx, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_ethtool_rx_flow_rule_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_DP_VERBOSE
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movq	%r14, %rcx
	callq	_qede_parse_flow_attr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_8:
	movq	(%r12), %rsi
	movl	4(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_qede_flow_spec_validate
	movl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_ethtool_rx_flow_rule_destroy
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_FLOW_EXT,4,2                   ## @FLOW_EXT
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't support flow of type %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qede_flow_spec_to_rule
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qede_flow_spec_to_rule
l_switch.table.qede_flow_spec_to_rule:
	.quad	_ETH_P_IPV6
	.quad	_ETH_P_IP
	.quad	_ETH_P_IPV6
	.quad	_ETH_P_IP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_flow_spec_to_rule
_qede_flow_spec_to_rule:                ; @qede_flow_spec_to_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x1, x2
	bl	_qede_flow_spec_validate_unused
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w3, [x21]
Lloh0:
	adrp	x8, _FLOW_EXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLOW_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w3, w8
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, l_switch.table.qede_flow_spec_to_rule@PAGE
Lloh4:
	add	x9, x9, l_switch.table.qede_flow_spec_to_rule@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	bl	_htons
	mov	x23, x0
	str	x21, [sp, #8]
	add	x0, sp, #8
	bl	_ethtool_rx_flow_rule_create
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x19, x0
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _NETIF_MSG_IFUP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_5:
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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:
	ldr	x2, [x22]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x20
	bl	_qede_parse_flow_attr
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_9:
	ldr	x1, [x22]
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	x2, x20
	bl	_qede_flow_spec_validate
	mov	x19, x0
LBB0_10:
	mov	x0, x22
	bl	_ethtool_rx_flow_rule_destroy
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_FLOW_EXT,4,2                   ; @FLOW_EXT
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't support flow of type %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qede_flow_spec_to_rule
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qede_flow_spec_to_rule
l_switch.table.qede_flow_spec_to_rule:
	.quad	_ETH_P_IPV6
	.quad	_ETH_P_IP
	.quad	_ETH_P_IPV6
	.quad	_ETH_P_IP

.subsections_via_symbols
