	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbevf_diag_test
_ixgbevf_diag_test:                     ## @ixgbevf_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
	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, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_netif_running
	movl	%eax, %r14d
	movl	4(%r12), %edi
	callq	_IXGBE_REMOVED
	testq	%rax, %rax
	je	LBB0_1
## %bb.15:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%r13)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	addq	$4, %r12
	movq	___IXGBEVF_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rbx
	movq	%r15, %rsi
	callq	_set_bit
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	movl	(%rax), %eax
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_hw_dbg
	movq	%r13, %r15
	leaq	4(%r13), %rsi
	movq	%rbx, %rdi
	callq	_ixgbevf_link_test
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rcx
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_ixgbevf_close
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_hw_dbg
	leaq	4(%r13), %rsi
	movq	%rbx, %r15
	movq	%rbx, %rdi
	callq	_ixgbevf_link_test
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_13:
	movl	$0, (%r13)
	movq	___IXGBEVF_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	callq	_ixgbevf_reset
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_hw_dbg
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ixgbevf_reg_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:
	movq	%rbx, %rdi
	callq	_ixgbevf_reset
	movq	___IXGBEVF_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.10:
	movq	%r13, %rdi
	callq	_ixgbevf_open
LBB0_14:
	movl	$4000, %edi                     ## imm = 0xFA0
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep_interruptible           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adapter removed - test blocked\n"

	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	___IXGBEVF_TESTING,4,2          ## @__IXGBEVF_TESTING
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
L_.str.1:                               ## @.str.1
	.asciz	"offline testing starting\n"

L_.str.2:                               ## @.str.2
	.asciz	"register testing starting\n"

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

	.no_dead_strip	_ixgbevf_diag_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbevf_diag_test
_ixgbevf_diag_test:                     ; @ixgbevf_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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x22
	bl	_netif_running
	mov	x23, x0
	mov	x24, x20
	ldr	w0, [x24, #4]!
	bl	_IXGBE_REMOVED
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	movi.2s	v0, #1
	str	d0, [x21]
Lloh2:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [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
	ret
LBB0_2:
Lloh5:
	adrp	x25, ___IXGBEVF_TESTING@GOTPAGE
Lloh6:
	ldr	x25, [x25, ___IXGBEVF_TESTING@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x20
	bl	_set_bit
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_hw_dbg
	add	x1, x21, #4
	mov	x0, x20
	bl	_ixgbevf_link_test
	cbz	x0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	cbz	w23, LBB0_10
; %bb.6:
	mov	x0, x22
	bl	_ixgbevf_close
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_hw_dbg
	add	x1, x21, #4
	mov	x0, x20
	bl	_ixgbevf_link_test
	cbz	x0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	str	wzr, [x21]
	ldr	w0, [x25]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_15
LBB0_10:
	mov	x0, x20
	bl	_ixgbevf_reset
LBB0_11:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_hw_dbg
	mov	x0, x20
	mov	x1, x21
	bl	_ixgbevf_reg_test
	cbz	x0, LBB0_13
; %bb.12:
Lloh22:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	bl	_ixgbevf_reset
	ldr	w0, [x25]
	mov	x1, x20
	bl	_clear_bit
	cbz	w23, LBB0_15
; %bb.14:
	mov	x0, x22
	bl	_ixgbevf_open
LBB0_15:
	mov	w0, #4000
	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	_msleep_interruptible
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adapter removed - test blocked\n"

	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	___IXGBEVF_TESTING,4,2          ; @__IXGBEVF_TESTING
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
l_.str.1:                               ; @.str.1
	.asciz	"offline testing starting\n"

l_.str.2:                               ; @.str.2
	.asciz	"register testing starting\n"

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

	.no_dead_strip	_ixgbevf_diag_test
.subsections_via_symbols
