	.file	"extr_qlcnic_ethtool.c_qlcnic_set_led.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"LED test not supported for non privilege function\n"
	.align 8
.LC1:
	.string	"Failed to set LED blink state.\n"
	.align 8
.LC2:
	.string	"Failed to reset LED blink state.\n"
	.text
	.p2align 4
	.type	qlcnic_set_led, @function
qlcnic_set_led:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	mov	r13d, DWORD PTR EIO[rip]
	mov	rdi, rax
	mov	r14d, DWORD PTR [rax]
	mov	rbx, rax
	call	qlcnic_83xx_check@PLT
	test	rax, rax
	jne	.L32
	mov	rax, QWORD PTR 24[rbx]
	mov	rcx, QWORD PTR QLCNIC_NON_PRIV_FUNC[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L33
	mov	r15d, r13d
	neg	r15d
	cmp	ebp, 128
	je	.L5
	cmp	ebp, 129
	je	.L34
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	lea	rbp, 4[rbx]
	mov	edi, DWORD PTR __QLCNIC_LED_ENABLE[rip]
	mov	rsi, rbp
	call	test_and_set_bit@PLT
	test	eax, eax
	je	.L7
	mov	r8d, DWORD PTR EBUSY[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rbp, 4[rbx]
	mov	edi, DWORD PTR __QLCNIC_RESETTING[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	eax, eax
	je	.L35
.L14:
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, rbp
	call	test_and_clear_bit@PLT
	test	rax, rax
	je	.L16
	mov	esi, r14d
	mov	rdi, r12
	call	qlcnic_diag_free_res@PLT
.L16:
	mov	edi, DWORD PTR __QLCNIC_LED_ENABLE[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	mov	r8d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, ebp
	mov	rdi, r12
	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	qlcnic_83xx_set_led@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR __QLCNIC_RESETTING[rip]
	mov	rsi, rbp
	mov	DWORD PTR 12[rsp], eax
	call	test_bit@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L36
.L11:
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, rbp
	mov	DWORD PTR 12[rsp], r8d
	call	test_and_clear_bit@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	rax, rax
	jne	.L37
.L15:
	test	r13d, r13d
	je	.L1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, DWORD PTR __QLCNIC_DEV_UP[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	eax, eax
	je	.L38
.L13:
	mov	rax, QWORD PTR 16[rbx]
	xor	esi, esi
	mov	edx, 15
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	test	eax, eax
	je	.L14
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	netdev_warn@PLT
	mov	r8d, DWORD PTR EOPNOTSUPP[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR __QLCNIC_DEV_UP[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L39
.L9:
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR 12[rsp], r8d
	mov	edx, 15
	mov	rdi, rbx
	mov	esi, 1
	call	[QWORD PTR [rax]]
	mov	r8d, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L40
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, rbp
	mov	DWORD PTR 12[rsp], r8d
	call	test_and_clear_bit@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	rax, rax
	je	.L1
	mov	esi, r14d
	mov	rdi, r12
	call	qlcnic_diag_free_res@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	esi, DWORD PTR QLCNIC_LED_TEST[rip]
	mov	rdi, r12
	call	qlcnic_diag_alloc_res@PLT
	test	eax, eax
	jne	.L14
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L39:
	mov	esi, DWORD PTR QLCNIC_LED_TEST[rip]
	mov	rdi, r12
	call	qlcnic_diag_alloc_res@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L11
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L9
.L40:
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L11
.L37:
	mov	esi, r14d
	mov	rdi, r12
	call	qlcnic_diag_free_res@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	qlcnic_set_led, .-qlcnic_set_led
	.comm	__QLCNIC_RESETTING,4,4
	.comm	__QLCNIC_LED_ENABLE,4,4
	.comm	__QLCNIC_DIAG_RES_ALLOC,4,4
	.comm	__QLCNIC_DEV_UP,4,4
	.comm	QLCNIC_NON_PRIV_FUNC,8,8
	.comm	QLCNIC_LED_TEST,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_qlcnic_ethtool.c_qlcnic_set_led.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LED test not supported for non privilege function\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Failed to set LED blink state.\012\000"
	.align	2
.LC2:
	.ascii	"Failed to reset LED blink state.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_set_led, %function
qlcnic_set_led:
	@ 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	r6, r1
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, .L50
	mov	r4, r0
	ldr	r9, [r0]
	ldr	r7, [r3]
	bl	qlcnic_83xx_check
	cmp	r0, #0
	bne	.L45
	ldr	r2, [r4, #16]
	ldr	r3, .L50+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L46
	cmp	r6, #128
	rsb	r10, r7, #0
	beq	.L5
	cmp	r6, #129
	beq	.L47
	ldr	r3, .L50+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	ldr	fp, .L50+12
	add	r8, r4, #4
	mov	r1, r8
	ldr	r0, [fp]
	bl	test_and_set_bit
	subs	r6, r0, #0
	beq	.L7
	ldr	r3, .L50+16
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, .L50+20
	add	r8, r4, #4
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L38
	ldr	r3, .L50+24
.L14:
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	beq	.L43
	mov	r1, r9
	mov	r0, r5
	bl	qlcnic_diag_free_res
.L43:
	ldr	fp, .L50+12
.L16:
	mov	r6, r10
	mov	r1, r8
	ldr	r0, [fp]
	bl	clear_bit
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	mov	r1, r6
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	qlcnic_83xx_set_led
.L7:
	ldr	r3, .L50+20
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L35
	ldr	r3, .L50+24
.L11:
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	bne	.L48
.L15:
	cmp	r7, #0
	beq	.L1
	b	.L16
.L38:
	ldr	r3, .L50+28
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L39
	ldr	r3, .L50+24
.L13:
	ldr	r1, [r4, #12]
	mov	r2, #15
	ldr	r6, [r1]
	mov	r0, r4
	mov	r1, #0
	str	r3, [sp, #4]
	blx	r6
	cmp	r0, #0
	ldr	r3, [sp, #4]
	beq	.L14
	ldr	r0, [r4, #8]
	ldr	r1, .L50+32
	bl	dev_err
	ldr	r3, [sp, #4]
	b	.L14
.L46:
	mov	r0, r5
	ldr	r1, .L50+36
	bl	netdev_warn
	ldr	r3, .L50+40
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L35:
	ldr	r3, .L50+28
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L36
	ldr	r3, .L50+24
.L9:
	ldr	r1, [r4, #12]
	str	r3, [sp, #4]
	mov	r2, #15
	ldr	r3, [r1]
	mov	r0, r4
	mov	r1, #1
	blx	r3
	cmp	r0, #0
	ldr	r3, [sp, #4]
	bne	.L49
	mov	r1, r8
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	beq	.L1
	mov	r1, r9
	mov	r0, r5
	bl	qlcnic_diag_free_res
	b	.L1
.L39:
	ldr	r3, .L50+44
	mov	r0, r5
	ldr	r1, [r3]
	bl	qlcnic_diag_alloc_res
	cmp	r0, #0
	ldr	r3, .L50+24
	bne	.L14
	ldr	r0, [r3]
	mov	r1, r8
	str	r3, [sp, #4]
	bl	set_bit
	ldr	r3, [sp, #4]
	b	.L13
.L36:
	ldr	r3, .L50+44
	mov	r0, r5
	ldr	r1, [r3]
	bl	qlcnic_diag_alloc_res
	cmp	r0, #0
	ldr	r3, .L50+24
	bne	.L11
	ldr	r0, [r3]
	mov	r1, r8
	str	r3, [sp, #4]
	bl	set_bit
	ldr	r3, [sp, #4]
	b	.L9
.L49:
	ldr	r0, [r4, #8]
	ldr	r1, .L50+48
	bl	dev_err
	ldr	r3, [sp, #4]
	b	.L11
.L48:
	mov	r1, r9
	mov	r0, r5
	bl	qlcnic_diag_free_res
	b	.L15
.L51:
	.align	2
.L50:
	.word	EIO
	.word	QLCNIC_NON_PRIV_FUNC
	.word	EINVAL
	.word	__QLCNIC_LED_ENABLE
	.word	EBUSY
	.word	__QLCNIC_RESETTING
	.word	__QLCNIC_DIAG_RES_ALLOC
	.word	__QLCNIC_DEV_UP
	.word	.LC2
	.word	.LC0
	.word	EOPNOTSUPP
	.word	QLCNIC_LED_TEST
	.word	.LC1
	.size	qlcnic_set_led, .-qlcnic_set_led
	.comm	__QLCNIC_RESETTING,4,4
	.comm	__QLCNIC_LED_ENABLE,4,4
	.comm	__QLCNIC_DIAG_RES_ALLOC,4,4
	.comm	__QLCNIC_DEV_UP,4,4
	.comm	QLCNIC_NON_PRIV_FUNC,4,4
	.comm	QLCNIC_LED_TEST,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
