	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_read_nvm_word_srctl
_i40e_read_nvm_word_srctl:              ## @i40e_read_nvm_word_srctl
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r8
	cmpq	%rsi, %r8
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%r12, %rdi
	callq	_i40e_poll_sr_srctl_done_bit
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_I40E_GLNVM_SRCTL_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %ebx
	shll	%cl, %ebx
	movq	_I40E_GLNVM_SRCTL_START_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_I40E_GLNVM_SRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_wr32
	movq	%r12, %rdi
	callq	_i40e_poll_sr_srctl_done_bit
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_i40e_debug
	jmp	LBB0_6
LBB0_1:
	movq	_I40E_DEBUG_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_i40e_debug
	movq	_I40E_ERR_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_I40E_GLNVM_SRDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rd32
	movq	_I40E_GLNVM_SRDATA_RDDATA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_I40E_GLNVM_SRDATA_RDDATA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cltq
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_ERR_TIMEOUT,8,3           ## @I40E_ERR_TIMEOUT
	.comm	_I40E_DEBUG_NVM,4,2             ## @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM read error: offset %d beyond Shadow RAM limit %d\n"

	.comm	_I40E_ERR_PARAM,8,3             ## @I40E_ERR_PARAM
	.comm	_I40E_GLNVM_SRCTL_ADDR_SHIFT,4,2 ## @I40E_GLNVM_SRCTL_ADDR_SHIFT
	.comm	_I40E_GLNVM_SRCTL_START_SHIFT,4,2 ## @I40E_GLNVM_SRCTL_START_SHIFT
	.comm	_I40E_GLNVM_SRCTL,4,2           ## @I40E_GLNVM_SRCTL
	.comm	_I40E_GLNVM_SRDATA,4,2          ## @I40E_GLNVM_SRDATA
	.comm	_I40E_GLNVM_SRDATA_RDDATA_MASK,4,2 ## @I40E_GLNVM_SRDATA_RDDATA_MASK
	.comm	_I40E_GLNVM_SRDATA_RDDATA_SHIFT,4,2 ## @I40E_GLNVM_SRDATA_RDDATA_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"NVM read error: Couldn't access Shadow RAM address: 0x%x\n"

	.no_dead_strip	_i40e_read_nvm_word_srctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_read_nvm_word_srctl
_i40e_read_nvm_word_srctl:              ; @i40e_read_nvm_word_srctl
	.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	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.le	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x0, x21
	bl	_i40e_poll_sr_srctl_done_bit
	mov	x22, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _I40E_GLNVM_SRCTL_ADDR_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40E_GLNVM_SRCTL_ADDR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w22, w19, w8
Lloh3:
	adrp	x8, _I40E_GLNVM_SRCTL_START_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_GLNVM_SRCTL_START_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	orr	w2, w0, w22
Lloh6:
	adrp	x8, _I40E_GLNVM_SRCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I40E_GLNVM_SRCTL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wr32
	mov	x0, x21
	bl	_i40e_poll_sr_srctl_done_bit
	mov	x22, x0
	cbz	x0, LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _I40E_DEBUG_NVM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_DEBUG_NVM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_i40e_debug
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x9, _I40E_DEBUG_NVM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I40E_DEBUG_NVM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_i40e_debug
Lloh19:
	adrp	x8, _I40E_ERR_PARAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I40E_ERR_PARAM@GOTPAGEOFF]
Lloh21:
	ldr	x22, [x8]
LBB0_5:
	mov	x0, x22
	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_6:
Lloh22:
	adrp	x8, _I40E_GLNVM_SRDATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _I40E_GLNVM_SRDATA@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rd32
Lloh25:
	adrp	x8, _I40E_GLNVM_SRDATA_RDDATA_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _I40E_GLNVM_SRDATA_RDDATA_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh28:
	adrp	x9, _I40E_GLNVM_SRDATA_RDDATA_SHIFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _I40E_GLNVM_SRDATA_RDDATA_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x20]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_ERR_TIMEOUT,8,3           ; @I40E_ERR_TIMEOUT
	.comm	_I40E_DEBUG_NVM,4,2             ; @I40E_DEBUG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM read error: offset %d beyond Shadow RAM limit %d\n"

	.comm	_I40E_ERR_PARAM,8,3             ; @I40E_ERR_PARAM
	.comm	_I40E_GLNVM_SRCTL_ADDR_SHIFT,4,2 ; @I40E_GLNVM_SRCTL_ADDR_SHIFT
	.comm	_I40E_GLNVM_SRCTL_START_SHIFT,4,2 ; @I40E_GLNVM_SRCTL_START_SHIFT
	.comm	_I40E_GLNVM_SRCTL,4,2           ; @I40E_GLNVM_SRCTL
	.comm	_I40E_GLNVM_SRDATA,4,2          ; @I40E_GLNVM_SRDATA
	.comm	_I40E_GLNVM_SRDATA_RDDATA_MASK,4,2 ; @I40E_GLNVM_SRDATA_RDDATA_MASK
	.comm	_I40E_GLNVM_SRDATA_RDDATA_SHIFT,4,2 ; @I40E_GLNVM_SRDATA_RDDATA_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"NVM read error: Couldn't access Shadow RAM address: 0x%x\n"

	.no_dead_strip	_i40e_read_nvm_word_srctl
.subsections_via_symbols
