	.file	"extr_igb_ethtool.c_igb_diag_test.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"offline testing starting\n"
.LC1:
	.string	"online testing starting\n"
	.text
	.p2align 4
	.type	igb_diag_test, @function
igb_diag_test:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	mov	rdi, r12
	mov	r14, rax
	call	netif_running@PLT
	mov	edi, DWORD PTR __IGB_TESTING[rip]
	mov	rsi, r14
	mov	r13d, eax
	call	set_bit@PLT
	cmp	QWORD PTR 40[r14], 0
	jne	.L2
	mov	eax, DWORD PTR 0[rbp]
	cmp	DWORD PTR ETH_TEST_FL_OFFLINE[rip], eax
	mov	rdi, QWORD PTR 8[r14]
	je	.L41
.L4:
	lea	rsi, .LC1[rip]
	call	dev_info@PLT
	test	r13d, r13d
	jne	.L42
.L13:
	mov	rax, QWORD PTR TEST_LINK[rip]
	mov	QWORD PTR [rbx+rax*8], 0
.L14:
	mov	rax, QWORD PTR TEST_REG[rip]
	mov	edi, DWORD PTR __IGB_TESTING[rip]
	mov	rsi, r14
	mov	QWORD PTR [rbx+rax*8], 0
	mov	rax, QWORD PTR TEST_EEP[rip]
	mov	QWORD PTR [rbx+rax*8], 0
	mov	rax, QWORD PTR TEST_IRQ[rip]
	mov	QWORD PTR [rbx+rax*8], 0
	mov	rax, QWORD PTR TEST_LOOP[rip]
	mov	QWORD PTR [rbx+rax*8], 0
	call	clear_bit@PLT
.L12:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, 4000
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	msleep_interruptible@PLT
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	mov	rax, QWORD PTR TEST_LINK[rip]
	mov	rdi, r14
	lea	rsi, [rbx+rax*8]
	call	igb_link_test@PLT
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR ETH_TEST_FL_FAILED[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR ETH_TEST_FL_OFFLINE[rip]
	mov	rdi, QWORD PTR 8[r14]
	not	eax
	and	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[rbp], eax
	cmp	DWORD PTR ETH_TEST_FL_OFFLINE[rip], eax
	jne	.L4
.L41:
	mov	rax, QWORD PTR 32[r14]
	lea	rsi, .LC0[rip]
	mov	r15d, DWORD PTR 20[r14]
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR 24[r14]
	mov	QWORD PTR 8[rsp], rax
	call	dev_info@PLT
	mov	rdi, r14
	call	igb_power_up_link@PLT
	mov	rax, QWORD PTR TEST_LINK[rip]
	mov	rdi, r14
	lea	rsi, [rbx+rax*8]
	call	igb_link_test@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR ETH_TEST_FL_FAILED[rip]
	or	DWORD PTR 0[rbp], eax
.L5:
	test	r13d, r13d
	jne	.L43
	mov	rdi, r14
	call	igb_reset@PLT
.L7:
	mov	rax, QWORD PTR TEST_REG[rip]
	mov	rdi, r14
	lea	rsi, [rbx+rax*8]
	call	igb_reg_test@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR ETH_TEST_FL_FAILED[rip]
	or	DWORD PTR 0[rbp], eax
.L8:
	mov	rdi, r14
	call	igb_reset@PLT
	mov	rax, QWORD PTR TEST_EEP[rip]
	mov	rdi, r14
	lea	rsi, [rbx+rax*8]
	call	igb_eeprom_test@PLT
	test	rax, rax
	je	.L9
	mov	eax, DWORD PTR ETH_TEST_FL_FAILED[rip]
	or	DWORD PTR 0[rbp], eax
.L9:
	mov	rdi, r14
	call	igb_reset@PLT
	mov	rax, QWORD PTR TEST_IRQ[rip]
	mov	rdi, r14
	lea	rsi, [rbx+rax*8]
	call	igb_intr_test@PLT
	test	rax, rax
	je	.L10
	mov	eax, DWORD PTR ETH_TEST_FL_FAILED[rip]
	or	DWORD PTR 0[rbp], eax
.L10:
	mov	rdi, r14
	call	igb_reset@PLT
	mov	rdi, r14
	call	igb_power_up_link@PLT
	mov	rax, QWORD PTR TEST_LOOP[rip]
	mov	rdi, r14
	lea	rsi, [rbx+rax*8]
	call	igb_loopback_test@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR ETH_TEST_FL_FAILED[rip]
	or	DWORD PTR 0[rbp], eax
.L11:
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR 20[r14], r15d
	mov	rdi, r14
	mov	DWORD PTR 16[r14], 1
	mov	QWORD PTR 32[r14], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[r14], rax
	call	igb_reset@PLT
	mov	DWORD PTR 16[r14], 0
	mov	edi, DWORD PTR __IGB_TESTING[rip]
	mov	rsi, r14
	call	clear_bit@PLT
	test	r13d, r13d
	je	.L12
	mov	rdi, r12
	call	igb_open@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rdi, r12
	call	igb_close@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	igb_diag_test, .-igb_diag_test
	.comm	__IGB_TESTING,4,4
	.comm	TEST_REG,8,8
	.comm	TEST_LOOP,8,8
	.comm	TEST_LINK,8,8
	.comm	TEST_IRQ,8,8
	.comm	TEST_EEP,8,8
	.comm	ETH_TEST_FL_OFFLINE,4,4
	.comm	ETH_TEST_FL_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_igb_ethtool.c_igb_diag_test.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"offline testing starting\012\000"
	.align	2
.LC1:
	.ascii	"online testing starting\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	igb_diag_test, %function
igb_diag_test:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r5, r1
	mov	r4, r2
	mov	r7, r0
	bl	netdev_priv
	mov	r9, r0
	mov	r0, r7
	bl	netif_running
	ldr	r8, .L43
	mov	r1, r9
	mov	r6, r0
	ldr	r0, [r8]
	bl	set_bit
	ldr	r2, [r9, #24]
	cmp	r2, #0
	ldrne	r1, .L43+4
	ldrne	r2, [r5]
	ldrne	r0, [r1]
	ldreq	r1, .L43+4
	bicne	r2, r2, r0
	strne	r2, [r5]
	ldreq	r2, [r5]
	ldr	r1, [r1]
	ldr	r0, [r9, #4]
	cmp	r1, r2
	beq	.L41
	ldr	r1, .L43+8
	bl	dev_info
	cmp	r6, #0
	ldr	r6, .L43+12
	bne	.L38
.L13:
	mov	r1, #0
	ldr	r2, [r6]
	str	r1, [r4, r2, lsl #2]
.L14:
	mov	r2, #0
	ldr	r0, .L43+16
	ldr	r3, .L43+20
	ldr	r0, [r0]
	mov	r1, r9
	str	r2, [r4, r0, lsl #2]
	ldr	r0, [r3]
	ldr	r3, .L43+24
	str	r2, [r4, r0, lsl #2]
	ldr	r0, [r3]
	ldr	r3, .L43+28
	str	r2, [r4, r0, lsl #2]
	ldr	r3, [r3]
	ldr	r0, [r8]
	str	r2, [r4, r3, lsl #2]
	bl	clear_bit
.L12:
	mov	r0, #4000
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	msleep_interruptible
.L38:
	ldr	r1, [r6]
	mov	r0, r9
	add	r1, r4, r1, lsl #2
	bl	igb_link_test
	cmp	r0, #0
	beq	.L13
	ldr	r1, .L43+32
	ldr	r2, [r5]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r5]
	b	.L14
.L41:
	ldr	r3, [r9, #16]
	ldr	r1, .L43+36
	str	r3, [sp, #4]
	ldr	fp, [r9, #12]
	ldr	r10, [r9, #20]
	bl	dev_info
	mov	r0, r9
	bl	igb_power_up_link
	ldr	r2, .L43+12
	mov	r0, r9
	ldr	r1, [r2]
	add	r1, r4, r1, lsl #2
	bl	igb_link_test
	cmp	r0, #0
	ldrne	r1, .L43+32
	ldrne	r2, [r5]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r5]
	cmp	r6, #0
	bne	.L42
	mov	r0, r9
	bl	igb_reset
.L7:
	ldr	r2, .L43+16
	mov	r0, r9
	ldr	r1, [r2]
	add	r1, r4, r1, lsl #2
	bl	igb_reg_test
	cmp	r0, #0
	ldrne	r1, .L43+32
	ldrne	r2, [r5]
	ldrne	r1, [r1]
	mov	r0, r9
	orrne	r2, r2, r1
	strne	r2, [r5]
	bl	igb_reset
	ldr	r2, .L43+20
	mov	r0, r9
	ldr	r1, [r2]
	add	r1, r4, r1, lsl #2
	bl	igb_eeprom_test
	cmp	r0, #0
	ldrne	r1, .L43+32
	ldrne	r2, [r5]
	ldrne	r1, [r1]
	mov	r0, r9
	orrne	r2, r2, r1
	strne	r2, [r5]
	bl	igb_reset
	ldr	r2, .L43+24
	mov	r0, r9
	ldr	r1, [r2]
	add	r1, r4, r1, lsl #2
	bl	igb_intr_test
	cmp	r0, #0
	ldrne	r1, .L43+32
	ldrne	r2, [r5]
	ldrne	r1, [r1]
	mov	r0, r9
	orrne	r2, r2, r1
	strne	r2, [r5]
	bl	igb_reset
	mov	r0, r9
	bl	igb_power_up_link
	ldr	r2, .L43+28
	mov	r0, r9
	ldr	r1, [r2]
	add	r1, r4, r1, lsl #2
	bl	igb_loopback_test
	cmp	r0, #0
	ldrne	r1, .L43+32
	ldrne	r2, [r5]
	ldrne	r1, [r1]
	ldr	r3, [sp, #4]
	orrne	r2, r2, r1
	strne	r2, [r5]
	mov	r2, #1
	str	r3, [r9, #16]
	str	r2, [r9, #8]
	mov	r0, r9
	str	fp, [r9, #12]
	str	r10, [r9, #20]
	bl	igb_reset
	mov	r2, #0
	mov	r1, r9
	ldr	r0, [r8]
	str	r2, [r9, #8]
	bl	clear_bit
	cmp	r6, #0
	beq	.L12
	mov	r0, r7
	bl	igb_open
	mov	r0, #4000
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	msleep_interruptible
.L42:
	mov	r0, r7
	bl	igb_close
	b	.L7
.L44:
	.align	2
.L43:
	.word	__IGB_TESTING
	.word	ETH_TEST_FL_OFFLINE
	.word	.LC1
	.word	TEST_LINK
	.word	TEST_REG
	.word	TEST_EEP
	.word	TEST_IRQ
	.word	TEST_LOOP
	.word	ETH_TEST_FL_FAILED
	.word	.LC0
	.size	igb_diag_test, .-igb_diag_test
	.comm	__IGB_TESTING,4,4
	.comm	TEST_REG,4,4
	.comm	TEST_LOOP,4,4
	.comm	TEST_LINK,4,4
	.comm	TEST_IRQ,4,4
	.comm	TEST_EEP,4,4
	.comm	ETH_TEST_FL_OFFLINE,4,4
	.comm	ETH_TEST_FL_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
