	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_get_vf_config
_qed_get_vf_config:                     ## @qed_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_QED_LEADING_HWFN
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_IS_VF
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_2:
	movq	(%rbx), %rdi
	xorl	%r12d, %r12d
	movl	%r14d, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_qed_iov_is_valid_vfid
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_qed_iov_get_public_vf_info
	movq	%r13, %rbx
	movq	%rax, %r13
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_qed_iov_get_link
	movl	%r14d, (%r15)
	movl	20(%r13), %edi
	callq	_is_valid_ether_addr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	28(%r15), %edi
	movl	16(%r13,%rcx,4), %esi
	callq	_ether_addr_copy
	movl	12(%r13), %eax
	movl	%eax, 24(%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_qed_iov_spoofchk_get
	movl	%eax, 20(%r15)
	movl	8(%r13), %eax
	movl	%eax, 16(%r15)
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rax
LBB0_6:
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_qed_iov_get_vf_min_rate
	movl	%eax, 4(%r15)
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	callq	_DP_VERBOSE
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF index [%d] isn't active\n"

	.no_dead_strip	_qed_get_vf_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_get_vf_config
_qed_get_vf_config:                     ; @qed_get_vf_config
	.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	x19, x1
	mov	x22, x0
	bl	_QED_LEADING_HWFN
	mov	x21, x0
	mov	x0, x22
	bl	_IS_VF
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	ldr	x0, [x22]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	bl	_qed_iov_is_valid_vfid
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_qed_iov_get_public_vf_info
	mov	x22, x0
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x4, #0
	bl	_qed_iov_get_link
	str	w19, [x20]
	ldr	w0, [x22, #20]
	bl	_is_valid_ether_addr
	ldr	w8, [x20, #28]
	mov	w9, #20
	mov	w10, #16
	cmp	x0, #0
	csel	x9, x10, x9, eq
	ldr	w1, [x22, x9]
	mov	x0, x8
	bl	_ether_addr_copy
	ldr	w8, [x22, #12]
	str	w8, [x20, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_qed_iov_spoofchk_get
	ldr	w8, [x22, #8]
	stp	w8, w0, [x20, #16]
	ldr	x8, [x22]
	ldr	x9, [sp, #8]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [x20, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_qed_iov_get_vf_min_rate
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #4]
LBB0_4:
	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
LBB0_5:
Lloh3:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	bl	_DP_VERBOSE
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF index [%d] isn't active\n"

	.no_dead_strip	_qed_get_vf_config
.subsections_via_symbols
