	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_write_eeprom_microwire
_e1000_write_eeprom_microwire:          ## @e1000_write_eeprom_microwire
	.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, %r15
	movq	%rdx, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_EEPROM_EWEN_OPCODE_MICROWIRE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rdi), %rdx
	addq	$2, %rdx
	callq	_e1000_shift_out_ee_bits
	movslq	8(%rbx), %rdx
	addq	$-2, %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_e1000_shift_out_ee_bits
	movq	%rbx, %rdi
	callq	_e1000_standby_eeprom
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jle	LBB0_7
## %bb.1:
	movq	_EEPROM_WRITE_OPCODE_MICROWIRE@GOTPCREL(%rip), %rax
	movq	_EECD@GOTPCREL(%rip), %r13
	movq	_E1000_EECD_DO@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%rax), %rsi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1000_shift_out_ee_bits
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax), %rsi
	movslq	8(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_e1000_shift_out_ee_bits
	movq	(%r15,%r12,8), %rsi
	movl	$16, %edx
	movq	%rbx, %rdi
	callq	_e1000_shift_out_ee_bits
	movq	%rbx, %rdi
	callq	_e1000_standby_eeprom
	movl	$200, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	callq	_er32
	testl	%eax, (%r14)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$50, %edi
	callq	_udelay
	decq	%r15
	jne	LBB0_3
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_e1000_standby_eeprom
	xorl	%eax, %eax
	callq	_cond_resched
	incq	%r12
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_EEPROM_WRITE_OPCODE_MICROWIRE@GOTPCREL(%rip), %rax
	jne	LBB0_2
LBB0_7:
	movq	_EEPROM_EWDS_OPCODE_MICROWIRE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%rbx), %rdx
	addq	$2, %rdx
	movq	%rbx, %rdi
	callq	_e1000_shift_out_ee_bits
	movslq	8(%rbx), %rdx
	addq	$-2, %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_e1000_shift_out_ee_bits
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_EWEN_OPCODE_MICROWIRE,8,3 ## @EEPROM_EWEN_OPCODE_MICROWIRE
	.comm	_EEPROM_WRITE_OPCODE_MICROWIRE,8,3 ## @EEPROM_WRITE_OPCODE_MICROWIRE
	.comm	_EECD,4,2                       ## @EECD
	.comm	_E1000_EECD_DO,4,2              ## @E1000_EECD_DO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM Write did not complete\n"

	.comm	_E1000_ERR_EEPROM,4,2           ## @E1000_ERR_EEPROM
	.comm	_EEPROM_EWDS_OPCODE_MICROWIRE,8,3 ## @EEPROM_EWDS_OPCODE_MICROWIRE
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_write_eeprom_microwire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_write_eeprom_microwire
_e1000_write_eeprom_microwire:          ; @e1000_write_eeprom_microwire
	.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
Lloh0:
	adrp	x8, _EEPROM_EWEN_OPCODE_MICROWIRE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_EWEN_OPCODE_MICROWIRE@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	ldr	x8, [x0]
	add	x2, x8, #2
	bl	_e1000_shift_out_ee_bits
	ldrsw	x8, [x19, #8]
	sub	x2, x8, #2
	mov	x0, x19
	mov	x1, #0
	bl	_e1000_shift_out_ee_bits
	mov	x0, x19
	bl	_e1000_standby_eeprom
	cmp	x21, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, #0
Lloh3:
	adrp	x24, _EEPROM_WRITE_OPCODE_MICROWIRE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EEPROM_WRITE_OPCODE_MICROWIRE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _EECD@GOTPAGE
Lloh6:
	ldr	x25, [x25, _EECD@GOTPAGEOFF]
Lloh7:
	adrp	x26, _E1000_EECD_DO@GOTPAGE
Lloh8:
	ldr	x26, [x26, _E1000_EECD_DO@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x1, [x24]
	ldr	x2, [x19]
	mov	x0, x19
	bl	_e1000_shift_out_ee_bits
	add	x1, x23, x22
	ldrsw	x2, [x19, #8]
	mov	x0, x19
	bl	_e1000_shift_out_ee_bits
	ldr	x1, [x20, x23, lsl #3]
	mov	x0, x19
	mov	w2, #16
	bl	_e1000_shift_out_ee_bits
	mov	x0, x19
	bl	_e1000_standby_eeprom
	mov	w27, #200
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x25]
	bl	_er32
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	w0, #50
	bl	_udelay
	subs	x27, x27, #1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_e1000_standby_eeprom
	bl	_cond_resched
	add	x23, x23, #1
	cmp	x23, x21
	b.ne	LBB0_2
LBB0_6:
Lloh9:
	adrp	x8, _EEPROM_EWDS_OPCODE_MICROWIRE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPROM_EWDS_OPCODE_MICROWIRE@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	ldr	x8, [x19]
	add	x2, x8, #2
	mov	x0, x19
	bl	_e1000_shift_out_ee_bits
	ldrsw	x8, [x19, #8]
	sub	x2, x8, #2
	mov	x0, x19
	mov	x1, #0
	bl	_e1000_shift_out_ee_bits
Lloh12:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh17:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_EWEN_OPCODE_MICROWIRE,8,3 ; @EEPROM_EWEN_OPCODE_MICROWIRE
	.comm	_EEPROM_WRITE_OPCODE_MICROWIRE,8,3 ; @EEPROM_WRITE_OPCODE_MICROWIRE
	.comm	_EECD,4,2                       ; @EECD
	.comm	_E1000_EECD_DO,4,2              ; @E1000_EECD_DO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM Write did not complete\n"

	.comm	_E1000_ERR_EEPROM,4,2           ; @E1000_ERR_EEPROM
	.comm	_EEPROM_EWDS_OPCODE_MICROWIRE,8,3 ; @EEPROM_EWDS_OPCODE_MICROWIRE
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_write_eeprom_microwire
.subsections_via_symbols
