	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_remove_vsi_list_rule
_ice_remove_vsi_list_rule:              ## @ice_remove_vsi_list_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, -40(%rbp)
	xorl	%edi, %edi
	callq	_ICE_SW_RULE_VSI_LIST_SIZE
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_ice_hw_to_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	_ice_aqc_opc_free_res@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ice_aq_alloc_free_vsi_list
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_devm_kfree
	jmp	LBB0_3
LBB0_1:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.comm	_ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR,8,3 ## @ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR
	.comm	_ice_aqc_opc_free_res,4,2       ## @ice_aqc_opc_free_res
	.no_dead_strip	_ice_remove_vsi_list_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_remove_vsi_list_rule
_ice_remove_vsi_list_rule:              ; @ice_remove_vsi_list_rule
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	mov	x19, x0
	str	x1, [sp, #8]
	mov	w0, #0
	bl	_ICE_SW_RULE_VSI_LIST_SIZE
	mov	x21, x0
	mov	x0, x19
	bl	_ice_hw_to_dev
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_devm_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x21]
Lloh6:
	adrp	x8, _ice_aqc_opc_free_res@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ice_aqc_opc_free_res@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_ice_aq_alloc_free_vsi_list
	mov	x20, x0
	mov	x0, x19
	bl	_ice_hw_to_dev
	mov	x1, x21
	bl	_devm_kfree
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.comm	_ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR,8,3 ; @ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR
	.comm	_ice_aqc_opc_free_res,4,2       ; @ice_aqc_opc_free_res
	.no_dead_strip	_ice_remove_vsi_list_rule
.subsections_via_symbols
