	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_config_res_vfs
_ice_config_res_vfs:                    ## @ice_config_res_vfs
	.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	%rdi, %r12
	callq	_ice_check_avail_res
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	leaq	32(%r12), %rbx
	movq	___ICE_OICR_INTR_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ice_irq_dynamic_ena
LBB0_4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	leaq	(%rax,%rbx), %r13
	movl	16(%r12), %ecx
	movl	%ecx, (%rax,%rbx)
	movq	8(%r12), %rdi
	movl	4(%rax,%rbx), %edx
	movq	%r15, %rsi
	callq	_dev_dbg
	movq	%r13, %rdi
	callq	_ice_cleanup_and_realloc_vf
	incq	%r14
	movslq	(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ice_flush
	movq	___ICE_VF_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_clear_bit
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate VF resources, try with fewer number of VFs\n"

	.comm	___ICE_OICR_INTR_DIS,4,2        ## @__ICE_OICR_INTR_DIS
L_.str.1:                               ## @.str.1
	.asciz	"VF-id %d has %d queues configured\n"

	.comm	___ICE_VF_DIS,4,2               ## @__ICE_VF_DIS
	.no_dead_strip	_ice_config_res_vfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_config_res_vfs
_ice_config_res_vfs:                    ; @ice_config_res_vfs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_ice_check_avail_res
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	add	x20, x19, #32
Lloh2:
	adrp	x8, ___ICE_OICR_INTR_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___ICE_OICR_INTR_DIS@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_and_clear_bit
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_ice_irq_dynamic_ena
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
	mov	x24, #0
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x22, x8, x23
	ldr	w3, [x19, #16]
	str	w3, [x22]
	ldr	x0, [x19, #8]
	ldr	w2, [x22, #4]
	mov	x1, x21
	bl	_dev_dbg
	mov	x0, x22
	bl	_ice_cleanup_and_realloc_vf
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_6
LBB0_7:
	mov	x0, x20
	bl	_ice_flush
Lloh7:
	adrp	x8, ___ICE_VF_DIS@GOTPAGE
Lloh8:
	ldr	x8, [x8, ___ICE_VF_DIS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_clear_bit
	mov	w0, #1
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate VF resources, try with fewer number of VFs\n"

	.comm	___ICE_OICR_INTR_DIS,4,2        ; @__ICE_OICR_INTR_DIS
l_.str.1:                               ; @.str.1
	.asciz	"VF-id %d has %d queues configured\n"

	.comm	___ICE_VF_DIS,4,2               ; @__ICE_VF_DIS
	.no_dead_strip	_ice_config_res_vfs
.subsections_via_symbols
