	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_ethtool_geeprom
_s2io_ethtool_geeprom:                  ## @s2io_ethtool_geeprom
	.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, %rbx
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	shll	$16, %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	8(%r14), %rsi
	movq	16(%r14), %rax
	leaq	(%rax,%rsi), %rdx
	movq	_XENA_EEPROM_SPACE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_2
## %bb.1:
	subq	%rsi, %rcx
	movq	%rcx, 16(%r14)
	movq	%rcx, %rax
LBB0_2:
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jle	LBB0_8
## %bb.3:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_read_eeprom
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	$4, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	callq	_INV
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	cmpq	16(%r14), %r13
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r14), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	leaq	-44(%rbp), %rdx
	callq	_read_eeprom
	addq	$16, %rbx
	addq	$4, %r13
	testq	%rax, %rax
	je	LBB0_5
LBB0_7:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DBG_PRINT
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XENA_EEPROM_SPACE,8,3          ## @XENA_EEPROM_SPACE
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read of EEPROM failed\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_s2io_ethtool_geeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_ethtool_geeprom
_s2io_ethtool_geeprom:                  ; @s2io_ethtool_geeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x0]
	ldp	w9, w8, [x8]
	orr	w8, w9, w8, lsl #16
	str	w8, [x20]
	ldp	x1, x8, [x20, #8]
Lloh0:
	adrp	x9, _XENA_EEPROM_SPACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XENA_EEPROM_SPACE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x10, x8, x1
	cmp	x10, x9
	b.le	LBB0_2
; %bb.1:
	sub	x8, x9, x1
	str	x8, [x20, #16]
LBB0_2:
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.3:
	add	x2, sp, #4
	mov	x0, x21
	bl	_read_eeprom
	cbnz	x0, LBB0_7
; %bb.4:
	mov	w22, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #4]
	bl	_INV
	str	x0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #16]
	cmp	x22, x8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	add	x1, x22, x8
	add	x2, sp, #4
	mov	x0, x21
	bl	_read_eeprom
	add	x19, x19, #16
	add	x22, x22, #4
	cbz	x0, LBB0_5
LBB0_7:
Lloh3:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG_PRINT
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XENA_EEPROM_SPACE,8,3          ; @XENA_EEPROM_SPACE
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read of EEPROM failed\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_s2io_ethtool_geeprom
.subsections_via_symbols
