	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_diag_test
_i40e_diag_test:                        ## @i40e_diag_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, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_netif_running
	movq	(%rbx), %rcx
	movq	(%rcx), %r14
	movl	(%r15), %edx
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	movq	_drv@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	cmpl	(%rcx), %edx
	jne	LBB0_17
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_netif_info
	movq	___I40E_TESTING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_i40e_active_vfs
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_i40e_active_vmdqs
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movq	_I40E_ETH_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_I40E_ETH_TEST_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_I40E_ETH_TEST_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r13,%rax,4)
	movq	_I40E_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	(%r14), %esi
	callq	_clear_bit
	movq	_drv@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_netif_info
	movq	_I40E_ETH_TEST_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_i40e_link_test
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_19:
	movq	_I40E_ETH_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_I40E_ETH_TEST_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
	movq	_I40E_ETH_TEST_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r13,%rax,4)
LBB0_20:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_info                     ## TAILCALL
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_i40e_close
	jmp	LBB0_7
LBB0_6:
	movq	___I40E_PF_RESET_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_i40e_do_reset
LBB0_7:
	movq	_drv@GOTPCREL(%rip), %rbx
	movq	_I40E_ETH_TEST_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_i40e_link_test
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_9:
	movq	_I40E_ETH_TEST_EEPROM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_i40e_eeprom_test
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_11:
	movq	_I40E_ETH_TEST_INTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_i40e_intr_test
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_13:
	movq	_I40E_ETH_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	callq	_i40e_reg_test
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_15:
	movq	___I40E_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_clear_bit
	movq	___I40E_PF_RESET_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_i40e_do_reset
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.16:
	movq	%r12, %rdi
	callq	_i40e_open
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"offline testing starting\n"

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

	.comm	_I40E_ETH_TEST_REG,8,3          ## @I40E_ETH_TEST_REG
	.comm	_I40E_ETH_TEST_EEPROM,8,3       ## @I40E_ETH_TEST_EEPROM
	.comm	_I40E_ETH_TEST_INTR,8,3         ## @I40E_ETH_TEST_INTR
	.comm	_I40E_ETH_TEST_LINK,8,3         ## @I40E_ETH_TEST_LINK
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	___I40E_PF_RESET_REQUESTED,4,2  ## @__I40E_PF_RESET_REQUESTED
L_.str.2:                               ## @.str.2
	.asciz	"online testing starting\n"

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

	.no_dead_strip	_i40e_diag_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_diag_test
_i40e_diag_test:                        ; @i40e_diag_test
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	bl	_netif_running
	ldr	x8, [x20]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _drv@GOTPAGE
Lloh4:
	ldr	x24, [x24, _drv@GOTPAGEOFF]
	ldr	w1, [x24]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x23, x0
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
Lloh7:
	adrp	x25, ___I40E_TESTING@GOTPAGE
Lloh8:
	ldr	x25, [x25, ___I40E_TESTING@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x20]
	bl	_set_bit
	mov	x0, x20
	bl	_i40e_active_vfs
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_i40e_active_vmdqs
	cbz	x0, LBB0_8
LBB0_3:
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh11:
	adrp	x8, _I40E_ETH_TEST_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_ETH_TEST_REG@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x22, x8, lsl #2]
Lloh14:
	adrp	x8, _I40E_ETH_TEST_EEPROM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I40E_ETH_TEST_EEPROM@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	w9, [x22, x8, lsl #2]
Lloh17:
	adrp	x8, _I40E_ETH_TEST_INTR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _I40E_ETH_TEST_INTR@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	w9, [x22, x8, lsl #2]
Lloh20:
	adrp	x8, _I40E_ETH_TEST_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _I40E_ETH_TEST_LINK@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	w9, [x22, x8, lsl #2]
Lloh23:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w0, [x25]
	ldr	w1, [x20]
	bl	_clear_bit
	b	LBB0_7
LBB0_4:
Lloh26:
	adrp	x3, l_.str.2@PAGE
Lloh27:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_netif_info
Lloh28:
	adrp	x8, _I40E_ETH_TEST_LINK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _I40E_ETH_TEST_LINK@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_i40e_link_test
	cbz	x0, LBB0_6
; %bb.5:
Lloh31:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_6:
Lloh34:
	adrp	x8, _I40E_ETH_TEST_REG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I40E_ETH_TEST_REG@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	wzr, [x22, x8, lsl #2]
Lloh37:
	adrp	x8, _I40E_ETH_TEST_EEPROM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _I40E_ETH_TEST_EEPROM@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	wzr, [x22, x8, lsl #2]
Lloh40:
	adrp	x8, _I40E_ETH_TEST_INTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _I40E_ETH_TEST_INTR@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	wzr, [x22, x8, lsl #2]
LBB0_7:
	ldr	w1, [x24]
Lloh43:
	adrp	x3, l_.str.3@PAGE
Lloh44:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	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
	b	_netif_info
LBB0_8:
Lloh45:
	adrp	x26, ___I40E_PF_RESET_REQUESTED@GOTPAGE
Lloh46:
	ldr	x26, [x26, ___I40E_PF_RESET_REQUESTED@GOTPAGEOFF]
	cbz	w23, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_i40e_close
	b	LBB0_11
LBB0_10:
	ldr	w0, [x26]
	bl	_BIT
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_i40e_do_reset
LBB0_11:
Lloh47:
	adrp	x8, _I40E_ETH_TEST_LINK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _I40E_ETH_TEST_LINK@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_i40e_link_test
	cbz	x0, LBB0_13
; %bb.12:
Lloh50:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_13:
Lloh53:
	adrp	x8, _I40E_ETH_TEST_EEPROM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _I40E_ETH_TEST_EEPROM@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_i40e_eeprom_test
	cbz	x0, LBB0_15
; %bb.14:
Lloh56:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_15:
Lloh59:
	adrp	x8, _I40E_ETH_TEST_INTR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _I40E_ETH_TEST_INTR@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_i40e_intr_test
	cbz	x0, LBB0_17
; %bb.16:
Lloh62:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_17:
Lloh65:
	adrp	x8, _I40E_ETH_TEST_REG@GOTPAGE
Lloh66:
	ldr	x8, [x8, _I40E_ETH_TEST_REG@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	add	x1, x22, x8, lsl #2
	mov	x0, x19
	bl	_i40e_reg_test
	cbz	x0, LBB0_19
; %bb.18:
Lloh68:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_19:
	ldr	w0, [x25]
	ldr	w1, [x20]
	bl	_clear_bit
	ldr	w0, [x26]
	bl	_BIT
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_i40e_do_reset
	cbz	w23, LBB0_7
; %bb.20:
	mov	x0, x19
	bl	_i40e_open
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"offline testing starting\n"

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

	.comm	_I40E_ETH_TEST_REG,8,3          ; @I40E_ETH_TEST_REG
	.comm	_I40E_ETH_TEST_EEPROM,8,3       ; @I40E_ETH_TEST_EEPROM
	.comm	_I40E_ETH_TEST_INTR,8,3         ; @I40E_ETH_TEST_INTR
	.comm	_I40E_ETH_TEST_LINK,8,3         ; @I40E_ETH_TEST_LINK
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	___I40E_PF_RESET_REQUESTED,4,2  ; @__I40E_PF_RESET_REQUESTED
l_.str.2:                               ; @.str.2
	.asciz	"online testing starting\n"

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

	.no_dead_strip	_i40e_diag_test
.subsections_via_symbols
