	.file	"extr_rtl871x_cmd.c_r8712_setassocsta_cmdrsp_callback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	r8712_setassocsta_cmdrsp_callback
	.type	r8712_setassocsta_cmdrsp_callback, @function
r8712_setassocsta_cmdrsp_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	add	rdi, 8
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rsi]
	mov	rbx, QWORD PTR [rsi]
	mov	esi, DWORD PTR [rax]
	call	r8712_get_stainfo@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, rbp
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR 4[rax], edx
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR WIFI_MP_STATE[rip]
	mov	rdi, rbp
	call	check_fwstate@PLT
	test	rax, rax
	jne	.L11
.L4:
	mov	esi, DWORD PTR _FW_LINKED[rip]
	mov	rdi, rbp
	call	set_fwstate@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	r8712_free_cmd_obj@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR _FW_UNDER_LINKING[rip]
	mov	rdi, rbp
	call	check_fwstate@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR _FW_UNDER_LINKING[rip]
	xor	DWORD PTR 4[rbp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	r8712_setassocsta_cmdrsp_callback, .-r8712_setassocsta_cmdrsp_callback
	.comm	_FW_UNDER_LINKING,4,4
	.comm	_FW_LINKED,4,4
	.comm	WIFI_MP_STATE,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_rtl871x_cmd.c_r8712_setassocsta_cmdrsp_callback.c"
	.text
	.align	2
	.global	r8712_setassocsta_cmdrsp_callback
	.syntax unified
	.arm
	.fpu softvfp
	.type	r8712_setassocsta_cmdrsp_callback, %function
r8712_setassocsta_cmdrsp_callback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r3, [r1, #4]
	mov	r4, r0
	ldr	r1, [r3]
	add	r0, r0, #8
	ldr	r6, [r5]
	bl	r8712_get_stainfo
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r6]
	mov	r1, #0
	str	r3, [r0]
	str	r3, [r0, #4]
	mov	r0, r4
	bl	spin_lock_irqsave
	ldr	r3, .L12
	mov	r0, r4
	ldr	r1, [r3]
	bl	check_fwstate
	cmp	r0, #0
	bne	.L11
.L4:
	ldr	r3, .L12+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	set_fwstate
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	r8712_free_cmd_obj
.L11:
	ldr	r6, .L12+8
	mov	r0, r4
	ldr	r1, [r6]
	bl	check_fwstate
	cmp	r0, #0
	ldrne	r3, [r4, #4]
	ldrne	r2, [r6]
	eorne	r3, r3, r2
	strne	r3, [r4, #4]
	b	.L4
.L13:
	.align	2
.L12:
	.word	WIFI_MP_STATE
	.word	_FW_LINKED
	.word	_FW_UNDER_LINKING
	.size	r8712_setassocsta_cmdrsp_callback, .-r8712_setassocsta_cmdrsp_callback
	.comm	_FW_UNDER_LINKING,4,4
	.comm	_FW_LINKED,4,4
	.comm	WIFI_MP_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
