	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_EECD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movl	%eax, %r15d
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$12, %eax
	ja	LBB0_11
## %bb.1:
	movl	$4156, %ecx                     ## imm = 0x103C
	btl	%eax, %ecx
	jb	LBB0_4
## %bb.2:
	movl	$960, %ecx                      ## imm = 0x3C0
	btl	%eax, %ecx
	jae	LBB0_6
## %bb.3:
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 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), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$3, 20(%rbx)
	movl	$50, 28(%rbx)
	movq	_E1000_EECD_SIZE@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	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), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_e1000_eeprom_spi@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$8, 20(%rbx)
	movl	$1, 28(%rbx)
	movq	_E1000_EECD_ADDR_BITS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_12
## %bb.8:
	movl	$32, 32(%rbx)
	movl	$16, 24(%rbx)
	jmp	LBB0_14
LBB0_9:
	movq	_e1000_eeprom_microwire@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$3, 20(%rbx)
	movl	$50, 28(%rbx)
	movq	_E1000_EECD_ADDR_BITS@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	jne	LBB0_5
LBB0_10:
	movl	$64, 16(%rbx)
	movl	$6, 24(%rbx)
	jmp	LBB0_14
LBB0_11:
	movq	8(%rbx), %rax
LBB0_14:
	movq	_e1000_eeprom_spi@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	movl	$64, 16(%rbx)
	movq	_EEPROM_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r15d
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_e1000_read_eeprom
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_EEPROM_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-28(%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, %r15d
	movl	%r15d, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_17:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e1000_init_eeprom_params"

	.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, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EECD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EECD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_er32
	mov	x21, x0
Lloh3:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	ldr	w8, [x19]
	sub	w9, w8, #128
Lloh8:
	adrp	x8, _e1000_eeprom_spi@GOTPAGE
Lloh9:
	ldr	x8, [x8, _e1000_eeprom_spi@GOTPAGEOFF]
	cmp	w9, #12
	b.hi	LBB0_12
; %bb.1:
	mov	w10, #1
	lsl	w9, w10, w9
	mov	w10, #4156
	tst	w9, w10
	b.ne	LBB0_4
; %bb.2:
	tst	w9, #0x3c0
	b.eq	LBB0_5
; %bb.3:
Lloh10:
	adrp	x9, _e1000_eeprom_microwire@GOTPAGE
Lloh11:
	ldr	x9, [x9, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x19, #8]
Lloh13:
	adrp	x10, lCPI0_0@PAGE
Lloh14:
	ldr	q0, [x10, lCPI0_0@PAGEOFF]
	str	q0, [x19, #16]
	b	LBB0_15
LBB0_4:
Lloh15:
	adrp	x9, _e1000_eeprom_microwire@GOTPAGE
Lloh16:
	ldr	x9, [x9, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	mov	w10, #3
	str	w10, [x19, #20]
	mov	w10, #50
	str	w10, [x19, #28]
Lloh18:
	adrp	x10, _E1000_EECD_SIZE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _E1000_EECD_SIZE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh20:
	adrp	x9, _E1000_EECD_TYPE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _E1000_EECD_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_8
; %bb.6:
	ldr	x9, [x8]
	str	x9, [x19, #8]
	mov	w10, #8
	str	w10, [x19, #20]
	mov	w11, #1
	str	w11, [x19, #28]
Lloh23:
	adrp	x11, _E1000_EECD_ADDR_BITS@GOTPAGE
Lloh24:
	ldr	x11, [x11, _E1000_EECD_ADDR_BITS@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w11, w21
	b.eq	LBB0_13
; %bb.7:
	mov	w10, #32
	str	w10, [x19, #32]
	mov	w10, #16
	b	LBB0_14
LBB0_8:
Lloh26:
	adrp	x9, _e1000_eeprom_microwire@GOTPAGE
Lloh27:
	ldr	x9, [x9, _e1000_eeprom_microwire@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	mov	w10, #3
	str	w10, [x19, #20]
	mov	w10, #50
	str	w10, [x19, #28]
Lloh29:
	adrp	x10, _E1000_EECD_ADDR_BITS@GOTPAGE
Lloh30:
	ldr	x10, [x10, _E1000_EECD_ADDR_BITS@GOTPAGEOFF]
LBB0_9:
	ldr	w10, [x10]
	tst	w10, w21
	b.eq	LBB0_11
; %bb.10:
	mov	w10, #256
	str	w10, [x19, #16]
	mov	w10, #8
	b	LBB0_14
LBB0_11:
	mov	w10, #64
	str	w10, [x19, #16]
	mov	w10, #6
	b	LBB0_14
LBB0_12:
	ldr	x9, [x19, #8]
	b	LBB0_15
LBB0_13:
	str	w10, [x19, #32]
LBB0_14:
	str	w10, [x19, #24]
LBB0_15:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	mov	w8, #64
	str	w8, [x19, #16]
Lloh31:
	adrp	x8, _EEPROM_CFG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EEPROM_CFG@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	w21, #1
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_eeprom
	mov	x20, x0
	cbnz	x0, LBB0_18
; %bb.17:
	ldr	w8, [sp, #12]
Lloh34:
	adrp	x9, _EEPROM_SIZE_MASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EEPROM_SIZE_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh37:
	adrp	x9, _EEPROM_SIZE_SHIFT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _EEPROM_SIZE_SHIFT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #0
	csinc	w8, wzr, w8, eq
Lloh40:
	adrp	x9, _EEPROM_WORD_SIZE_SHIFT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _EEPROM_WORD_SIZE_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	add	w8, w8, w9
	lsl	w8, w21, w8
	str	w8, [x19, #16]
LBB0_18:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EECD,4,2                       ; @EECD
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e1000_init_eeprom_params"

	.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
