	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_cls_rule
_update_cls_rule:                       ## @update_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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	xorl	%r13d, %r13d
	cmpl	$0, 16(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_dpaa2_eth_fs_count
	cmpl	%r14d, %eax
	jle	LBB0_3
## %bb.4:
	movq	8(%r12), %rax
	movslq	%r14d, %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rax,%r14,8)
	je	LBB0_9
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,8), %rsi
	addq	$4, %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_do_cls_rule
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax,%r14,8)
	movq	%r12, %rdi
	callq	_dpaa2_eth_fs_mask_enabled
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_num_rules
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	$0, (%r12)
LBB0_9:
	movl	%r13d, %eax
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_do_cls_rule
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$1, (%rcx,%r14,8)
	movl	(%rbx), %eax
	movl	%eax, 4(%rcx,%r14,8)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %eax
	jmp	LBB0_12
LBB0_3:
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_update_cls_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_cls_rule
_update_cls_rule:                       ; @update_cls_rule
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w25, [x23]
	bl	_dpaa2_eth_fs_count
	cmp	w0, w22
	b.le	LBB0_8
; %bb.2:
	ldr	x23, [x21, #8]
	sxtw	x24, w22
	add	x22, x23, w22, sxtw #3
	ldr	w8, [x22]
	cbz	w8, LBB0_11
; %bb.3:
	add	x8, x23, x24, lsl #3
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #0
	bl	_do_cls_rule
	cbnz	w0, LBB0_10
; %bb.4:
	str	wzr, [x22]
	mov	x0, x21
	bl	_dpaa2_eth_fs_mask_enabled
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_12
; %bb.5:
	mov	x0, x21
	bl	_num_rules
	cbz	w0, LBB0_15
; %bb.6:
	mov	w0, #0
	cbnz	x19, LBB0_13
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x23]
LBB0_9:
	neg	w0, w8
LBB0_10:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	neg	w0, w25
LBB0_12:
	cbz	x19, LBB0_10
LBB0_13:
	mov	w21, #1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_do_cls_rule
	cbnz	w0, LBB0_10
; %bb.14:
	str	w21, [x22]
	add	x8, x23, x24, lsl #3
	ldr	w9, [x19]
	str	w9, [x8, #4]
	b	LBB0_10
LBB0_15:
	str	xzr, [x21]
	cbnz	x19, LBB0_13
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_update_cls_rule
.subsections_via_symbols
