	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_init_nvm_params_82571
_e1000_init_nvm_params_82571:           ## @e1000_init_nvm_params_82571
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_EECD@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movabsq	$4294967304, %rcx               ## imm = 0x100000008
	movq	%rcx, 4(%rbx)
	movl	12(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ecx
	jne	LBB0_4
## %bb.2:
	movl	$32, 16(%rbx)
	movl	$16, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	$8, 16(%rbx)
	movl	$8, %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_E1000_EECD_ADDR_BITS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	$8, %ecx
	movl	$32, %esi
	cmovel	%ecx, %esi
	movl	%esi, 16(%rbx)
	leal	8(,%rdx,8), %ecx
LBB0_5:
	movl	%ecx, 20(%rbx)
	movl	$-130, %ecx
	addl	(%rbx), %ecx
	cmpl	$2, %ecx
	ja	LBB0_8
## %bb.6:
	movl	%eax, %ecx
	andl	$98304, %ecx                    ## imm = 0x18000
	cmpl	$98304, %ecx                    ## imm = 0x18000
	jne	LBB0_8
## %bb.7:
	movq	_e1000_nvm_flash_hw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movl	$2048, 24(%rbx)                 ## imm = 0x800
	movq	_E1000_EECD_AUPDEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
	jmp	LBB0_9
LBB0_8:
	movq	_e1000_nvm_eeprom_spi@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movq	_E1000_EECD_SIZE_EX_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_E1000_EECD_SIZE_EX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_NVM_WORD_SIZE_BASE_SHIFT@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	cmpl	$14, %edx
	movl	$14, %edi
	cmovll	%edx, %edi
	callq	_BIT
	movl	%eax, 24(%rbx)
LBB0_9:
	movl	(%rbx), %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.10:
	movq	_e1000_get_hw_semaphore_82574@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_e1000_put_hw_semaphore_82574@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EECD,4,2                       ## @EECD
	.comm	_E1000_EECD_ADDR_BITS,4,2       ## @E1000_EECD_ADDR_BITS
	.comm	_e1000_nvm_flash_hw,4,2         ## @e1000_nvm_flash_hw
	.comm	_E1000_EECD_AUPDEN,4,2          ## @E1000_EECD_AUPDEN
	.comm	_e1000_nvm_eeprom_spi,4,2       ## @e1000_nvm_eeprom_spi
	.comm	_E1000_EECD_SIZE_EX_MASK,4,2    ## @E1000_EECD_SIZE_EX_MASK
	.comm	_E1000_EECD_SIZE_EX_SHIFT,4,2   ## @E1000_EECD_SIZE_EX_SHIFT
	.comm	_NVM_WORD_SIZE_BASE_SHIFT,4,2   ## @NVM_WORD_SIZE_BASE_SHIFT
	.comm	_e1000_get_hw_semaphore_82574,4,2 ## @e1000_get_hw_semaphore_82574
	.comm	_e1000_put_hw_semaphore_82574,4,2 ## @e1000_put_hw_semaphore_82574
	.no_dead_strip	_e1000_init_nvm_params_82571
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function e1000_init_nvm_params_82571
lCPI0_0:
	.long	8                               ; 0x8
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_e1000_init_nvm_params_82571:           ; @e1000_init_nvm_params_82571
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x20, _EECD@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EECD@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #32
	str	w8, [x19, #16]
	mov	w8, #16
	b	LBB0_5
LBB0_3:
	mov	w8, #8
	str	w8, [x19, #16]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _E1000_EECD_ADDR_BITS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E1000_EECD_ADDR_BITS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #32
	mov	w9, #8
	csel	w8, w9, w8, eq
	str	w8, [x19, #16]
	mov	w8, #16
	csel	w8, w9, w8, eq
LBB0_5:
	str	w8, [x19, #20]
	ldr	w8, [x19]
	sub	w8, w8, #130
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.6:
	and	w8, w0, #0x18000
	cmp	w8, #24, lsl #12                ; =98304
	b.ne	LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _e1000_nvm_flash_hw@GOTPAGE
Lloh8:
	ldr	x8, [x8, _e1000_nvm_flash_hw@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	w8, #2048
	str	w8, [x19, #24]
Lloh10:
	adrp	x8, _E1000_EECD_AUPDEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_EECD_AUPDEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x20]
	bl	_ew32
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _e1000_nvm_eeprom_spi@GOTPAGE
Lloh14:
	ldr	x8, [x8, _e1000_nvm_eeprom_spi@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #36]
Lloh16:
	adrp	x8, _E1000_EECD_SIZE_EX_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_EECD_SIZE_EX_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh19:
	adrp	x9, _E1000_EECD_SIZE_EX_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _E1000_EECD_SIZE_EX_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _NVM_WORD_SIZE_BASE_SHIFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _NVM_WORD_SIZE_BASE_SHIFT@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh24:
	ldr	w9, [x10]
	add	w8, w8, w9
	mov	w9, #14
	cmp	w8, #14
	csel	w0, w8, w9, lt
	bl	_BIT
	str	w0, [x19, #24]
LBB0_9:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.10:
Lloh25:
	adrp	x8, _e1000_get_hw_semaphore_82574@GOTPAGE
Lloh26:
	ldr	x8, [x8, _e1000_get_hw_semaphore_82574@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _e1000_put_hw_semaphore_82574@GOTPAGE
Lloh29:
	ldr	x9, [x9, _e1000_put_hw_semaphore_82574@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #28]
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EECD,4,2                       ; @EECD
	.comm	_E1000_EECD_ADDR_BITS,4,2       ; @E1000_EECD_ADDR_BITS
	.comm	_e1000_nvm_flash_hw,4,2         ; @e1000_nvm_flash_hw
	.comm	_E1000_EECD_AUPDEN,4,2          ; @E1000_EECD_AUPDEN
	.comm	_e1000_nvm_eeprom_spi,4,2       ; @e1000_nvm_eeprom_spi
	.comm	_E1000_EECD_SIZE_EX_MASK,4,2    ; @E1000_EECD_SIZE_EX_MASK
	.comm	_E1000_EECD_SIZE_EX_SHIFT,4,2   ; @E1000_EECD_SIZE_EX_SHIFT
	.comm	_NVM_WORD_SIZE_BASE_SHIFT,4,2   ; @NVM_WORD_SIZE_BASE_SHIFT
	.comm	_e1000_get_hw_semaphore_82574,4,2 ; @e1000_get_hw_semaphore_82574
	.comm	_e1000_put_hw_semaphore_82574,4,2 ; @e1000_put_hw_semaphore_82574
	.no_dead_strip	_e1000_init_nvm_params_82571
.subsections_via_symbols
