	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgb_get_eeprom
_ixgb_get_eeprom:                       ## @ixgb_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	$24, %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, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movl	4(%rax), %eax
	shll	$16, %eax
	orl	(%r12), %eax
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_ixgb_get_eeprom_len
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %r14d
	leal	(%rcx,%r14), %edx
	cmpl	%eax, %edx
	jle	LBB0_6
## %bb.5:
	subl	%r14d, %eax
	movl	%eax, (%r15)
	movl	%eax, %ecx
LBB0_6:
	movl	%r14d, %eax
	sarl	%r14d
	leal	(%rax,%rcx), %ebx
	decl	%ebx
	sarl	%ebx
	subl	%r14d, %ebx
	leal	4(,%rbx,4), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.8:
	incl	%ebx
	movl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r15), %esi
	movq	%r12, %rdi
	callq	_ixgb_get_eeprom_word
	movl	%eax, (%r13,%r15,4)
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	8(%rax), %eax
	andl	$1, %eax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	%r13, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %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
	.no_dead_strip	_ixgb_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgb_get_eeprom
_ixgb_get_eeprom:                       ; @ixgb_get_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	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x21, x0
	ldp	w8, w9, [x0]
	orr	w8, w8, w9, lsl #16
	str	w8, [x20, #4]
	mov	x0, x22
	bl	_ixgb_get_eeprom_len
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_9
; %bb.2:
	ldr	w9, [x20, #8]
	add	w10, w8, w9
	cmp	w10, w0
	b.le	LBB0_4
; %bb.3:
	sub	w8, w0, w9
	str	w8, [x20]
LBB0_4:
	asr	w22, w9, #1
	add	w8, w9, w8
	sub	w8, w8, #1
	asr	w8, w8, #1
	sub	w24, w8, w22
	lsl	w8, w24, #2
	add	w0, w8, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x23, x0
	tbnz	w24, #31, LBB0_8
; %bb.6:
	add	w24, w24, #1
	mov	x25, x23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_ixgb_get_eeprom_word
	str	w0, [x25], #4
	add	w22, w22, #1
	subs	x24, x24, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w8, [x20, #8]
	and	x8, x8, #0x1
	add	x1, x23, x8, lsl #2
	ldr	w2, [x20]
	mov	x0, x19
	bl	_memcpy
	mov	x0, x23
	bl	_kfree
	mov	w0, #0
	b	LBB0_12
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ixgb_get_eeprom
.subsections_via_symbols
