	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_read_nvm_spt
_e1000_read_nvm_spt:                    ## @e1000_read_nvm_spt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -88(%rbp)
	movq	$0, -56(%rbp)
	movq	8(%rdi), %rax
	subq	%rsi, %rax
	jle	LBB0_3
## %bb.1:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	cmpq	%r13, %rax
	jl	LBB0_3
## %bb.4:
	movq	%rcx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	*32(%rdi)
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000_valid_nvm_bank_detect_ich8lan
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_e_dbg
	movq	$0, -88(%rbp)
	testq	%r13, %r13
	jg	LBB0_11
	jmp	LBB0_35
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_e_dbg
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_39
LBB0_38:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_e_dbg
LBB0_39:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, -88(%rbp)
	je	LBB0_7
## %bb.8:
	movq	16(%rbx), %rax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	jle	LBB0_35
LBB0_11:
	addq	%r15, -48(%rbp)                 ## 8-byte Folded Spill
	movq	%r15, %rax
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	shlq	$4, %r15
	leaq	-1(%r13), %rsi
	xorl	%r14d, %r14d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax,%r15)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rax,%r15), %rax
	movq	%r14, %rcx
LBB0_34:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, (%r12,%rcx,8)
	addq	$2, %r14
	addq	$32, %r15
	cmpq	%r13, %r14
	jge	LBB0_35
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %rsi
	je	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rax
	cmpq	$0, 8(%rax,%r15)
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 24(%rax,%r15)
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	addq	%r14, %rcx
	shlq	$4, %rcx
	addq	%rax, %rcx
	addq	$8, %rcx
	movq	(%rax,%r15), %rdx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rsi
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rdx
	callq	_e1000_read_flash_dword_ich8lan
	testl	%eax, %eax
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rax
	leaq	(%rax,%r15), %rcx
	addq	$8, %rcx
	cmpq	$0, 8(%rax,%r15)
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rax,%r15), %rdx
	jmp	LBB0_30
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %rbx
	movq	%rbx, %r12
	shrq	$63, %r12
	addq	%rbx, %r12
	andq	$-2, %r12
	movq	%r12, %rsi
	leaq	-56(%rbp), %rdx
	callq	_e1000_read_flash_dword_ich8lan
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax
	subq	%r12, %rbx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	shrl	$16, %eax
	jmp	LBB0_19
LBB0_29:                                ##   in Loop: Header=BB0_12 Depth=1
	movzwl	-56(%rbp), %edx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rdx, (%r12,%r14,8)
	cmpq	$0, (%rcx)
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rax,%r15), %rax
	jmp	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_12 Depth=1
	movzwl	-54(%rbp), %eax
LBB0_33:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rcx
	orq	$1, %rcx
	jmp	LBB0_34
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movzwl	%ax, %eax
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rcx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_35:
	xorl	%r13d, %r13d
LBB0_36:
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%r13d, %r13d
	jne	LBB0_38
	jmp	LBB0_39
LBB0_25:
	movl	%eax, %r13d
	jmp	LBB0_36
LBB0_16:
	movl	%eax, %r13d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
L_.str.1:                               ## @.str.1
	.asciz	"Could not detect valid bank, assuming bank 0\n"

L_.str.2:                               ## @.str.2
	.asciz	"NVM read error: %d\n"

	.no_dead_strip	_e1000_read_nvm_spt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_read_nvm_spt
_e1000_read_nvm_spt:                    ; @e1000_read_nvm_spt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	xzr, xzr, [sp, #16]
	ldr	x8, [x0, #8]
	subs	x8, x8, x1
	b.le	LBB0_5
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_5
; %bb.2:
	cmp	x8, x21
	b.lt	LBB0_5
; %bb.3:
	mov	x20, x3
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	blr	x8
	add	x1, sp, #24
	mov	x0, x19
	bl	_e1000_valid_nvm_bank_detect_ich8lan
	cbz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	mov	x8, #0
	str	xzr, [sp, #24]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh4:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	cbz	w23, LBB0_7
LBB0_6:
	str	x23, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
LBB0_10:
	subs	x24, x21, #1
	b.lt	LBB0_30
; %bb.11:
	mov	x25, #0
	add	x26, x8, x22
	lsl	x27, x22, #4
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrh	w8, [sp, #18]
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	orr	x9, x25, #0x1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	str	x8, [x20, x9, lsl #3]
	add	x25, x25, #2
	add	x27, x27, #32
	cmp	x25, x21
	b.ge	LBB0_30
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x24, x25
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19]
	add	x9, x8, x27
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x8, x27]
	b	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19]
	add	x9, x8, x27
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x25, x22
	add	x9, x8, x9, lsl #4
	add	x9, x9, #8
	ldr	x10, [x8, x27]
	b	LBB0_28
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x1, x26, x25
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1000_read_flash_dword_ich8lan
	cbnz	w0, LBB0_31
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19]
	add	x9, x8, x27
	ldr	x10, [x9, #8]!
	cbz	x10, LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x10, [x8, x27]
	b	LBB0_28
LBB0_24:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x26, x25
	and	x9, x8, #0x1
	cmp	x8, #0
	cneg	x28, x9, lt
	sub	x1, x8, x28
	add	x2, sp, #16
	mov	x0, x19
	bl	_e1000_read_flash_dword_ich8lan
	cbnz	w0, LBB0_31
; %bb.25:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #16]
	ubfx	x9, x8, #16, #16
	and	x8, x8, #0xffff
	cmp	x28, #0
	csel	x8, x9, x8, ne
LBB0_26:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x9, x25
	b	LBB0_14
LBB0_27:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrh	w10, [sp, #16]
LBB0_28:                                ;   in Loop: Header=BB0_15 Depth=1
	str	x10, [x20, x25, lsl #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_12
; %bb.29:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, x27
	ldr	x8, [x8, #16]
	b	LBB0_13
LBB0_30:
	mov	w23, #0
	b	LBB0_32
LBB0_31:
	mov	x23, x0
LBB0_32:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	cbnz	w23, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvm parameter(s) out of bounds\n"

	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
l_.str.1:                               ; @.str.1
	.asciz	"Could not detect valid bank, assuming bank 0\n"

l_.str.2:                               ; @.str.2
	.asciz	"NVM read error: %d\n"

	.no_dead_strip	_e1000_read_nvm_spt
.subsections_via_symbols
