	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_eeprom
_e1000_set_eeprom:                      ## @e1000_set_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, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movl	8(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	8(%rax), %rax
	movl	4(%rax), %ecx
	shll	$16, %ecx
	orl	(%rax), %ecx
	cmpl	%ecx, (%r15)
	jne	LBB0_4
## %bb.5:
	movq	_FLAG_READ_ONLY_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_29:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %edi
	addl	%edi, %edi
	movl	4(%r15), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	addq	$16, %r13
	movl	%r12d, %eax
	sarl	%r12d
	addl	%ebx, %eax
	decl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_pm_runtime_get_sync
	movl	4(%r15), %eax
	testb	$1, %al
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_11
## %bb.10:
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_e1000_read_nvm
	movl	%eax, %r12d
	leaq	1(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %eax
LBB0_12:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	sarl	%esi
	addl	8(%r15), %eax
	testb	$1, %al
	je	LBB0_15
## %bb.13:
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.14:
	movl	%esi, %eax
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	leaq	(%rbx,%rax,4), %rcx
	movq	%r13, %rdi
	movq	%rsi, %r12
	movl	$1, %edx
	callq	_e1000_read_nvm
	movq	%r12, %rsi
	movl	%eax, %r12d
LBB0_15:
	testl	%r12d, %r12d
	jne	LBB0_28
## %bb.16:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%r12d, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_17
## %bb.18:
	leal	1(%rsi), %r14d
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_le16_to_cpus
	addq	$4, %rbx
	decq	%r12
	jne	LBB0_19
## %bb.20:
	movl	8(%r15), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_cpu_to_le16s
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_21
	jmp	LBB0_22
LBB0_17:
	movl	8(%r15), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
LBB0_22:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%r13, %rdi
	movl	%r12d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_e1000_write_nvm
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_28
## %bb.23:
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jle	LBB0_27
## %bb.24:
	movq	(%r13), %rax
	movq	_e1000_82583@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.25:
	movq	_e1000_82574@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.26:
	xorl	%r12d, %r12d
	movq	_e1000_82573@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
LBB0_27:
	movq	%r13, %rdi
	callq	_e1000e_update_nvm_checksum
	movl	%eax, %r12d
LBB0_28:
	movl	(%r14), %edi
	callq	_pm_runtime_put_sync
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_FLAG_READ_ONLY_NVM,4,2         ## @FLAG_READ_ONLY_NVM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NVM_CHECKSUM_REG,4,2           ## @NVM_CHECKSUM_REG
	.comm	_e1000_82583,8,3                ## @e1000_82583
	.comm	_e1000_82574,8,3                ## @e1000_82574
	.comm	_e1000_82573,8,3                ## @e1000_82573
	.no_dead_strip	_e1000_set_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_eeprom
_e1000_set_eeprom:                      ; @e1000_set_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	x22, x2
	mov	x24, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w25, [x24, #8]
	cbz	w25, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w8, [x24]
	ldr	x9, [x0, #8]
	ldp	w10, w9, [x9]
	orr	w9, w10, w9, lsl #16
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _FLAG_READ_ONLY_NVM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLAG_READ_ONLY_NVM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_7:
	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
LBB0_8:
	ldr	w8, [x21, #24]
	lsl	w0, w8, #1
	ldr	w26, [x24, #4]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.9:
	mov	x20, x0
	add	x21, x21, #16
	asr	w23, w26, #1
	add	w8, w25, w26
	sub	w27, w8, #1
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	ldr	w8, [x24, #4]
	tbnz	w8, #0, LBB0_12
; %bb.10:
	mov	w25, #0
	mov	x26, x20
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1
	mov	x3, x20
	bl	_e1000_read_nvm
	mov	x25, x0
	add	x26, x20, #1
	ldr	w8, [x24, #4]
LBB0_13:
	asr	w27, w27, #1
	ldr	w9, [x24, #8]
	add	w8, w9, w8
	tbz	w8, #0, LBB0_16
; %bb.14:
	cbnz	w25, LBB0_16
; %bb.15:
	sub	w8, w27, w23
	add	x3, x20, w8, sxtw #2
	mov	x0, x21
	mov	x1, x27
	mov	w2, #1
	bl	_e1000_read_nvm
	mov	x25, x0
LBB0_16:
	cbnz	w25, LBB0_28
; %bb.17:
	subs	w25, w27, w23
	b.mi	LBB0_22
; %bb.18:
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	add	w27, w25, #1
	mov	x28, x27
	mov	x25, x20
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_le16_to_cpus
	add	x25, x25, #4
	subs	x28, x28, #1
	b.ne	LBB0_19
; %bb.20:
	ldr	w2, [x24, #8]
	mov	x0, x26
	mov	x1, x22
	bl	_memcpy
	mov	x22, x20
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_cpu_to_le16s
	add	x22, x22, #4
	subs	x27, x27, #1
	b.ne	LBB0_21
	b	LBB0_23
LBB0_22:
	ldr	w2, [x24, #8]
	mov	x0, x26
	mov	x1, x22
	bl	_memcpy
LBB0_23:
	add	w2, w25, #1
	mov	x0, x21
	mov	x1, x23
	mov	x3, x20
	bl	_e1000_write_nvm
	mov	x25, x0
	cbnz	w0, LBB0_28
; %bb.24:
Lloh14:
	adrp	x8, _NVM_CHECKSUM_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NVM_CHECKSUM_REG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w23, w8
	b.le	LBB0_26
; %bb.25:
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _e1000_82583@GOTPAGE
Lloh18:
	ldr	x9, [x9, _e1000_82583@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _e1000_82574@GOTPAGE
Lloh21:
	ldr	x10, [x10, _e1000_82574@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
Lloh23:
	adrp	x11, _e1000_82573@GOTPAGE
Lloh24:
	ldr	x11, [x11, _e1000_82573@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_27
LBB0_26:
	mov	x0, x21
	bl	_e1000e_update_nvm_checksum
	mov	x25, x0
	b	LBB0_28
LBB0_27:
	mov	w25, #0
LBB0_28:
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_FLAG_READ_ONLY_NVM,4,2         ; @FLAG_READ_ONLY_NVM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NVM_CHECKSUM_REG,4,2           ; @NVM_CHECKSUM_REG
	.comm	_e1000_82583,8,3                ; @e1000_82583
	.comm	_e1000_82574,8,3                ; @e1000_82574
	.comm	_e1000_82573,8,3                ; @e1000_82573
	.no_dead_strip	_e1000_set_eeprom
.subsections_via_symbols
