	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_diag_test
_igb_diag_test:                         ## @igb_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, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_netif_running
	movl	%eax, %r13d
	movq	___IGB_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	cmpq	$0, 40(%rbx)
	je	LBB0_1
## %bb.2:
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	jmp	LBB0_3
LBB0_1:
	movl	(%r15), %eax
LBB0_3:
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.4:
	movl	20(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movups	24(%rbx), %xmm0
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	%rbx, %rdi
	callq	_igb_power_up_link
	movq	_TEST_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_igb_link_test
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_igb_close
	jmp	LBB0_9
LBB0_19:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	testl	%r13d, %r13d
	je	LBB0_22
## %bb.20:
	movq	_TEST_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_igb_link_test
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_23
LBB0_22:
	movq	_TEST_LINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r14,%rax,8)
LBB0_23:
	movq	___IGB_TESTING@GOTPCREL(%rip), %rcx
	movq	_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r14,%rax,8)
	movq	_TEST_EEP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r14,%rax,8)
	movq	_TEST_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r14,%rax,8)
	movq	_TEST_LOOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%r14,%rax,8)
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	jmp	LBB0_24
LBB0_8:
	movq	%rbx, %rdi
	callq	_igb_reset
LBB0_9:
	movq	_TEST_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_igb_reg_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	%rbx, %rdi
	callq	_igb_reset
	movq	_TEST_EEP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_igb_eeprom_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	%rbx, %rdi
	callq	_igb_reset
	movq	_TEST_IRQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_igb_intr_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	%rbx, %rdi
	callq	_igb_reset
	movq	%rbx, %rdi
	callq	_igb_power_up_link
	movq	_TEST_LOOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_igb_loopback_test
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_17:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rbx)
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	movups	%xmm0, 24(%rbx)
	movl	$1, 16(%rbx)
	movq	%rbx, %rdi
	callq	_igb_reset
	movl	$0, 16(%rbx)
	movq	___IGB_TESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.18:
	movq	%r12, %rdi
	callq	_igb_open
LBB0_24:
	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
	.comm	___IGB_TESTING,4,2              ## @__IGB_TESTING
	.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	_TEST_LINK,8,3                  ## @TEST_LINK
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	_TEST_REG,8,3                   ## @TEST_REG
	.comm	_TEST_EEP,8,3                   ## @TEST_EEP
	.comm	_TEST_IRQ,8,3                   ## @TEST_IRQ
	.comm	_TEST_LOOP,8,3                  ## @TEST_LOOP
L_.str.1:                               ## @.str.1
	.asciz	"online testing starting\n"

	.no_dead_strip	_igb_diag_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_diag_test
_igb_diag_test:                         ; @igb_diag_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	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x22
	bl	_netif_running
	mov	x23, x0
Lloh0:
	adrp	x24, ___IGB_TESTING@GOTPAGE
Lloh1:
	ldr	x24, [x24, ___IGB_TESTING@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_set_bit
	ldr	x9, [x19, #40]
Lloh2:
	adrp	x8, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w9, [x8]
	ldr	w10, [x21]
	bic	w9, w10, w9
	str	w9, [x21]
	b	LBB0_3
LBB0_2:
	ldr	w9, [x21]
LBB0_3:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	w25, [x19, #20]
	ldp	x27, x26, [x19, #24]
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_igb_power_up_link
Lloh6:
	adrp	x8, _TEST_LINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEST_LINK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	bl	_igb_link_test
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_6:
	cbz	w23, LBB0_13
; %bb.7:
	mov	x0, x22
	bl	_igb_close
	b	LBB0_14
LBB0_8:
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh14:
	adrp	x22, _TEST_LINK@GOTPAGE
Lloh15:
	ldr	x22, [x22, _TEST_LINK@GOTPAGEOFF]
	cbz	w23, LBB0_11
; %bb.9:
	ldr	x8, [x22]
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	bl	_igb_link_test
	cbz	x0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x22]
	str	xzr, [x20, x8, lsl #3]
LBB0_12:
Lloh19:
	adrp	x8, _TEST_REG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TEST_REG@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	xzr, [x20, x8, lsl #3]
Lloh22:
	adrp	x8, _TEST_EEP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TEST_EEP@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	str	xzr, [x20, x8, lsl #3]
Lloh25:
	adrp	x8, _TEST_IRQ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TEST_IRQ@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	xzr, [x20, x8, lsl #3]
Lloh28:
	adrp	x8, _TEST_LOOP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TEST_LOOP@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	xzr, [x20, x8, lsl #3]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
	b	LBB0_24
LBB0_13:
	mov	x0, x19
	bl	_igb_reset
LBB0_14:
Lloh31:
	adrp	x8, _TEST_REG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TEST_REG@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	bl	_igb_reg_test
	cbz	x0, LBB0_16
; %bb.15:
Lloh34:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_16:
	mov	x0, x19
	bl	_igb_reset
Lloh37:
	adrp	x8, _TEST_EEP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TEST_EEP@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	bl	_igb_eeprom_test
	cbz	x0, LBB0_18
; %bb.17:
Lloh40:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_18:
	mov	x0, x19
	bl	_igb_reset
Lloh43:
	adrp	x8, _TEST_IRQ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TEST_IRQ@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	bl	_igb_intr_test
	cbz	x0, LBB0_20
; %bb.19:
Lloh46:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_20:
	mov	x0, x19
	bl	_igb_reset
	mov	x0, x19
	bl	_igb_power_up_link
Lloh49:
	adrp	x8, _TEST_LOOP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TEST_LOOP@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	add	x1, x20, x8, lsl #3
	mov	x0, x19
	bl	_igb_loopback_test
	cbz	x0, LBB0_22
; %bb.21:
Lloh52:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_22:
	stp	x27, x26, [x19, #24]
	mov	w8, #1
	stp	w8, w25, [x19, #16]
	mov	x0, x19
	bl	_igb_reset
	str	wzr, [x19, #16]
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
	cbz	w23, LBB0_24
; %bb.23:
	mov	x0, x22
	bl	_igb_open
LBB0_24:
	mov	w0, #4000
	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	_msleep_interruptible
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	___IGB_TESTING,4,2              ; @__IGB_TESTING
	.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	_TEST_LINK,8,3                  ; @TEST_LINK
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	_TEST_REG,8,3                   ; @TEST_REG
	.comm	_TEST_EEP,8,3                   ; @TEST_EEP
	.comm	_TEST_IRQ,8,3                   ; @TEST_IRQ
	.comm	_TEST_LOOP,8,3                  ; @TEST_LOOP
l_.str.1:                               ; @.str.1
	.asciz	"online testing starting\n"

	.no_dead_strip	_igb_diag_test
.subsections_via_symbols
