	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_poll_sr_srctl_done_bit
_i40e_poll_sr_srctl_done_bit:           ## @i40e_poll_sr_srctl_done_bit
	.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	%rdi, %rbx
	movq	_I40E_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_I40E_SRRD_SRCTL_ATTEMPTS@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_7
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_I40E_GLNVM_SRCTL@GOTPCREL(%rip), %r13
	movq	_I40E_GLNVM_SRCTL_DONE_MASK@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_rd32
	testq	%rax, (%r15)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$5, %edi
	callq	_udelay
	incq	%r14
	cmpq	(%r12), %r14
	jl	LBB0_2
## %bb.5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_3:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_I40E_ERR_TIMEOUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_8
LBB0_7:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_i40e_debug
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_ERR_TIMEOUT,8,3           ## @I40E_ERR_TIMEOUT
	.comm	_I40E_SRRD_SRCTL_ATTEMPTS,8,3   ## @I40E_SRRD_SRCTL_ATTEMPTS
	.comm	_I40E_GLNVM_SRCTL,4,2           ## @I40E_GLNVM_SRCTL
	.comm	_I40E_GLNVM_SRCTL_DONE_MASK,8,3 ## @I40E_GLNVM_SRCTL_DONE_MASK
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Done bit in GLNVM_SRCTL not set"

	.no_dead_strip	_i40e_poll_sr_srctl_done_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_poll_sr_srctl_done_bit
_i40e_poll_sr_srctl_done_bit:           ; @i40e_poll_sr_srctl_done_bit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x21, _I40E_ERR_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I40E_ERR_TIMEOUT@GOTPAGEOFF]
	ldr	x19, [x21]
Lloh2:
	adrp	x22, _I40E_SRRD_SRCTL_ATTEMPTS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I40E_SRRD_SRCTL_ATTEMPTS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
Lloh4:
	adrp	x24, _I40E_GLNVM_SRCTL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _I40E_GLNVM_SRCTL@GOTPAGEOFF]
Lloh6:
	adrp	x25, _I40E_GLNVM_SRCTL_DONE_MASK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _I40E_GLNVM_SRCTL_DONE_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_rd32
	ldr	x8, [x25]
	tst	x8, x0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #5
	bl	_udelay
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
	ldr	x8, [x21]
	cmp	x19, x8
	b.ne	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _I40E_DEBUG_NVM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I40E_DEBUG_NVM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_i40e_debug
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_ERR_TIMEOUT,8,3           ; @I40E_ERR_TIMEOUT
	.comm	_I40E_SRRD_SRCTL_ATTEMPTS,8,3   ; @I40E_SRRD_SRCTL_ATTEMPTS
	.comm	_I40E_GLNVM_SRCTL,4,2           ; @I40E_GLNVM_SRCTL
	.comm	_I40E_GLNVM_SRCTL_DONE_MASK,8,3 ; @I40E_GLNVM_SRCTL_DONE_MASK
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Done bit in GLNVM_SRCTL not set"

	.no_dead_strip	_i40e_poll_sr_srctl_done_bit
.subsections_via_symbols
