	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgb_set_eeprom
_ixgb_set_eeprom:                       ## @ixgb_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	$24, %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, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	cmpl	$0, (%r14)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movl	4(%rax), %eax
	shll	$16, %eax
	orl	(%r13), %eax
	cmpl	%eax, 4(%r14)
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_ixgb_get_eeprom_len
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %r15d
	leal	(%rbx,%r15), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	subl	%r15d, %ebx
	movl	%ebx, (%r14)
LBB0_8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movl	%r15d, %eax
	sarl	%r15d
	movq	%r15, %rcx
	leal	(%rax,%rbx), %r15d
	decl	%r15d
	movl	8(%r14), %eax
	movq	%r12, %rdi
	testb	$1, %al
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movq	%rcx, %rbx
	movl	%ebx, %esi
	callq	_ixgb_read_eeprom
	movq	%rbx, %rcx
	movl	%eax, (%r12)
	movq	%r12, %rdi
	incq	%rdi
	movl	8(%r14), %eax
LBB0_12:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	sarl	%r15d
	movl	(%r14), %edx
	addl	%edx, %eax
	testb	$1, %al
	jne	LBB0_14
## %bb.13:
	movl	%r15d, %ebx
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_14:
	movq	%rdi, %rbx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ixgb_read_eeprom
	movq	%rbx, %rdi
	movl	%r15d, %ebx
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rcx
	movl	%eax, (%r12,%rcx,4)
	movl	(%r14), %edx
LBB0_15:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	testl	%ebx, %ebx
	js	LBB0_18
## %bb.16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subl	%eax, %r15d
	incl	%r15d
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	leal	(%r14,%rbx), %esi
	movq	%r13, %rdi
	callq	_ixgb_write_eeprom
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_17
LBB0_18:
	movq	_EEPROM_CHECKSUM_REG@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	jg	LBB0_20
## %bb.19:
	movq	%r13, %rdi
	callq	_ixgb_update_eeprom_checksum
LBB0_20:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EEPROM_CHECKSUM_REG,4,2        ## @EEPROM_CHECKSUM_REG
	.no_dead_strip	_ixgb_set_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgb_set_eeprom
_ixgb_set_eeprom:                       ; @ixgb_set_eeprom
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	w8, [x22]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x22, #4]
	ldp	w9, w10, [x0]
	orr	w9, w9, w10, lsl #16
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x21
	bl	_ixgb_get_eeprom_len
	ldr	w24, [x22]
	tbnz	w24, #31, LBB0_8
; %bb.3:
	ldr	w25, [x22, #8]
	add	w8, w24, w25
	cmp	w8, w0
	b.le	LBB0_5
; %bb.4:
	sub	w24, w0, w25
	str	w24, [x22]
LBB0_5:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.6:
	mov	x21, x0
	asr	w23, w25, #1
	add	w8, w25, w24
	sub	w25, w8, #1
	ldr	w8, [x22, #8]
	tbnz	w8, #0, LBB0_13
; %bb.7:
	mov	x24, x21
	b	LBB0_14
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _EFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
	mov	x0, x19
	mov	x1, x23
	bl	_ixgb_read_eeprom
	mov	x24, x21
	str	w0, [x24], #1
	ldr	w8, [x22, #8]
LBB0_14:
	asr	w25, w25, #1
	ldr	w2, [x22]
	add	w8, w2, w8
	tbnz	w8, #0, LBB0_16
; %bb.15:
	sub	w26, w25, w23
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	mov	x1, x25
	bl	_ixgb_read_eeprom
	sub	w26, w25, w23
	str	w0, [x21, w26, sxtw #2]
	ldr	w2, [x22]
LBB0_17:
	mov	x0, x24
	mov	x1, x20
	bl	_memcpy
	tbnz	w26, #31, LBB0_20
; %bb.18:
	sub	w8, w25, w23
	add	w22, w8, #1
	mov	x24, x21
	mov	x20, x23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24], #4
	mov	x0, x19
	mov	x1, x20
	bl	_ixgb_write_eeprom
	add	w20, w20, #1
	subs	x22, x22, #1
	b.ne	LBB0_19
LBB0_20:
Lloh9:
	adrp	x8, _EEPROM_CHECKSUM_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPROM_CHECKSUM_REG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w23, w8
	b.gt	LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_ixgb_update_eeprom_checksum
LBB0_22:
	mov	x0, x21
	bl	_kfree
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EEPROM_CHECKSUM_REG,4,2        ; @EEPROM_CHECKSUM_REG
	.no_dead_strip	_ixgb_set_eeprom
.subsections_via_symbols
