	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_reset_hw_pf
_fm10k_reset_hw_pf:                     ## @fm10k_reset_hw_pf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FM10K_EIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FM10K_EIMR_DISABLE
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_fm10k_write_reg
	xorl	%edi, %edi
	callq	_FM10K_ITR2
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movq	_FM10K_INT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movq	_FM10K_TQMAP_TABLE_SIZE@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_FM10K_TQMAP
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	movq	%rbx, %rdi
	callq	_FM10K_RQMAP
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_fm10k_write_reg
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_2
LBB0_3:
	movq	_FM10K_MAX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_fm10k_disable_queues_generic
	movq	_FM10K_ERR_REQUESTS_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	incl	(%r14)
LBB0_5:
	movq	_FM10K_DMA_CTRL_DATAPATH_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FM10K_DMA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	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
	movq	_FM10K_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_fm10k_read_reg
	movq	_FM10K_IP_NOTINRESET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.10:
	movq	_FM10K_ERR_RESET_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movq	_FM10K_DMA_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_fm10k_read_reg
	movq	_FM10K_DMA_CTRL_TX_ACTIVE@GOTPCREL(%rip), %rcx
	movq	_FM10K_DMA_CTRL_RX_ACTIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.9:
	movq	_FM10K_ERR_DMA_PENDING@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_EIMR,4,2                 ## @FM10K_EIMR
	.comm	_ALL,4,2                        ## @ALL
	.comm	_FM10K_INT_CTRL,4,2             ## @FM10K_INT_CTRL
	.comm	_FM10K_TQMAP_TABLE_SIZE,8,3     ## @FM10K_TQMAP_TABLE_SIZE
	.comm	_FM10K_MAX_QUEUES,4,2           ## @FM10K_MAX_QUEUES
	.comm	_FM10K_ERR_REQUESTS_PENDING,8,3 ## @FM10K_ERR_REQUESTS_PENDING
	.comm	_FM10K_DMA_CTRL,4,2             ## @FM10K_DMA_CTRL
	.comm	_FM10K_DMA_CTRL_TX_ACTIVE,4,2   ## @FM10K_DMA_CTRL_TX_ACTIVE
	.comm	_FM10K_DMA_CTRL_RX_ACTIVE,4,2   ## @FM10K_DMA_CTRL_RX_ACTIVE
	.comm	_FM10K_ERR_DMA_PENDING,8,3      ## @FM10K_ERR_DMA_PENDING
	.comm	_FM10K_DMA_CTRL_DATAPATH_RESET,4,2 ## @FM10K_DMA_CTRL_DATAPATH_RESET
	.comm	_FM10K_RESET_TIMEOUT,4,2        ## @FM10K_RESET_TIMEOUT
	.comm	_FM10K_IP,4,2                   ## @FM10K_IP
	.comm	_FM10K_IP_NOTINRESET,4,2        ## @FM10K_IP_NOTINRESET
	.comm	_FM10K_ERR_RESET_FAILED,8,3     ## @FM10K_ERR_RESET_FAILED
	.no_dead_strip	_fm10k_reset_hw_pf
.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_pf
_fm10k_reset_hw_pf:                     ; @fm10k_reset_hw_pf
	.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
Lloh0:
	adrp	x8, _FM10K_EIMR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_EIMR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_FM10K_EIMR_DISABLE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fm10k_write_reg
	mov	w0, #0
	bl	_FM10K_ITR2
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
Lloh6:
	adrp	x8, _FM10K_INT_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_INT_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
Lloh9:
	adrp	x21, _FM10K_TQMAP_TABLE_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _FM10K_TQMAP_TABLE_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_FM10K_TQMAP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
	mov	x0, x20
	bl	_FM10K_RQMAP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fm10k_write_reg
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
Lloh11:
	adrp	x8, _FM10K_MAX_QUEUES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FM10K_MAX_QUEUES@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_disable_queues_generic
Lloh14:
	adrp	x8, _FM10K_ERR_REQUESTS_PENDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FM10K_ERR_REQUESTS_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_5:
Lloh17:
	adrp	x8, _FM10K_DMA_CTRL_DATAPATH_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FM10K_DMA_CTRL_DATAPATH_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _FM10K_DMA_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FM10K_DMA_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_write_reg
	mov	x0, x19
	bl	_fm10k_write_flush
Lloh23:
	adrp	x8, _FM10K_RESET_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FM10K_RESET_TIMEOUT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_udelay
Lloh26:
	adrp	x8, _FM10K_IP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FM10K_IP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_read_reg
Lloh29:
	adrp	x8, _FM10K_IP_NOTINRESET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FM10K_IP_NOTINRESET@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _FM10K_ERR_RESET_FAILED@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FM10K_ERR_RESET_FAILED@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	tst	w8, w0
	csel	x0, x9, xzr, eq
	b	LBB0_9
LBB0_6:
	cbnz	x0, LBB0_9
; %bb.7:
Lloh35:
	adrp	x8, _FM10K_DMA_CTRL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FM10K_DMA_CTRL@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fm10k_read_reg
Lloh38:
	adrp	x8, _FM10K_DMA_CTRL_TX_ACTIVE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FM10K_DMA_CTRL_TX_ACTIVE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _FM10K_DMA_CTRL_RX_ACTIVE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _FM10K_DMA_CTRL_RX_ACTIVE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_5
; %bb.8:
Lloh44:
	adrp	x8, _FM10K_ERR_DMA_PENDING@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FM10K_ERR_DMA_PENDING@GOTPAGEOFF]
Lloh46:
	ldr	x0, [x8]
LBB0_9:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_EIMR,4,2                 ; @FM10K_EIMR
	.comm	_ALL,4,2                        ; @ALL
	.comm	_FM10K_INT_CTRL,4,2             ; @FM10K_INT_CTRL
	.comm	_FM10K_TQMAP_TABLE_SIZE,8,3     ; @FM10K_TQMAP_TABLE_SIZE
	.comm	_FM10K_MAX_QUEUES,4,2           ; @FM10K_MAX_QUEUES
	.comm	_FM10K_ERR_REQUESTS_PENDING,8,3 ; @FM10K_ERR_REQUESTS_PENDING
	.comm	_FM10K_DMA_CTRL,4,2             ; @FM10K_DMA_CTRL
	.comm	_FM10K_DMA_CTRL_TX_ACTIVE,4,2   ; @FM10K_DMA_CTRL_TX_ACTIVE
	.comm	_FM10K_DMA_CTRL_RX_ACTIVE,4,2   ; @FM10K_DMA_CTRL_RX_ACTIVE
	.comm	_FM10K_ERR_DMA_PENDING,8,3      ; @FM10K_ERR_DMA_PENDING
	.comm	_FM10K_DMA_CTRL_DATAPATH_RESET,4,2 ; @FM10K_DMA_CTRL_DATAPATH_RESET
	.comm	_FM10K_RESET_TIMEOUT,4,2        ; @FM10K_RESET_TIMEOUT
	.comm	_FM10K_IP,4,2                   ; @FM10K_IP
	.comm	_FM10K_IP_NOTINRESET,4,2        ; @FM10K_IP_NOTINRESET
	.comm	_FM10K_ERR_RESET_FAILED,8,3     ; @FM10K_ERR_RESET_FAILED
	.no_dead_strip	_fm10k_reset_hw_pf
.subsections_via_symbols
