	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_get_vf_config             ## -- Begin function iavf_get_vf_config
	.p2align	4, 0x90
_iavf_get_vf_config:                    ## @iavf_get_vf_config
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IAVF_MAX_VF_VSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(,%rax,4), %r12d
	movl	%r12d, -64(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kzalloc
	movl	%eax, -60(%rbp)
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %r15
	leaq	-64(%rbp), %r13
	movq	_VIRTCHNL_OP_GET_VF_RESOURCES@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_iavf_clean_arq_element
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	cmpl	%eax, (%r14)
	jne	LBB0_2
## %bb.5:
	movl	-52(%rbp), %edi
	callq	_le32_to_cpu
	movq	%rax, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %r13d
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %edi
	movl	%r12d, %esi
	callq	_min
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_iavf_validate_num_queues
LBB0_7:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_iavf_vf_parse_hw_config
	jmp	LBB0_8
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
LBB0_8:
	movl	-60(%rbp), %edi
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IAVF_MAX_VF_VSI,4,2            ## @IAVF_MAX_VF_VSI
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VIRTCHNL_OP_GET_VF_RESOURCES,4,2 ## @VIRTCHNL_OP_GET_VF_RESOURCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iavf_get_vf_config             ; -- Begin function iavf_get_vf_config
	.p2align	2
_iavf_get_vf_config:                    ; @iavf_get_vf_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _IAVF_MAX_VF_VSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IAVF_MAX_VF_VSI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w21, w8, #4
	str	w21, [sp, #8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	str	w0, [sp, #12]
	cbz	w0, LBB0_7
; %bb.1:
	add	x20, x19, #4
Lloh6:
	adrp	x23, _VIRTCHNL_OP_GET_VF_RESOURCES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _VIRTCHNL_OP_GET_VF_RESOURCES@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_iavf_clean_arq_element
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #24]
	bl	_le32_to_cpu
	ldr	w8, [x23]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.4:
	ldr	w0, [sp, #20]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w23, [x19]
	ldp	w24, w0, [sp, #12]
	mov	x1, x21
	bl	_min
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	cbnz	w22, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_iavf_validate_num_queues
LBB0_6:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_iavf_vf_parse_hw_config
	b	LBB0_9
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_8:
	mov	x22, x0
LBB0_9:
	ldr	w0, [sp, #12]
	bl	_kfree
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IAVF_MAX_VF_VSI,4,2            ; @IAVF_MAX_VF_VSI
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VIRTCHNL_OP_GET_VF_RESOURCES,4,2 ; @VIRTCHNL_OP_GET_VF_RESOURCES
.subsections_via_symbols
