	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_acquire_eeprom
_e1000_acquire_eeprom:                  ## @e1000_acquire_eeprom
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_EECD@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_er32
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	_e1000_82544@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_8
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_E1000_EECD_REQ@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_ew32
	movl	(%r15), %edi
	callq	_er32
	movq	%rax, %rbx
	movq	_E1000_EECD_GNT@GOTPCREL(%rip), %r13
	testq	%rax, (%r13)
	sete	%al
	jne	LBB0_6
## %bb.2:
	movq	_E1000_EEPROM_GRANT_ATTEMPTS@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_6
## %bb.3:
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$5, %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_er32
	movq	%rax, %rbx
	testq	%rax, (%r13)
	sete	%al
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r14), %rcx
	cmpq	(%r12), %r14
	movq	%rcx, %r14
	jl	LBB0_4
LBB0_6:
	testb	%al, %al
	je	LBB0_7
## %bb.14:
	movq	_E1000_EECD_REQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_ew32
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_EEPROM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	8(%r14), %rax
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_E1000_EECD_DI@GOTPCREL(%rip), %rax
	movq	_E1000_EECD_SK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	notq	%rcx
	andq	%rcx, %rbx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_ew32
	movq	_E1000_EECD_CS@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_ew32
	jmp	LBB0_12
LBB0_10:
	movq	_e1000_eeprom_spi@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_E1000_EECD_CS@GOTPCREL(%rip), %rax
	movq	_E1000_EECD_SK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	notq	%rcx
	andq	%rcx, %rbx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$1, %edi
	callq	_udelay
LBB0_12:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EECD,4,2                       ## @EECD
	.comm	_e1000_82544,8,3                ## @e1000_82544
	.comm	_E1000_EECD_REQ,8,3             ## @E1000_EECD_REQ
	.comm	_E1000_EECD_GNT,8,3             ## @E1000_EECD_GNT
	.comm	_E1000_EEPROM_GRANT_ATTEMPTS,8,3 ## @E1000_EEPROM_GRANT_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not acquire EEPROM grant\n"

	.comm	_E1000_ERR_EEPROM,4,2           ## @E1000_ERR_EEPROM
	.comm	_e1000_eeprom_microwire,8,3     ## @e1000_eeprom_microwire
	.comm	_E1000_EECD_DI,8,3              ## @E1000_EECD_DI
	.comm	_E1000_EECD_SK,8,3              ## @E1000_EECD_SK
	.comm	_E1000_EECD_CS,8,3              ## @E1000_EECD_CS
	.comm	_e1000_eeprom_spi,8,3           ## @e1000_eeprom_spi
	.comm	_E1000_SUCCESS,4,2              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_acquire_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_acquire_eeprom
_e1000_acquire_eeprom:                  ; @e1000_acquire_eeprom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _EECD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EECD@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _e1000_82544@GOTPAGE
Lloh3:
	ldr	x9, [x9, _e1000_82544@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.1:
Lloh5:
	adrp	x21, _E1000_EECD_REQ@GOTPAGE
Lloh6:
	ldr	x21, [x21, _E1000_EECD_REQ@GOTPAGEOFF]
	ldr	x8, [x21]
	orr	x1, x8, x0
	ldr	w0, [x20]
	bl	_ew32
	ldr	w0, [x20]
	bl	_er32
Lloh7:
	adrp	x22, _E1000_EECD_GNT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _E1000_EECD_GNT@GOTPAGEOFF]
	ldr	x8, [x22]
	ands	x9, x8, x0
	cset	w8, eq
Lloh9:
	adrp	x23, _E1000_EEPROM_GRANT_ATTEMPTS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _E1000_EEPROM_GRANT_ATTEMPTS@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x9, #0
	ccmp	x10, #1, #8, eq
	b.lt	LBB0_4
; %bb.2:
	mov	w24, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #5
	bl	_udelay
	ldr	w0, [x20]
	bl	_er32
	ldr	x8, [x22]
	ands	x9, x8, x0
	cset	w8, eq
	ldr	x10, [x23]
	cmp	x9, #0
	ccmp	x24, x10, #0, eq
	add	x24, x24, #1
	b.lt	LBB0_3
LBB0_4:
	cbz	w8, LBB0_6
; %bb.5:
	ldr	x8, [x21]
	bic	x1, x0, x8
	ldr	w0, [x20]
	bl	_ew32
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh13:
	adrp	x8, _E1000_ERR_EEPROM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E1000_ERR_EEPROM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _e1000_eeprom_microwire@GOTPAGE
Lloh17:
	ldr	x9, [x9, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _E1000_EECD_DI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E1000_EECD_DI@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _E1000_EECD_SK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _E1000_EECD_SK@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x19, x0, x8
	ldr	w0, [x20]
	mov	x1, x19
	bl	_ew32
Lloh25:
	adrp	x8, _E1000_EECD_CS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_EECD_CS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	orr	x1, x8, x19
	ldr	w0, [x20]
	bl	_ew32
	b	LBB0_10
LBB0_8:
Lloh28:
	adrp	x9, _e1000_eeprom_spi@GOTPAGE
Lloh29:
	ldr	x9, [x9, _e1000_eeprom_spi@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh31:
	adrp	x8, _E1000_EECD_CS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _E1000_EECD_CS@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
Lloh34:
	adrp	x9, _E1000_EECD_SK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _E1000_EECD_SK@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x1, x0, x8
	ldr	w0, [x20]
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #1
	bl	_udelay
LBB0_10:
Lloh37:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_EECD,4,2                       ; @EECD
	.comm	_e1000_82544,8,3                ; @e1000_82544
	.comm	_E1000_EECD_REQ,8,3             ; @E1000_EECD_REQ
	.comm	_E1000_EECD_GNT,8,3             ; @E1000_EECD_GNT
	.comm	_E1000_EEPROM_GRANT_ATTEMPTS,8,3 ; @E1000_EEPROM_GRANT_ATTEMPTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not acquire EEPROM grant\n"

	.comm	_E1000_ERR_EEPROM,4,2           ; @E1000_ERR_EEPROM
	.comm	_e1000_eeprom_microwire,8,3     ; @e1000_eeprom_microwire
	.comm	_E1000_EECD_DI,8,3              ; @E1000_EECD_DI
	.comm	_E1000_EECD_SK,8,3              ; @E1000_EECD_SK
	.comm	_E1000_EECD_CS,8,3              ; @E1000_EECD_CS
	.comm	_e1000_eeprom_spi,8,3           ; @e1000_eeprom_spi
	.comm	_E1000_SUCCESS,4,2              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_acquire_eeprom
.subsections_via_symbols
