	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_write_nvm_srwr
_igb_write_nvm_srwr:                    ## @igb_write_nvm_srwr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rsi, %rcx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	subq	%rsi, %rax
	jle	LBB0_6
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	cmpq	%rdx, %rax
	jl	LBB0_6
## %bb.3:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rdx, %rdx
	jle	LBB0_4
## %bb.5:
	xorl	%r12d, %r12d
	movq	_E1000_SRWR@GOTPCREL(%rip), %r14
	movq	_E1000_NVM_RW_REG_DONE@GOTPCREL(%rip), %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movl	%eax, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %r12
	je	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	movq	_E1000_NVM_RW_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%r12,8), %rsi
	movq	_E1000_NVM_RW_REG_DATA@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rsi
	orq	%rax, %rsi
	movq	_E1000_NVM_RW_REG_START@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movl	(%r14), %edi
	callq	_wr32
	movl	$100000, %r13d                  ## imm = 0x186A0
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %ebx
	movl	(%r14), %edi
	callq	_rd32
	testl	%ebx, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$5, %edi
	callq	_udelay
	decq	%r13
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%eax, %ebx
	je	LBB0_7
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	callq	_hw_dbg
	movl	%ebx, %eax
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ecx, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
	.comm	_E1000_NVM_RW_ADDR_SHIFT,8,3    ## @E1000_NVM_RW_ADDR_SHIFT
	.comm	_E1000_NVM_RW_REG_DATA,8,3      ## @E1000_NVM_RW_REG_DATA
	.comm	_E1000_NVM_RW_REG_START,8,3     ## @E1000_NVM_RW_REG_START
	.comm	_E1000_SRWR,4,2                 ## @E1000_SRWR
	.comm	_E1000_NVM_RW_REG_DONE,4,2      ## @E1000_NVM_RW_REG_DONE
L_.str.1:                               ## @.str.1
	.asciz	"Shadow RAM write EEWR timed out\n"

	.no_dead_strip	_igb_write_nvm_srwr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_write_nvm_srwr
_igb_write_nvm_srwr:                    ; @igb_write_nvm_srwr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	subs	x8, x8, x1
	b.le	LBB0_13
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_13
; %bb.2:
	cmp	x8, x20
	b.lt	LBB0_13
; %bb.3:
Lloh0:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	cmp	x20, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x19, x3
	mov	x21, x1
	mov	x24, #0
Lloh3:
	adrp	x27, _E1000_NVM_RW_REG_START@GOTPAGE
Lloh4:
	ldr	x27, [x27, _E1000_NVM_RW_REG_START@GOTPAGEOFF]
Lloh5:
	adrp	x28, _E1000_SRWR@GOTPAGE
Lloh6:
	ldr	x28, [x28, _E1000_SRWR@GOTPAGEOFF]
Lloh7:
	adrp	x25, _E1000_NVM_RW_REG_DONE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _E1000_NVM_RW_REG_DONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	mov	x23, x0
	cmp	x24, x20
	b.eq	LBB0_14
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x8, x24, x21
Lloh12:
	adrp	x9, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	ldr	x9, [x19, x24, lsl #3]
Lloh15:
	adrp	x10, _E1000_NVM_RW_REG_DATA@GOTPAGE
Lloh16:
	ldr	x10, [x10, _E1000_NVM_RW_REG_DATA@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x8, x9, x8
	ldr	x9, [x27]
	orr	x1, x8, x9
	ldr	w0, [x28]
	bl	_wr32
	mov	w26, #34464
	movk	w26, #1, lsl #16
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w22, [x25]
	ldr	w0, [x28]
	bl	_rd32
	tst	w0, w22
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #5
	bl	_udelay
	subs	x26, x26, #1
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh18:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	cmp	w23, w0
	b.eq	LBB0_6
; %bb.11:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hw_dbg
LBB0_12:
	mov	x0, x23
	b	LBB0_14
LBB0_13:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
Lloh25:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
	.comm	_E1000_NVM_RW_ADDR_SHIFT,8,3    ; @E1000_NVM_RW_ADDR_SHIFT
	.comm	_E1000_NVM_RW_REG_DATA,8,3      ; @E1000_NVM_RW_REG_DATA
	.comm	_E1000_NVM_RW_REG_START,8,3     ; @E1000_NVM_RW_REG_START
	.comm	_E1000_SRWR,4,2                 ; @E1000_SRWR
	.comm	_E1000_NVM_RW_REG_DONE,4,2      ; @E1000_NVM_RW_REG_DONE
l_.str.1:                               ; @.str.1
	.asciz	"Shadow RAM write EEWR timed out\n"

	.no_dead_strip	_igb_write_nvm_srwr
.subsections_via_symbols
