	.file	"extr_qlcnic_sysfs.c_qlcnic_82xx_store_beacon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to get current beacon state\n"
	.text
	.p2align 4
	.type	qlcnic_82xx_store_beacon, @function
qlcnic_82xx_store_beacon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r12d, DWORD PTR QL_STATUS_INVALID_PARAM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	rdx, 4
	je	.L26
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rbp, QWORD PTR 24[rdi]
	mov	r13d, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	edx, 4
	lea	rdi, 12[rsp]
	call	memcpy@PLT
	mov	esi, DWORD PTR 12[rsp]
	lea	rcx, 32[rsp]
	mov	rdi, rbx
	lea	rdx, 24[rsp]
	call	qlcnic_validate_beacon@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR QLCNIC_FW_CAPABILITY_2_BEACON[rip], eax
	jne	.L4
.L24:
	movsx	rax, DWORD PTR 4[rbp]
.L5:
	mov	r12d, 4
	cmp	QWORD PTR 24[rsp], rax
	je	.L1
	xor	eax, eax
	lea	r14, 4[rbx]
	call	rtnl_lock@PLT
	mov	edx, DWORD PTR 4[rbp]
	test	edx, edx
	jne	.L9
	mov	edi, DWORD PTR __QLCNIC_LED_ENABLE[rip]
	mov	rsi, r14
	call	test_and_set_bit@PLT
	test	rax, rax
	jne	.L28
.L9:
	mov	edi, DWORD PTR __QLCNIC_RESETTING[rip]
	mov	rsi, r14
	call	test_bit@PLT
	test	rax, rax
	je	.L10
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L11:
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L29
.L14:
	xor	eax, eax
	call	rtnl_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rsi, 16[rsp]
	mov	rdi, rbx
	call	qlcnic_get_beacon_state@PLT
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR 16[rsp]
	cmp	rax, QWORD PTR QLCNIC_BEACON_DISABLE[rip]
	je	.L31
	cmp	rax, QWORD PTR QLCNIC_BEACON_EANBLE[rip]
	jne	.L24
	mov	DWORD PTR 4[rbp], 2
	mov	eax, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR __QLCNIC_DEV_UP[rip]
	mov	rsi, r14
	call	test_bit@PLT
	test	rax, rax
	jne	.L12
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR QLCNIC_LED_TEST[rip]
	call	qlcnic_diag_alloc_res@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, r14
	call	set_bit@PLT
.L12:
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, rbx
	call	qlcnic_config_led@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR 24[rsp]
	mov	r12d, 4
	mov	DWORD PTR 4[rbp], eax
.L13:
	mov	edi, DWORD PTR __QLCNIC_DIAG_RES_ALLOC[rip]
	mov	rsi, r14
	call	test_and_clear_bit@PLT
	test	rax, rax
	je	.L11
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, r13d
	call	qlcnic_diag_free_res@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR __QLCNIC_LED_ENABLE[rip]
	mov	rsi, r14
	call	clear_bit@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L28:
	xor	eax, eax
	call	rtnl_unlock@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	DWORD PTR 4[rbp], 0
	xor	eax, eax
	jmp	.L5
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qlcnic_82xx_store_beacon, .-qlcnic_82xx_store_beacon
	.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	QL_STATUS_INVALID_PARAM,4,4
	.comm	QLCNIC_LED_TEST,4,4
	.comm	QLCNIC_FW_CAPABILITY_2_BEACON,4,4
	.comm	QLCNIC_BEACON_EANBLE,8,8
	.comm	QLCNIC_BEACON_DISABLE,8,8
	.comm	EIO,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_sysfs.c_qlcnic_82xx_store_beacon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get current beacon state\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_82xx_store_beacon, %function
qlcnic_82xx_store_beacon:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L32
	sub	sp, sp, #28
	cmp	r2, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
	ldr	r3, .L32+4
	ldr	r5, [r3]
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r4, r0
	add	r0, sp, #4
	ldr	r6, [r4, #16]
	ldr	r8, [r4]
	bl	memcpy
	mov	r0, r4
	ldr	r1, [sp, #4]
	add	r3, sp, #16
	add	r2, sp, #12
	bl	qlcnic_validate_beacon
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L32+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L4
.L26:
	ldr	r5, [r6, #4]
.L5:
	ldr	r3, [sp, #12]
	cmp	r3, r5
	moveq	r5, #4
	beq	.L1
	bl	rtnl_lock
	ldr	r3, [r6, #4]
	add	r7, r4, #4
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L32+12
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_and_set_bit
	cmp	r0, #0
	bne	.L29
.L9:
	ldr	r3, .L32+16
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L32+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L11:
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L30
.L14:
	bl	rtnl_unlock
	b	.L1
.L4:
	mov	r0, r4
	add	r1, sp, #8
	bl	qlcnic_get_beacon_state
	cmp	r0, #0
	beq	.L31
	ldr	r2, .L32+24
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	streq	r5, [r6, #4]
	beq	.L5
	ldr	r2, .L32+28
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L26
	mov	r3, #2
	mov	r5, r3
	str	r3, [r6, #4]
	b	.L5
.L10:
	ldr	r3, .L32+32
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L24
	ldr	r9, .L32+36
.L12:
	ldr	r2, [sp, #16]
	ldr	r1, [sp, #12]
	mov	r0, r4
	bl	qlcnic_config_led
	subs	r5, r0, #0
	ldreq	r3, [sp, #12]
	mov	r1, r7
	streq	r3, [r6, #4]
	ldr	r0, [r9]
	moveq	r5, #4
	bl	test_and_clear_bit
	cmp	r0, #0
	beq	.L11
	mov	r1, r8
	ldr	r0, [r4, #8]
	bl	qlcnic_diag_free_res
	b	.L11
.L30:
	ldr	r3, .L32+12
	mov	r1, r7
	ldr	r0, [r3]
	bl	clear_bit
	b	.L14
.L24:
	ldr	r3, .L32+40
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	bl	qlcnic_diag_alloc_res
	subs	r5, r0, #0
	bne	.L11
	ldr	r9, .L32+36
	mov	r1, r7
	ldr	r0, [r9]
	bl	set_bit
	b	.L12
.L31:
	ldr	r1, .L32+44
	ldr	r0, [r4, #12]
	bl	dev_info
	b	.L26
.L29:
	bl	rtnl_unlock
	ldr	r3, .L32+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L28:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC1
	.word	QL_STATUS_INVALID_PARAM
	.word	QLCNIC_FW_CAPABILITY_2_BEACON
	.word	__QLCNIC_LED_ENABLE
	.word	__QLCNIC_RESETTING
	.word	EIO
	.word	QLCNIC_BEACON_DISABLE
	.word	QLCNIC_BEACON_EANBLE
	.word	__QLCNIC_DEV_UP
	.word	__QLCNIC_DIAG_RES_ALLOC
	.word	QLCNIC_LED_TEST
	.word	.LC0
	.word	EBUSY
	.size	qlcnic_82xx_store_beacon, .-qlcnic_82xx_store_beacon
	.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	QL_STATUS_INVALID_PARAM,4,4
	.comm	QLCNIC_LED_TEST,4,4
	.comm	QLCNIC_FW_CAPABILITY_2_BEACON,4,4
	.comm	QLCNIC_BEACON_EANBLE,4,4
	.comm	QLCNIC_BEACON_DISABLE,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
