	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_cls_rule
_do_cls_rule:                           ## @do_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r13), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movq	$0, -48(%rbp)
	movq	(%r14), %rbx
	movq	_RX_CLS_FLOW_DISC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_dpaa2_eth_queue_count
	cmpq	%rax, %rbx
	jge	LBB0_2
LBB0_4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	_DPAA2_ETH_DIST_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_dpaa2_eth_cls_key_size
	movq	%rax, %r14
	movl	%r14d, -112(%rbp)
	leal	(%rax,%rax), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rdx
	addq	%rax, %rdx
	leaq	-48(%rbp), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_prep_cls_rule
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dpaa2_eth_fs_mask_enabled
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_12
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.14:
	cmpq	%rax, %rsi
	je	LBB0_11
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_27
LBB0_9:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_dpaa2_eth_set_cls
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.10:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_11:
	movq	%rbx, %rdi
	callq	_dpaa2_eth_cls_trim_rule
	movq	-48(%rbp), %rdi
	callq	_dpaa2_eth_cls_key_size
	movq	%rax, %r14
	movl	%r14d, -112(%rbp)
	movl	%r14d, %r15d
	addl	%r14d, %r15d
LBB0_12:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_dma_map_single
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_26
LBB0_17:
	movq	%r13, -96(%rbp)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_dpaa2_eth_fs_mask_enabled
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movslq	%r14d, %rax
	movq	%r13, %rcx
	addq	%rax, %rcx
	movq	%rcx, -104(%rbp)
LBB0_19:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.20:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	_RX_CLS_FLOW_DISC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_22
## %bb.21:
	movq	_DPNI_FS_OPT_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	jmp	LBB0_23
LBB0_24:
	movl	8(%r15), %edx
	movl	12(%r15), %edi
	leaq	-112(%rbp), %r8
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_dpni_remove_fs_entry
	jmp	LBB0_25
LBB0_22:
	movq	%rax, -128(%rbp)
LBB0_23:
	movl	8(%r15), %edx
	movl	12(%r15), %edi
	movl	8(%rcx), %r8d
	leaq	-128(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-112(%rbp), %r9
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_dpni_add_fs_entry
LBB0_25:
	movl	%eax, %r12d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	-112(%rbp), %edx
	addl	%edx, %edx
	movl	(%rax), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_dma_unmap_single
LBB0_26:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_27:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_CLS_FLOW_DISC,8,3           ## @RX_CLS_FLOW_DISC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DPAA2_ETH_DIST_ALL,8,3         ## @DPAA2_ETH_DIST_ALL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No support for multiple FS keys, need to delete existing rules\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_DPNI_FS_OPT_DISCARD,4,2        ## @DPNI_FS_OPT_DISCARD
	.no_dead_strip	_do_cls_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_cls_rule
_do_cls_rule:                           ; @do_cls_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x21, x1
	mov	x24, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	x19, [x24]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	ldr	x20, [x21]
Lloh0:
	adrp	x28, _RX_CLS_FLOW_DISC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _RX_CLS_FLOW_DISC@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x20, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_dpaa2_eth_queue_count
	cmp	x20, x0
	b.ge	LBB0_9
LBB0_2:
Lloh2:
	adrp	x8, _DPAA2_ETH_DIST_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPAA2_ETH_DIST_ALL@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	bl	_dpaa2_eth_cls_key_size
	mov	x25, x0
	str	w25, [sp, #32]
	lsl	w26, w25, #1
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	add	x2, x0, w25, sxtw
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_prep_cls_rule
	mov	x27, x0
	cbnz	w0, LBB0_26
; %bb.4:
	mov	x0, x22
	bl	_dpaa2_eth_fs_mask_enabled
	cbnz	x0, LBB0_14
; %bb.5:
	ldr	x1, [x22]
	ldr	x8, [sp, #8]
	cbz	x1, LBB0_11
; %bb.6:
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_netdev_err
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_27
LBB0_11:
	mov	x0, x24
	mov	x1, x8
	bl	_dpaa2_eth_set_cls
	mov	x27, x0
	cbnz	w0, LBB0_26
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x22]
	ldr	x1, [sp, #8]
LBB0_13:
	mov	x0, x20
	bl	_dpaa2_eth_cls_trim_rule
	ldr	x0, [sp, #8]
	bl	_dpaa2_eth_cls_key_size
	mov	x25, x0
	str	w25, [sp, #32]
	lsl	w26, w25, #1
LBB0_14:
Lloh16:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh17:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x26
	bl	_dma_map_single
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_17
; %bb.15:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_26
LBB0_17:
	str	x24, [sp, #48]
	mov	x0, x22
	bl	_dpaa2_eth_fs_mask_enabled
	cbz	x0, LBB0_19
; %bb.18:
	add	x8, x24, w25, sxtw
	str	x8, [sp, #40]
LBB0_19:
	cbz	w23, LBB0_22
; %bb.20:
	ldr	x8, [x21]
	ldr	x9, [x28]
	mov	x23, x27
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.21:
Lloh20:
	adrp	x8, _DPNI_FS_OPT_DISCARD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DPNI_FS_OPT_DISCARD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	b	LBB0_24
LBB0_22:
	mov	x23, x27
	ldp	w2, w0, [x22, #8]
	add	x4, sp, #32
	mov	w1, #0
	mov	w3, #0
	bl	_dpni_remove_fs_entry
	b	LBB0_25
LBB0_23:
	str	x8, [sp, #16]
LBB0_24:
	ldp	w2, w0, [x22, #8]
	ldr	w4, [x21, #8]
	add	x5, sp, #32
	add	x6, sp, #16
	mov	w1, #0
	mov	w3, #0
	bl	_dpni_add_fs_entry
LBB0_25:
	mov	x27, x0
	ldr	w8, [sp, #32]
	lsl	w2, w8, #1
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x24
	bl	_dma_unmap_single
LBB0_26:
	mov	x0, x20
	bl	_kfree
LBB0_27:
	mov	x0, x27
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_CLS_FLOW_DISC,8,3           ; @RX_CLS_FLOW_DISC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DPAA2_ETH_DIST_ALL,8,3         ; @DPAA2_ETH_DIST_ALL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No support for multiple FS keys, need to delete existing rules\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_DPNI_FS_OPT_DISCARD,4,2        ; @DPNI_FS_OPT_DISCARD
	.no_dead_strip	_do_cls_rule
.subsections_via_symbols
