	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_cleanup_and_realloc_vf
_ice_cleanup_and_realloc_vf:            ## @ice_cleanup_and_realloc_vf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movl	(%rdi), %edi
	callq	_VPGEN_VFRTRIG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rd32
	movq	_VPGEN_VFRTRIG_VFSWR_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	callq	_VPGEN_VFRTRIG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_wr32
	movq	%r15, %rdi
	callq	_ice_alloc_vf_res
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_ice_ena_vf_mappings
	movq	_ICE_VF_STATE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_set_bit
	movq	_ICE_VF_STATE_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_clear_bit
	movq	$0, 8(%r15)
LBB0_2:
	movl	(%r15), %edi
	callq	_VFGEN_RSTAT
	movq	_VIRTCHNL_VFR_VFACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPGEN_VFRTRIG_VFSWR_M,4,2      ## @VPGEN_VFRTRIG_VFSWR_M
	.comm	_ICE_VF_STATE_ACTIVE,4,2        ## @ICE_VF_STATE_ACTIVE
	.comm	_ICE_VF_STATE_DIS,4,2           ## @ICE_VF_STATE_DIS
	.comm	_VIRTCHNL_VFR_VFACTIVE,4,2      ## @VIRTCHNL_VFR_VFACTIVE
	.no_dead_strip	_ice_cleanup_and_realloc_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_cleanup_and_realloc_vf
_ice_cleanup_and_realloc_vf:            ; @ice_cleanup_and_realloc_vf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x19, [x0, #24]
	ldr	w0, [x0]
	bl	_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x19
	bl	_rd32
Lloh0:
	adrp	x8, _VPGEN_VFRTRIG_VFSWR_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPGEN_VFRTRIG_VFSWR_M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	w0, [x20]
	bl	_VPGEN_VFRTRIG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_wr32
	mov	x0, x20
	bl	_ice_alloc_vf_res
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_ice_ena_vf_mappings
Lloh3:
	adrp	x8, _ICE_VF_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_VF_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_set_bit
Lloh6:
	adrp	x8, _ICE_VF_STATE_DIS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_VF_STATE_DIS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_clear_bit
	str	xzr, [x20, #8]
LBB0_2:
	ldr	w0, [x20]
	bl	_VFGEN_RSTAT
	mov	x1, x0
Lloh9:
	adrp	x8, _VIRTCHNL_VFR_VFACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIRTCHNL_VFR_VFACTIVE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wr32
	.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	_VPGEN_VFRTRIG_VFSWR_M,4,2      ; @VPGEN_VFRTRIG_VFSWR_M
	.comm	_ICE_VF_STATE_ACTIVE,4,2        ; @ICE_VF_STATE_ACTIVE
	.comm	_ICE_VF_STATE_DIS,4,2           ; @ICE_VF_STATE_DIS
	.comm	_VIRTCHNL_VFR_VFACTIVE,4,2      ; @VIRTCHNL_VFR_VFACTIVE
	.no_dead_strip	_ice_cleanup_and_realloc_vf
.subsections_via_symbols
