	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_get_eeprom
_cp_get_eeprom:                         ## @cp_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %ebx
	movl	4(%r15), %r12d
	sarl	%ebx
	movq	_CP_EEPROM_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	4(%r14), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_read_eeprom
	xorl	%ecx, %ecx
	cmpl	$33065, %eax                    ## imm = 0x8129
	sete	%cl
	leal	(%rcx,%rcx), %edx
	addl	$6, %edx
	testb	$1, (%r15)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_2:
	movl	4(%r14), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_read_eeprom
	movl	%r15d, %edx
	sarl	$8, %eax
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	incl	%ebx
	movl	$1, %r13d
LBB0_3:
	leal	-1(%r12), %eax
	cmpl	%eax, %r13d
	jge	LBB0_7
## %bb.4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movq	%rcx, %r14
	movl	%eax, %r12d
	callq	_read_eeprom
	movq	%r14, %rcx
	cltq
	movq	%rax, (%r14,%r13,8)
	sarl	$8, %eax
	cltq
	movq	%rax, 8(%r14,%r13,8)
	movl	%r12d, %eax
	addq	$2, %r13
	incl	%ebx
	cmpl	%r13d, %r12d
	jg	LBB0_5
## %bb.6:
	movl	%r15d, %edx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	cmpl	%r12d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movl	%ebx, %esi
	movq	%rcx, %rbx
	callq	_read_eeprom
	cltq
	movl	%r13d, %ecx
	movq	%rax, (%rbx,%rcx,8)
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_EEPROM_MAGIC,4,2            ## @CP_EEPROM_MAGIC
	.no_dead_strip	_cp_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_get_eeprom
_cp_get_eeprom:                         ; @cp_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	x23, x1
	bl	_netdev_priv
	mov	x20, x0
	ldp	w8, w24, [x23]
	asr	w21, w8, #1
Lloh0:
	adrp	x8, _CP_EEPROM_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_EEPROM_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x23, #8]
	bl	_spin_lock_irq
	ldr	w0, [x20, #4]
	mov	w22, #8
	mov	w1, #0
	mov	w2, #8
	bl	_read_eeprom
	mov	w8, #33065
	mov	w9, #6
	cmp	w0, w8
	csel	w22, w22, w9, eq
	ldrb	w8, [x23]
	tbnz	w8, #0, LBB0_2
; %bb.1:
	mov	w25, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_read_eeprom
                                        ; kill: def $w0 killed $w0 def $x0
	sbfx	x8, x0, #8, #24
	str	x8, [x19]
	add	w21, w21, #1
	mov	w25, #1
LBB0_3:
	sub	w23, w24, #1
	cmp	w25, w23
	b.ge	LBB0_6
; %bb.4:
	mov	w25, w25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_read_eeprom
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x9, x19, x25, lsl #3
	sbfx	x10, x0, #8, #24
	add	x25, x25, #2
	stp	x8, x10, [x9]
	add	w21, w21, #1
	cmp	w23, w25
	b.gt	LBB0_5
LBB0_6:
	cmp	w25, w24
	b.ge	LBB0_8
; %bb.7:
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_read_eeprom
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x19, w25, uxtw #3]
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_EEPROM_MAGIC,4,2            ; @CP_EEPROM_MAGIC
	.no_dead_strip	_cp_get_eeprom
.subsections_via_symbols
