	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rcx
	movl	4(%rcx), %edx
	shll	$16, %edx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
	movl	4(%rbx), %ecx
	leal	(%rax,%rcx), %r12d
	decl	%r12d
	movl	%ecx, %r15d
	sarl	%r15d
	sarl	%r12d
	subl	%r15d, %r12d
	leal	4(,%r12,4), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	addq	$8, %r14
	leal	1(%r12), %r13d
	movq	(%r14), %rdx
	movq	_e1000_nvm_eeprom_spi@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_6
## %bb.12:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rcx
	callq	_e1000_read_nvm
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:
	movl	%eax, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	%rbx, %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
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_19
LBB0_6:
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.8:
	movq	%r14, %rcx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_e1000_read_nvm
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incl	%r15d
	addq	$4, %r12
	decq	%r14
	jne	LBB0_10
LBB0_13:
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_14
## %bb.15:
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r14
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_le16_to_cpus
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_16
## %bb.17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rax
	jmp	LBB0_18
LBB0_7:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_14:
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_18:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	andl	$1, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movq	%rax, %rbx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r15d, %eax
LBB0_19:
	addq	$40, %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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x24, x0
	ldr	x9, [x0]
	ldp	w10, w9, [x9]
	orr	w9, w10, w9, lsl #16
	str	w9, [x20]
	ldr	w9, [x20, #4]
	asr	w23, w9, #1
	add	w8, w8, w9
	sub	w8, w8, #1
	asr	w8, w8, #1
	sub	w27, w8, w23
	add	w26, w27, #1
	lsl	w22, w26, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x25, x24, #8
	ldr	x8, [x25]
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_7
; %bb.3:
	mov	x0, x25
	mov	x1, x23
	mov	x2, x26
	mov	x3, x21
	bl	_e1000_read_nvm
	mov	x24, x0
	cbnz	w0, LBB0_16
	b	LBB0_11
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_7:
	tbnz	w27, #31, LBB0_14
; %bb.8:
	add	w28, w27, #1
	mov	x26, x21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x23
	mov	w2, #1
	mov	x3, x26
	bl	_e1000_read_nvm
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w23, w23, #1
	add	x26, x26, #4
	subs	x28, x28, #1
	b.ne	LBB0_9
LBB0_11:
	tbnz	w27, #31, LBB0_14
; %bb.12:
	add	w23, w27, #1
	mov	x22, x21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_le16_to_cpus
	add	x22, x22, #4
	subs	x23, x23, #1
	b.ne	LBB0_13
LBB0_14:
	mov	w24, #0
	b	LBB0_17
LBB0_15:
	mov	x24, x0
LBB0_16:
	mov	x0, x21
	mov	w1, #255
	mov	x2, x22
	bl	_memset
LBB0_17:
	ldp	w8, w2, [x20, #4]
	and	x8, x8, #0x1
	add	x1, x21, x8, lsl #2
	mov	x0, x19
	bl	_memcpy
	mov	x0, x21
	bl	_kfree
LBB0_18:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	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
