	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_self_test
_ice_self_test:                         ## @ice_self_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, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_netif_running
	movl	(%r15), %edx
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_13
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	___ICE_TESTING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	16(%r12), %esi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_ice_active_vfs
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	_ICE_ETH_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_LOOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	(%rbx), %edi
	movl	16(%r12), %esi
	callq	_clear_bit
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_ice_link_test
	movq	_ICE_ETH_TEST_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_15:
	movq	_ICE_ETH_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_ICE_ETH_TEST_LOOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_info                    ## TAILCALL
LBB0_3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_ice_stop
LBB0_5:
	movq	%r14, %rdi
	callq	_ice_link_test
	movq	_ICE_ETH_TEST_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	%r14, %rdi
	callq	_ice_eeprom_test
	movq	_ICE_ETH_TEST_EEPROM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	%r14, %rdi
	callq	_ice_intr_test
	movq	_ICE_ETH_TEST_INTR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	%r14, %rdi
	callq	_ice_loopback_test
	movq	_ICE_ETH_TEST_LOOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	%r14, %rdi
	callq	_ice_reg_test
	movq	_ICE_ETH_TEST_REG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r13,%rcx,4)
	movq	_ICE_ETH_TEST_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%r13,%rcx,4)
	jne	LBB0_9
## %bb.6:
	movq	_ICE_ETH_TEST_EEPROM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%r13,%rcx,4)
	jne	LBB0_9
## %bb.7:
	movq	_ICE_ETH_TEST_LOOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%r13,%rcx,4)
	jne	LBB0_9
## %bb.8:
	movq	_ICE_ETH_TEST_INTR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	(%r13,%rcx,4), %eax
	je	LBB0_10
LBB0_9:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_10:
	movl	(%rbx), %edi
	movl	16(%r12), %esi
	callq	_clear_bit
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.11:
	movq	%r14, %rdi
	callq	_ice_open
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movq	8(%r12), %rdi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"offline testing starting\n"

	.comm	___ICE_TESTING,4,2              ## @__ICE_TESTING
L_.str.1:                               ## @.str.1
	.asciz	"Please take active VFs and Netqueues offline and restart the adapter before running NIC diagnostics\n"

	.comm	_ICE_ETH_TEST_REG,8,3           ## @ICE_ETH_TEST_REG
	.comm	_ICE_ETH_TEST_EEPROM,8,3        ## @ICE_ETH_TEST_EEPROM
	.comm	_ICE_ETH_TEST_INTR,8,3          ## @ICE_ETH_TEST_INTR
	.comm	_ICE_ETH_TEST_LOOP,8,3          ## @ICE_ETH_TEST_LOOP
	.comm	_ICE_ETH_TEST_LINK,8,3          ## @ICE_ETH_TEST_LINK
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"Could not open device %s, err %d"

L_.str.3:                               ## @.str.3
	.asciz	"online testing starting\n"

L_.str.4:                               ## @.str.4
	.asciz	"testing finished\n"

	.no_dead_strip	_ice_self_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_self_test
_ice_self_test:                         ; @ice_self_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x19
	bl	_netif_running
	ldr	w8, [x21]
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_3
; %bb.1:
	mov	x23, x0
	ldr	x8, [x22]
	ldr	x22, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
Lloh5:
	adrp	x24, ___ICE_TESTING@GOTPAGE
Lloh6:
	ldr	x24, [x24, ___ICE_TESTING@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x22, #16]
	bl	_set_bit
	mov	x0, x22
	bl	_ice_active_vfs
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x0, [x22, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh9:
	adrp	x8, _ICE_ETH_TEST_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ETH_TEST_REG@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
Lloh12:
	adrp	x8, _ICE_ETH_TEST_EEPROM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICE_ETH_TEST_EEPROM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	w9, [x20, x8, lsl #2]
Lloh15:
	adrp	x8, _ICE_ETH_TEST_INTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICE_ETH_TEST_INTR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	w9, [x20, x8, lsl #2]
Lloh18:
	adrp	x8, _ICE_ETH_TEST_LOOP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICE_ETH_TEST_LOOP@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	w9, [x20, x8, lsl #2]
Lloh21:
	adrp	x8, _ICE_ETH_TEST_LINK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICE_ETH_TEST_LINK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	w9, [x20, x8, lsl #2]
Lloh24:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w0, [x24]
	ldr	w1, [x22, #16]
	bl	_clear_bit
	b	LBB0_6
LBB0_3:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	x0, x19
	bl	_ice_link_test
Lloh29:
	adrp	x8, _ICE_ETH_TEST_LINK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ICE_ETH_TEST_LINK@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	w0, [x20, x8, lsl #2]
	cbz	w0, LBB0_5
; %bb.4:
Lloh32:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_5:
Lloh35:
	adrp	x8, _ICE_ETH_TEST_REG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ICE_ETH_TEST_REG@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	wzr, [x20, x8, lsl #2]
Lloh38:
	adrp	x8, _ICE_ETH_TEST_EEPROM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ICE_ETH_TEST_EEPROM@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	wzr, [x20, x8, lsl #2]
Lloh41:
	adrp	x8, _ICE_ETH_TEST_INTR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ICE_ETH_TEST_INTR@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	wzr, [x20, x8, lsl #2]
Lloh44:
	adrp	x8, _ICE_ETH_TEST_LOOP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ICE_ETH_TEST_LOOP@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	str	wzr, [x20, x8, lsl #2]
LBB0_6:
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_netdev_info
LBB0_7:
	cbz	w23, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ice_stop
LBB0_9:
	mov	x0, x19
	bl	_ice_link_test
Lloh49:
	adrp	x28, _ICE_ETH_TEST_LINK@GOTPAGE
Lloh50:
	ldr	x28, [x28, _ICE_ETH_TEST_LINK@GOTPAGEOFF]
	ldr	x8, [x28]
	str	w0, [x20, x8, lsl #2]
	mov	x0, x19
	bl	_ice_eeprom_test
Lloh51:
	adrp	x26, _ICE_ETH_TEST_EEPROM@GOTPAGE
Lloh52:
	ldr	x26, [x26, _ICE_ETH_TEST_EEPROM@GOTPAGEOFF]
	ldr	x8, [x26]
	str	w0, [x20, x8, lsl #2]
	mov	x0, x19
	bl	_ice_intr_test
Lloh53:
	adrp	x25, _ICE_ETH_TEST_INTR@GOTPAGE
Lloh54:
	ldr	x25, [x25, _ICE_ETH_TEST_INTR@GOTPAGEOFF]
	ldr	x8, [x25]
	str	w0, [x20, x8, lsl #2]
	mov	x0, x19
	bl	_ice_loopback_test
Lloh55:
	adrp	x27, _ICE_ETH_TEST_LOOP@GOTPAGE
Lloh56:
	ldr	x27, [x27, _ICE_ETH_TEST_LOOP@GOTPAGEOFF]
	ldr	x8, [x27]
	str	w0, [x20, x8, lsl #2]
	mov	x0, x19
	bl	_ice_reg_test
Lloh57:
	adrp	x8, _ICE_ETH_TEST_REG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ICE_ETH_TEST_REG@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	str	w0, [x20, x8, lsl #2]
	ldr	x8, [x28]
	ldr	w8, [x20, x8, lsl #2]
	cbnz	w8, LBB0_13
; %bb.10:
	ldr	x8, [x26]
	ldr	w8, [x20, x8, lsl #2]
	cbnz	w8, LBB0_13
; %bb.11:
	ldr	x8, [x27]
	ldr	w8, [x20, x8, lsl #2]
	cbnz	w8, LBB0_13
; %bb.12:
	ldr	x8, [x25]
	ldr	w8, [x20, x8, lsl #2]
	orr	w8, w8, w0
	cbz	w8, LBB0_14
LBB0_13:
Lloh60:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_14:
	ldr	w0, [x24]
	ldr	w1, [x22, #16]
	bl	_clear_bit
	cbz	w23, LBB0_6
; %bb.15:
	mov	x0, x19
	bl	_ice_open
	cbz	w0, LBB0_6
; %bb.16:
	mov	x3, x0
	ldr	x0, [x22, #8]
	ldr	w2, [x22]
Lloh63:
	adrp	x1, l_.str.2@PAGE
Lloh64:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"offline testing starting\n"

	.comm	___ICE_TESTING,4,2              ; @__ICE_TESTING
l_.str.1:                               ; @.str.1
	.asciz	"Please take active VFs and Netqueues offline and restart the adapter before running NIC diagnostics\n"

	.comm	_ICE_ETH_TEST_REG,8,3           ; @ICE_ETH_TEST_REG
	.comm	_ICE_ETH_TEST_EEPROM,8,3        ; @ICE_ETH_TEST_EEPROM
	.comm	_ICE_ETH_TEST_INTR,8,3          ; @ICE_ETH_TEST_INTR
	.comm	_ICE_ETH_TEST_LOOP,8,3          ; @ICE_ETH_TEST_LOOP
	.comm	_ICE_ETH_TEST_LINK,8,3          ; @ICE_ETH_TEST_LINK
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"Could not open device %s, err %d"

l_.str.3:                               ; @.str.3
	.asciz	"online testing starting\n"

l_.str.4:                               ; @.str.4
	.asciz	"testing finished\n"

	.no_dead_strip	_ice_self_test
.subsections_via_symbols
