	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_enable_vf_access
_qed_iov_enable_vf_access:              ## @qed_iov_enable_vf_access
	.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	_IGU_VF_CONF_FUNC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$0, (%rdx)
	xorl	%eax, %eax
	cmpq	$0, 32(%rdx)
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%rdx), %r12d
	movq	%rdx, %rsi
	callq	_QED_VF_ABS_ID
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_DP_VERBOSE
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_QED_VF_ABS_ID
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_qed_iov_vf_pglue_clear_err
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_qed_iov_vf_igu_reset
	movl	8(%rbx), %edx
	movl	24(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_iov_enable_vf_access_msix
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	16(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_fid_pretend
	movq	_IGU_VF_CONF_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_SET_FIELD
	movq	_IGU_REG_VF_CONFIGURATION_RT_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_STORE_RT_REG
	movq	_PHASE_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %ecx
	movl	8(%r15), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_init_run
	movl	(%r15), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_fid_pretend
	movq	_VF_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IGU_VF_CONF_FUNC_EN,4,2        ## @IGU_VF_CONF_FUNC_EN
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enable internal access for vf %x [abs %x]\n"

	.comm	_IGU_VF_CONF_PARENT,4,2         ## @IGU_VF_CONF_PARENT
	.comm	_IGU_REG_VF_CONFIGURATION_RT_OFFSET,4,2 ## @IGU_REG_VF_CONFIGURATION_RT_OFFSET
	.comm	_PHASE_VF,4,2                   ## @PHASE_VF
	.comm	_VF_FREE,4,2                    ## @VF_FREE
	.no_dead_strip	_qed_iov_enable_vf_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_enable_vf_access
_qed_iov_enable_vf_access:              ; @qed_iov_enable_vf_access
	.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	x21, x0
	mov	w0, #0
Lloh0:
	adrp	x8, _IGU_VF_CONF_FUNC_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IGU_VF_CONF_FUNC_EN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	str	wzr, [x2]
	ldr	x8, [x2, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
Lloh3:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	w24, [x2, #8]
	mov	x0, x21
	mov	x1, x2
	bl	_QED_VF_ABS_ID
	mov	x4, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x3, x24
	bl	_DP_VERBOSE
	mov	x0, x21
	mov	x1, x19
	bl	_QED_VF_ABS_ID
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_qed_iov_vf_pglue_clear_err
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_qed_iov_vf_igu_reset
	ldr	w2, [x19, #8]
	ldr	w3, [x19, #24]
	mov	x0, x21
	mov	x1, x20
	bl	_qed_iov_enable_vf_access_msix
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w2, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_qed_fid_pretend
Lloh8:
	adrp	x8, _IGU_VF_CONF_PARENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IGU_VF_CONF_PARENT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x21, #16]
	mov	x0, x22
	bl	_SET_FIELD
Lloh11:
	adrp	x8, _IGU_REG_VF_CONFIGURATION_RT_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IGU_REG_VF_CONFIGURATION_RT_OFFSET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_STORE_RT_REG
Lloh14:
	adrp	x8, _PHASE_VF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PHASE_VF@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w3, [x19, #8]
	ldr	w4, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_qed_init_run
	ldr	w2, [x21]
	mov	x0, x21
	mov	x1, x20
	bl	_qed_fid_pretend
	mov	w0, #0
Lloh17:
	adrp	x8, _VF_FREE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VF_FREE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IGU_VF_CONF_FUNC_EN,4,2        ; @IGU_VF_CONF_FUNC_EN
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enable internal access for vf %x [abs %x]\n"

	.comm	_IGU_VF_CONF_PARENT,4,2         ; @IGU_VF_CONF_PARENT
	.comm	_IGU_REG_VF_CONFIGURATION_RT_OFFSET,4,2 ; @IGU_REG_VF_CONFIGURATION_RT_OFFSET
	.comm	_PHASE_VF,4,2                   ; @PHASE_VF
	.comm	_VF_FREE,4,2                    ; @VF_FREE
	.no_dead_strip	_qed_iov_enable_vf_access
.subsections_via_symbols
