	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_get_eeprom
_netdev_get_eeprom:                     ## @netdev_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, %r12
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	_eeprom_data@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	leal	(%rcx,%rdx), %esi
	leal	(%rcx,%rdx), %edi
	incl	%edi
	shrl	$31, %edi
	leal	(%rdi,%rsi), %r13d
	incl	%r13d
	sarl	%r13d
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	cmpl	%r13d, %esi
	jge	LBB0_4
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movslq	%esi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_eeprom_read
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r13d
	jne	LBB0_2
## %bb.3:
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movq	_EEPROM_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eeprom_data,8,3                ## @eeprom_data
	.comm	_EEPROM_MAGIC,4,2               ## @EEPROM_MAGIC
	.no_dead_strip	_netdev_get_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdev_get_eeprom
_netdev_get_eeprom:                     ; @netdev_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
	bl	_netdev_priv
Lloh0:
	adrp	x24, _eeprom_data@GOTPAGE
Lloh1:
	ldr	x24, [x24, _eeprom_data@GOTPAGEOFF]
	ldr	x23, [x24]
	ldp	w8, w2, [x20]
	add	w9, w8, #1
	add	w9, w9, w2
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w25, w9, #1
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w21, w9, #1
	cmp	w21, w25
	b.ge	LBB0_4
; %bb.1:
	ldr	x22, [x0]
	sbfiz	x26, x21, #2, #32
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_eeprom_read
	ldr	x8, [x24]
	str	w0, [x8, x26]
	add	x26, x26, #4
	add	w21, w21, #1
	cmp	w25, w21
	b.ne	LBB0_2
; %bb.3:
	ldp	w8, w2, [x20]
LBB0_4:
Lloh2:
	adrp	x9, _EEPROM_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EEPROM_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x20, #8]
	add	x1, x23, w8, sxtw #2
	mov	x0, x19
	bl	_memcpy
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_eeprom_data,8,3                ; @eeprom_data
	.comm	_EEPROM_MAGIC,4,2               ; @EEPROM_MAGIC
	.no_dead_strip	_netdev_get_eeprom
.subsections_via_symbols
