	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_ethtool_seeprom
_s2io_ethtool_seeprom:                  ## @s2io_ethtool_seeprom
	.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
	pushq	%rax
	.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, %rbx
	movl	(%rsi), %r12d
	callq	_netdev_priv
	movq	%rax, %r15
	movl	4(%rbx), %ecx
	movq	(%rax), %rax
	movl	4(%rax), %edx
	shll	$16, %edx
	orl	(%rax), %edx
	cmpl	%edx, %ecx
	jne	LBB0_5
## %bb.1:
	testq	%r12, %r12
	je	LBB0_8
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13,8), %rax
	movl	%eax, %edx
	shll	$24, %edx
	testb	%al, %al
	movl	$0, %eax
	cmovel	%eax, %edx
	movq	8(%rbx), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_write_eeprom
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpl	%r13d, %r12d
	jne	LBB0_3
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DBG_PRINT
	jmp	LBB0_6
LBB0_4:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DBG_PRINT
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ETHTOOL_WRITE_EEPROM Err: Magic value is wrong, it is 0x%x should be 0x%x\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"ETHTOOL_WRITE_EEPROM Err: Cannot write into the specified offset\n"

	.no_dead_strip	_s2io_ethtool_seeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_ethtool_seeprom
_s2io_ethtool_seeprom:                  ; @s2io_ethtool_seeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w22, [x1]
	bl	_netdev_priv
	ldr	w8, [x20, #4]
	ldr	x9, [x0]
	ldp	w10, w9, [x9]
	orr	w9, w10, w9, lsl #16
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	cbz	w22, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, x23, lsl #3]
	lsl	w9, w8, #24
	tst	w8, #0xff
	csel	w2, wzr, w9, eq
	ldr	x8, [x20, #8]
	add	x1, x23, x8
	mov	x0, x21
	mov	w3, #0
	bl	_write_eeprom
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	w22, w23
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x10, _ERR_DBG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ERR_DBG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x10]
	stp	x9, x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_DBG_PRINT
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ETHTOOL_WRITE_EEPROM Err: Magic value is wrong, it is 0x%x should be 0x%x\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"ETHTOOL_WRITE_EEPROM Err: Cannot write into the specified offset\n"

	.no_dead_strip	_s2io_ethtool_seeprom
.subsections_via_symbols
