	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_remove_rule_internal
_ice_remove_rule_internal:              ## @ice_remove_rule_internal
	.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, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movl	(%rdx), %esi
	callq	_ice_is_vsi_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ice_get_hw_vsi_num
	movl	%eax, 4(%rbx)
	leaq	(,%r15,4), %r14
	addq	(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ice_find_rule_entry
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	_ICE_FWD_TO_VSI_LIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.5:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	jl	LBB0_8
## %bb.7:
	decl	%ecx
	movl	%ecx, (%rax)
LBB0_10:
	movq	%r12, %rdi
	callq	_ice_hw_to_dev
	movq	_ICE_SW_RULE_RX_TX_NO_HDR_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r13
	leaq	16(%r15), %rsi
	movq	_ice_aqc_opc_remove_sw_rules@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_ice_fill_sw_rule
	movq	_ICE_SW_RULE_RX_TX_NO_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_ice_aq_sw_rules
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_devm_kfree
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_list_del
	movq	%r12, %rdi
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_devm_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_ICE_ERR_DOES_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_14
LBB0_8:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_ice_rem_update_vsi_list
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	je	LBB0_10
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ## @ICE_ERR_DOES_NOT_EXIST
	.comm	_ICE_FWD_TO_VSI_LIST,8,3        ## @ICE_FWD_TO_VSI_LIST
	.comm	_ICE_SW_RULE_RX_TX_NO_HDR_SIZE,4,2 ## @ICE_SW_RULE_RX_TX_NO_HDR_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.comm	_ice_aqc_opc_remove_sw_rules,4,2 ## @ice_aqc_opc_remove_sw_rules
	.no_dead_strip	_ice_remove_rule_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_remove_rule_internal
_ice_remove_rule_internal:              ; @ice_remove_rule_internal
	.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	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w1, [x2]
	bl	_ice_is_vsi_valid
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_ice_get_hw_vsi_num
	str	w0, [x23, #4]
	ldr	x8, [x19]
	add	x19, x8, x21, lsl #2
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_ice_find_rule_entry
	cbz	x0, LBB0_10
; %bb.2:
	mov	x21, x0
	mov	x22, x0
	ldr	x8, [x22, #16]!
Lloh0:
	adrp	x9, _ICE_FWD_TO_VSI_LIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_FWD_TO_VSI_LIST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.5:
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_6:
	mov	x0, x20
	bl	_ice_hw_to_dev
Lloh3:
	adrp	x23, _ICE_SW_RULE_RX_TX_NO_HDR_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ICE_SW_RULE_RX_TX_NO_HDR_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x24, x0
Lloh8:
	adrp	x25, _ice_aqc_opc_remove_sw_rules@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ice_aqc_opc_remove_sw_rules@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_ice_fill_sw_rule
	ldr	w2, [x23]
	ldr	w4, [x25]
	mov	x0, x20
	mov	x1, x24
	mov	w3, #1
	mov	x5, #0
	bl	_ice_aq_sw_rules
	mov	x23, x0
	mov	x0, x20
	bl	_ice_hw_to_dev
	mov	x1, x24
	bl	_devm_kfree
	cbnz	w23, LBB0_15
; %bb.8:
	add	x0, x21, #8
	bl	_list_del
	mov	x0, x20
	bl	_ice_hw_to_dev
	mov	x1, x21
	bl	_devm_kfree
	b	LBB0_15
LBB0_9:
Lloh10:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	b	LBB0_16
LBB0_10:
Lloh13:
	adrp	x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICE_ERR_DOES_NOT_EXIST@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	b	LBB0_15
LBB0_11:
Lloh16:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	b	LBB0_15
LBB0_12:
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_ice_rem_update_vsi_list
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.13:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.14:
	mov	w23, #0
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_ERR_DOES_NOT_EXIST,4,2     ; @ICE_ERR_DOES_NOT_EXIST
	.comm	_ICE_FWD_TO_VSI_LIST,8,3        ; @ICE_FWD_TO_VSI_LIST
	.comm	_ICE_SW_RULE_RX_TX_NO_HDR_SIZE,4,2 ; @ICE_SW_RULE_RX_TX_NO_HDR_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.comm	_ice_aqc_opc_remove_sw_rules,4,2 ; @ice_aqc_opc_remove_sw_rules
	.no_dead_strip	_ice_remove_rule_internal
.subsections_via_symbols
