	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rsi, %rcx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	subq	%rsi, %rax
	jle	LBB0_11
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.2:
	cmpq	%rdx, %rax
	jl	LBB0_11
## %bb.3:
	testq	%rdx, %rdx
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	movq	_E1000_SRWR@GOTPCREL(%rip), %r13
	movq	_E1000_NVM_RW_REG_DONE@GOTPCREL(%rip), %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, %rbx
	je	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, %rax
	movq	_E1000_NVM_RW_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rbx,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	(%r13), %edi
	callq	_wr32
	movl	$100000, %r15d                  ## imm = 0x186A0
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %r12d
	movl	(%r13), %edi
	callq	_rd32
	testl	%r12d, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	$5, %edi
	callq	_udelay
	decq	%r15
	jne	LBB0_6
	jmp	LBB0_8
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.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_9
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_9
; %bb.2:
	cmp	x8, x20
	b.lt	LBB0_9
; %bb.3:
	cmp	x20, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x19, x3
	mov	x21, x1
	mov	x22, #0
Lloh0:
	adrp	x24, _E1000_NVM_RW_REG_DATA@GOTPAGE
Lloh1:
	ldr	x24, [x24, _E1000_NVM_RW_REG_DATA@GOTPAGEOFF]
Lloh2:
	adrp	x25, _E1000_NVM_RW_REG_START@GOTPAGE
Lloh3:
	ldr	x25, [x25, _E1000_NVM_RW_REG_START@GOTPAGEOFF]
Lloh4:
	adrp	x26, _E1000_SRWR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _E1000_SRWR@GOTPAGEOFF]
Lloh6:
	adrp	x27, _E1000_NVM_RW_REG_DONE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _E1000_NVM_RW_REG_DONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, x20
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x8, x22, x21
Lloh8:
	adrp	x9, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _E1000_NVM_RW_ADDR_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	ldr	x9, [x19, x22, lsl #3]
	ldr	x10, [x24]
	lsl	x9, x9, x10
	orr	x8, x9, x8
	ldr	x9, [x25]
	orr	x1, x8, x9
	ldr	w0, [x26]
	bl	_wr32
	mov	w28, #34464
	movk	w28, #1, lsl #16
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x27]
	ldr	w0, [x26]
	bl	_rd32
	tst	w0, w23
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w0, #5
	bl	_udelay
	subs	x28, x28, #1
	b.ne	LBB0_7
	b	LBB0_5
LBB0_9:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
Lloh13:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_igb_write_nvm_srwr
.subsections_via_symbols
