	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_write_eewr_buffer_generic ## -- Begin function ixgbe_write_eewr_buffer_generic
	.p2align	4, 0x90
_ixgbe_write_eewr_buffer_generic:       ## @ixgbe_write_eewr_buffer_generic
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	*8(%rdi)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	%r14, (%r13)
	jle	LBB0_9
## %bb.2:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_10
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_IXGBE_NVM_POLL_WRITE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IXGBE_EEPROM_RW_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r14,8), %r15
	movq	_IXGBE_EEPROM_RW_REG_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_IXGBE_EEPROM_RW_REG_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	movq	%r13, %rdi
	callq	_ixgbe_poll_eerd_eewr_done
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	movl	%ebx, %ecx
	shlq	%cl, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %r15
	orq	%rax, %r15
	orq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	movq	_IXGBE_EEWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_IXGBE_WRITE_REG
	movq	_IXGBE_NVM_POLL_WRITE@GOTPCREL(%rip), %rax
	movq	%rax, %r15
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ixgbe_poll_eerd_eewr_done
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	cmpq	%r14, -48(%rbp)                 ## 8-byte Folded Reload
	movq	%r15, %rcx
	jne	LBB0_4
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_8:
	movq	_IXGBE_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_hw_dbg
	movq	%r12, %rax
	jmp	LBB0_13
LBB0_12:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_hw_dbg
	movq	%rbx, %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_ERR_INVALID_ARGUMENT,8,3 ## @IXGBE_ERR_INVALID_ARGUMENT
	.comm	_IXGBE_ERR_EEPROM,8,3           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_RW_ADDR_SHIFT,8,3 ## @IXGBE_EEPROM_RW_ADDR_SHIFT
	.comm	_IXGBE_EEPROM_RW_REG_DATA,8,3   ## @IXGBE_EEPROM_RW_REG_DATA
	.comm	_IXGBE_EEPROM_RW_REG_START,8,3  ## @IXGBE_EEPROM_RW_REG_START
	.comm	_IXGBE_NVM_POLL_WRITE,4,2       ## @IXGBE_NVM_POLL_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Eeprom write EEWR timed out\n"

	.comm	_IXGBE_EEWR,4,2                 ## @IXGBE_EEWR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_write_eewr_buffer_generic ; -- Begin function ixgbe_write_eewr_buffer_generic
	.p2align	2
_ixgbe_write_eewr_buffer_generic:       ; @ixgbe_write_eewr_buffer_generic
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	blr	x8
	cbz	x21, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x22
	b.le	LBB0_9
; %bb.2:
	cmp	x21, #1
	b.lt	LBB0_7
; %bb.3:
Lloh0:
	adrp	x27, _IXGBE_NVM_POLL_WRITE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IXGBE_NVM_POLL_WRITE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh2:
	adrp	x8, _IXGBE_EEPROM_RW_ADDR_SHIFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IXGBE_EEPROM_RW_ADDR_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	ldr	x25, [x20]
Lloh5:
	adrp	x8, _IXGBE_EEPROM_RW_REG_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IXGBE_EEPROM_RW_REG_DATA@GOTPAGEOFF]
Lloh7:
	ldr	x26, [x8]
Lloh8:
	adrp	x8, _IXGBE_EEPROM_RW_REG_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IXGBE_EEPROM_RW_REG_START@GOTPAGEOFF]
Lloh10:
	ldr	x28, [x8]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_ixgbe_poll_eerd_eewr_done
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x22, x24
	lsl	x9, x25, x26
	orr	x8, x9, x8
	orr	x2, x8, x28
Lloh11:
	adrp	x8, _IXGBE_EEWR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_EEWR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IXGBE_WRITE_REG
	ldr	w1, [x27]
	mov	x0, x19
	bl	_ixgbe_poll_eerd_eewr_done
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	add	x22, x22, #1
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_7:
	mov	x23, #0
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IXGBE_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
Lloh16:
	ldr	x23, [x8]
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh19:
	ldr	x23, [x8]
	b	LBB0_11
LBB0_10:
	mov	x23, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_11:
	mov	x0, x23
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_ERR_INVALID_ARGUMENT,8,3 ; @IXGBE_ERR_INVALID_ARGUMENT
	.comm	_IXGBE_ERR_EEPROM,8,3           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_RW_ADDR_SHIFT,8,3 ; @IXGBE_EEPROM_RW_ADDR_SHIFT
	.comm	_IXGBE_EEPROM_RW_REG_DATA,8,3   ; @IXGBE_EEPROM_RW_REG_DATA
	.comm	_IXGBE_EEPROM_RW_REG_START,8,3  ; @IXGBE_EEPROM_RW_REG_START
	.comm	_IXGBE_NVM_POLL_WRITE,4,2       ; @IXGBE_NVM_POLL_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Eeprom write EEWR timed out\n"

	.comm	_IXGBE_EEWR,4,2                 ; @IXGBE_EEWR
.subsections_via_symbols
