	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_ethtool_test
_s2io_ethtool_test:                     ## @s2io_ethtool_test
	.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, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_netif_running
	movl	%eax, %r12d
	movl	(%r14), %eax
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movl	(%r13), %edi
	callq	_s2io_close
LBB0_3:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_s2io_register_test
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	movq	%r13, %rdi
	callq	_s2io_reset
	leaq	12(%r15), %rsi
	movq	%r13, %rdi
	callq	_s2io_rldram_test
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	movq	%r13, %rdi
	callq	_s2io_reset
	leaq	4(%r15), %rsi
	movq	%r13, %rdi
	callq	_s2io_eeprom_test
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_9:
	leaq	16(%r15), %rsi
	movq	%r13, %rdi
	callq	_s2io_bist_test
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_11:
	movl	$2, %ebx
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.12:
	movl	(%r13), %edi
	callq	_s2io_open
	jmp	LBB0_18
LBB0_13:
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.14:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DBG_PRINT
	pcmpeqd	%xmm0, %xmm0
	movdqu	%xmm0, (%r15)
	movl	$-1, 16(%r15)
LBB0_15:
	leaq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_s2io_link_test
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_17:
	movq	$0, (%r15)
	movl	$0, 12(%r15)
	movl	$4, %ebx
LBB0_18:
	movl	$0, (%r15,%rbx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: is not up, cannot run test\n"

	.no_dead_strip	_s2io_ethtool_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_ethtool_test
_s2io_ethtool_test:                     ; @s2io_ethtool_test
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0]
	bl	_netif_running
	mov	x22, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_s2io_close
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_s2io_register_test
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	bl	_s2io_reset
	add	x1, x19, #12
	mov	x0, x21
	bl	_s2io_rldram_test
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_7:
	mov	x0, x21
	bl	_s2io_reset
	add	x1, x19, #4
	mov	x0, x21
	bl	_s2io_eeprom_test
	cbz	x0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_9:
	add	x1, x19, #16
	mov	x0, x21
	bl	_s2io_bist_test
	cbz	x0, LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_11:
	cbz	w22, LBB0_13
; %bb.12:
	ldr	w0, [x21]
	bl	_s2io_open
LBB0_13:
	mov	w8, #2
	b	LBB0_19
LBB0_14:
	cbnz	w22, LBB0_16
; %bb.15:
Lloh15:
	adrp	x8, _ERR_DBG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERR_DBG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w2, [x23]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG_PRINT
	mov	x8, #-1
	stp	x8, x8, [x19]
	str	w8, [x19, #16]
LBB0_16:
	add	x1, x19, #8
	mov	x0, x21
	bl	_s2io_link_test
	cbz	x0, LBB0_18
; %bb.17:
Lloh20:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_18:
	str	xzr, [x19]
	mov	w8, #4
	str	wzr, [x19, #12]
LBB0_19:
	str	wzr, [x19, x8, lsl #2]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: is not up, cannot run test\n"

	.no_dead_strip	_s2io_ethtool_test
.subsections_via_symbols
