	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function e1000_init_eeprom_params
LCPI0_0:
	.long	64                              ## 0x40
	.long	3                               ## 0x3
	.long	6                               ## 0x6
	.long	50                              ## 0x32
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_e1000_init_eeprom_params
	.p2align	4, 0x90
_e1000_init_eeprom_params:              ## @e1000_init_eeprom_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_EECD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$12, %ecx
	ja	LBB0_11
## %bb.1:
	movl	$4156, %edx                     ## imm = 0x103C
	btl	%ecx, %edx
	jb	LBB0_4
## %bb.2:
	movl	$960, %edx                      ## imm = 0x3C0
	btl	%ecx, %edx
	jae	LBB0_6
## %bb.3:
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [64,3,6,50]
	movups	%xmm0, 16(%rbx)
	jmp	LBB0_14
LBB0_4:
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
	movl	$3, 20(%rbx)
	movl	$50, 28(%rbx)
	movq	_E1000_EECD_SIZE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
LBB0_5:
	movl	$256, 16(%rbx)                  ## imm = 0x100
LBB0_13:
	movl	$8, 24(%rbx)
	jmp	LBB0_14
LBB0_6:
	movq	_E1000_EECD_TYPE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_e1000_eeprom_spi@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
	movl	$8, 20(%rbx)
	movl	$1, 28(%rbx)
	movq	_E1000_EECD_ADDR_BITS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.8:
	movl	$32, 32(%rbx)
	movl	$16, 24(%rbx)
	jmp	LBB0_14
LBB0_9:
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rbx)
	movl	$3, 20(%rbx)
	movl	$50, 28(%rbx)
	movq	_E1000_EECD_ADDR_BITS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_5
LBB0_10:
	movl	$64, 16(%rbx)
	movl	$6, 24(%rbx)
	jmp	LBB0_14
LBB0_11:
	movq	8(%rbx), %rcx
LBB0_14:
	movq	_e1000_eeprom_spi@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_17
## %bb.15:
	movl	$64, 16(%rbx)
	movq	_EEPROM_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r14d
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_e1000_read_eeprom
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	_EEPROM_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-20(%rbp), %eax
	movq	_EEPROM_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	leal	1(%rax), %ecx
	testl	%eax, %eax
	cmovel	%eax, %ecx
	movq	_EEPROM_WORD_SIZE_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	movl	%r14d, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_17:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movl	$8, 32(%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EECD,4,2                       ## @EECD
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.comm	_e1000_eeprom_microwire,8,3     ## @e1000_eeprom_microwire
	.comm	_E1000_EECD_SIZE,4,2            ## @E1000_EECD_SIZE
	.comm	_E1000_EECD_TYPE,4,2            ## @E1000_EECD_TYPE
	.comm	_e1000_eeprom_spi,8,3           ## @e1000_eeprom_spi
	.comm	_E1000_EECD_ADDR_BITS,4,2       ## @E1000_EECD_ADDR_BITS
	.comm	_EEPROM_CFG,4,2                 ## @EEPROM_CFG
	.comm	_EEPROM_SIZE_MASK,4,2           ## @EEPROM_SIZE_MASK
	.comm	_EEPROM_SIZE_SHIFT,4,2          ## @EEPROM_SIZE_SHIFT
	.comm	_EEPROM_WORD_SIZE_SHIFT,4,2     ## @EEPROM_WORD_SIZE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function e1000_init_eeprom_params
lCPI0_0:
	.long	64                              ; 0x40
	.long	3                               ; 0x3
	.long	6                               ; 0x6
	.long	50                              ; 0x32
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_e1000_init_eeprom_params
	.p2align	2
_e1000_init_eeprom_params:              ; @e1000_init_eeprom_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _EECD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EECD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
	mov	x8, x0
Lloh3:
	adrp	x9, _E1000_SUCCESS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E1000_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	ldr	w9, [x19]
	sub	w10, w9, #128
Lloh6:
	adrp	x9, _e1000_eeprom_spi@GOTPAGE
Lloh7:
	ldr	x9, [x9, _e1000_eeprom_spi@GOTPAGEOFF]
	cmp	w10, #12
	b.hi	LBB0_17
; %bb.1:
	mov	w11, #1
	lsl	w10, w11, w10
	mov	w11, #4156
	tst	w10, w11
	b.ne	LBB0_4
; %bb.2:
	tst	w10, #0x3c0
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _e1000_eeprom_microwire@GOTPAGE
Lloh9:
	ldr	x8, [x8, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
	str	x10, [x19, #8]
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19, #16]
	b	LBB0_13
LBB0_4:
Lloh13:
	adrp	x10, _e1000_eeprom_microwire@GOTPAGE
Lloh14:
	ldr	x10, [x10, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	str	x10, [x19, #8]
	mov	w11, #3
	str	w11, [x19, #20]
	mov	w11, #50
	str	w11, [x19, #28]
Lloh16:
	adrp	x11, _E1000_EECD_SIZE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _E1000_EECD_SIZE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh18:
	adrp	x10, _E1000_EECD_TYPE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _E1000_EECD_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x10, [x9]
	str	x10, [x19, #8]
	mov	w11, #8
	str	w11, [x19, #20]
	mov	w12, #1
	str	w12, [x19, #28]
Lloh21:
	adrp	x12, _E1000_EECD_ADDR_BITS@GOTPAGE
Lloh22:
	ldr	x12, [x12, _E1000_EECD_ADDR_BITS@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_18
; %bb.7:
	mov	w8, #32
	str	w8, [x19, #32]
	mov	w8, #16
	b	LBB0_12
LBB0_8:
Lloh24:
	adrp	x10, _e1000_eeprom_microwire@GOTPAGE
Lloh25:
	ldr	x10, [x10, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	str	x10, [x19, #8]
	mov	w11, #3
	str	w11, [x19, #20]
	mov	w11, #50
	str	w11, [x19, #28]
Lloh27:
	adrp	x11, _E1000_EECD_ADDR_BITS@GOTPAGE
Lloh28:
	ldr	x11, [x11, _E1000_EECD_ADDR_BITS@GOTPAGEOFF]
LBB0_9:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #256
	str	w8, [x19, #16]
	mov	w8, #8
	b	LBB0_12
LBB0_11:
	mov	w8, #64
	str	w8, [x19, #16]
	mov	w8, #6
LBB0_12:
	str	w8, [x19, #24]
LBB0_13:
	ldr	x8, [x9]
	cmp	x10, x8
	b.ne	LBB0_16
; %bb.14:
	mov	w8, #64
	str	w8, [x19, #16]
Lloh29:
	adrp	x8, _EEPROM_CFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EEPROM_CFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w20, #1
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_eeprom
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	w8, [sp, #12]
Lloh32:
	adrp	x9, _EEPROM_SIZE_MASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _EEPROM_SIZE_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh35:
	adrp	x9, _EEPROM_SIZE_SHIFT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _EEPROM_SIZE_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #0
	csinc	w8, wzr, w8, eq
Lloh38:
	adrp	x9, _EEPROM_WORD_SIZE_SHIFT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _EEPROM_WORD_SIZE_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	add	w8, w8, w9
	lsl	w8, w20, w8
	str	w8, [x19, #16]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_17:
	ldr	x10, [x19, #8]
	b	LBB0_13
LBB0_18:
	str	w11, [x19, #32]
	str	w11, [x19, #24]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EECD,4,2                       ; @EECD
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.comm	_e1000_eeprom_microwire,8,3     ; @e1000_eeprom_microwire
	.comm	_E1000_EECD_SIZE,4,2            ; @E1000_EECD_SIZE
	.comm	_E1000_EECD_TYPE,4,2            ; @E1000_EECD_TYPE
	.comm	_e1000_eeprom_spi,8,3           ; @e1000_eeprom_spi
	.comm	_E1000_EECD_ADDR_BITS,4,2       ; @E1000_EECD_ADDR_BITS
	.comm	_EEPROM_CFG,4,2                 ; @EEPROM_CFG
	.comm	_EEPROM_SIZE_MASK,4,2           ; @EEPROM_SIZE_MASK
	.comm	_EEPROM_SIZE_SHIFT,4,2          ; @EEPROM_SIZE_SHIFT
	.comm	_EEPROM_WORD_SIZE_SHIFT,4,2     ; @EEPROM_WORD_SIZE_SHIFT
.subsections_via_symbols
