	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_eeprom
_e1000_get_eeprom:                      ## @e1000_get_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_netdev_priv
	movl	8(%r13), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rcx
	movl	4(%rcx), %edx
	shll	$16, %edx
	orl	(%rcx), %edx
	movl	%edx, (%r13)
	movl	4(%r13), %ecx
	movq	%rax, %rbx
	leal	(%rsi,%rcx), %r15d
	decl	%r15d
	movl	%ecx, %r12d
	sarl	%r12d
	sarl	%r15d
	subl	%r12d, %r15d
	leal	1(%r15), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	addq	$8, %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	callq	_pm_runtime_get_sync
	movq	(%rbx), %rax
	movq	_e1000_nvm_eeprom_spi@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.13:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_e1000_read_nvm
	movl	%eax, %r12d
	movl	(%r15), %edi
	callq	_pm_runtime_put_sync
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	testl	%r12d, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_11
## %bb.14:
	testl	%eax, %eax
	js	LBB0_15
LBB0_16:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_le16_to_cpus
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_17
## %bb.18:
	movq	%r15, %rbx
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_6:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_12
## %bb.7:
	movq	%r14, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_e1000_read_nvm
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incl	%r12d
	addq	$4, %r13
	decq	%r15
	jne	LBB0_9
LBB0_12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_pm_runtime_put_sync
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jns	LBB0_16
LBB0_15:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_10:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_pm_runtime_put_sync
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	shll	$2, %r14d
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_memset
LBB0_19:
	movl	4(%r13), %eax
	movl	8(%r13), %edx
	andl	$1, %eax
	leaq	(%rbx,%rax,4), %rsi
	movq	%r12, %rdi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_kfree
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_e1000_nvm_eeprom_spi,8,3       ## @e1000_nvm_eeprom_spi
	.no_dead_strip	_e1000_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_get_eeprom
_e1000_get_eeprom:                      ; @e1000_get_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x27, x2
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x25, x0
	ldr	x9, [x0]
	ldp	w10, w9, [x9]
	orr	w9, w10, w9, lsl #16
	str	w9, [x20]
	ldr	w9, [x20, #4]
	asr	w24, w9, #1
	add	w8, w8, w9
	sub	w8, w8, #1
	asr	w8, w8, #1
	sub	w28, w8, w24
	add	w23, w28, #1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	add	x26, x25, #8
	ldr	w0, [x22]
	bl	_pm_runtime_get_sync
	ldr	x8, [x26]
Lloh3:
	adrp	x9, _e1000_nvm_eeprom_spi@GOTPAGE
Lloh4:
	ldr	x9, [x9, _e1000_nvm_eeprom_spi@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	mov	x3, x21
	bl	_e1000_read_nvm
	mov	x25, x0
	ldr	w0, [x22]
	bl	_pm_runtime_put_sync
	cbnz	w25, LBB0_17
; %bb.4:
	tbz	w28, #31, LBB0_13
	b	LBB0_15
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_19
LBB0_8:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	tbnz	w28, #31, LBB0_12
; %bb.9:
	add	w19, w28, #1
	mov	x27, x21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x24
	mov	w2, #1
	mov	x3, x27
	bl	_e1000_read_nvm
	cbnz	w0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w24, w24, #1
	add	x27, x27, #4
	subs	x19, x19, #1
	b.ne	LBB0_10
LBB0_12:
	ldr	w0, [x22]
	bl	_pm_runtime_put_sync
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	tbnz	w28, #31, LBB0_15
LBB0_13:
	add	w19, w28, #1
	mov	x22, x21
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_le16_to_cpus
	add	x22, x22, #4
	subs	x19, x19, #1
	b.ne	LBB0_14
LBB0_15:
	mov	w25, #0
	b	LBB0_18
LBB0_16:
	mov	x25, x0
	ldr	w0, [x22]
	bl	_pm_runtime_put_sync
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
LBB0_17:
	lsl	w2, w23, #2
	mov	x0, x21
	mov	w1, #255
	bl	_memset
LBB0_18:
	ldp	w8, w2, [x20, #4]
	and	x8, x8, #0x1
	add	x1, x21, x8, lsl #2
	mov	x0, x27
	bl	_memcpy
	mov	x0, x21
	bl	_kfree
LBB0_19:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_e1000_nvm_eeprom_spi,8,3       ; @e1000_nvm_eeprom_spi
	.no_dead_strip	_e1000_get_eeprom
.subsections_via_symbols
