	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_reset_hw_vf
_fm10k_reset_hw_vf:                     ## @fm10k_reset_hw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_fm10k_stop_hw_vf
	movq	%rax, %rbx
	movq	_FM10K_ERR_REQUESTS_PENDING@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	incl	(%r14)
	jmp	LBB0_3
LBB0_2:
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_3:
	movq	_FM10K_VFCTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FM10K_VFCTRL_RST@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_fm10k_write_reg
	movq	%r14, %rdi
	callq	_fm10k_write_flush
	movq	_FM10K_RESET_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_fm10k_read_reg
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_FM10K_ERR_RESET_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_ERR_REQUESTS_PENDING,8,3 ## @FM10K_ERR_REQUESTS_PENDING
	.comm	_FM10K_VFCTRL,4,2               ## @FM10K_VFCTRL
	.comm	_FM10K_VFCTRL_RST,4,2           ## @FM10K_VFCTRL_RST
	.comm	_FM10K_RESET_TIMEOUT,4,2        ## @FM10K_RESET_TIMEOUT
	.comm	_FM10K_ERR_RESET_FAILED,8,3     ## @FM10K_ERR_RESET_FAILED
	.no_dead_strip	_fm10k_reset_hw_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_reset_hw_vf
_fm10k_reset_hw_vf:                     ; @fm10k_reset_hw_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	x19, x0
	bl	_fm10k_stop_hw_vf
Lloh0:
	adrp	x8, _FM10K_ERR_REQUESTS_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_ERR_REQUESTS_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	cbnz	x0, LBB0_4
LBB0_3:
Lloh3:
	adrp	x20, _FM10K_VFCTRL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FM10K_VFCTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _FM10K_VFCTRL_RST@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FM10K_VFCTRL_RST@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fm10k_write_reg
	mov	x0, x19
	bl	_fm10k_write_flush
Lloh7:
	adrp	x8, _FM10K_RESET_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FM10K_RESET_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
	ldr	w1, [x20]
	mov	x0, x19
	bl	_fm10k_read_reg
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _FM10K_ERR_RESET_FAILED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FM10K_ERR_RESET_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	tst	w8, w0
	csel	x0, xzr, x9, eq
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_ERR_REQUESTS_PENDING,8,3 ; @FM10K_ERR_REQUESTS_PENDING
	.comm	_FM10K_VFCTRL,4,2               ; @FM10K_VFCTRL
	.comm	_FM10K_VFCTRL_RST,4,2           ; @FM10K_VFCTRL_RST
	.comm	_FM10K_RESET_TIMEOUT,4,2        ; @FM10K_RESET_TIMEOUT
	.comm	_FM10K_ERR_RESET_FAILED,8,3     ; @FM10K_ERR_RESET_FAILED
	.no_dead_strip	_fm10k_reset_hw_vf
.subsections_via_symbols
