	.file	"extr_txrx.c_ath6kl_process_psq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ath6kl_process_psq, @function
ath6kl_process_psq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 12[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 8[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR STA_PS_POLLED[rip], eax
	jne	.L9
	mov	rax, QWORD PTR 8[rsi]
	mov	rbx, rdi
	mov	rdi, r14
	mov	r12, rdx
	mov	rbp, rsi
	mov	QWORD PTR 8[rsp], rax
	call	spin_lock_bh@PLT
	mov	rdi, r15
	call	skb_queue_empty@PLT
	mov	rsi, r12
	mov	rdi, r15
	mov	r12d, 1
	mov	r13d, eax
	call	skb_queue_tail@PLT
	mov	rdi, r14
	call	spin_unlock_bh@PLT
	test	r13d, r13d
	jne	.L10
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, 1
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	call	ath6kl_wmi_set_pvb_cmd@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r14
	mov	r13, rcx
	call	spin_lock_bh@PLT
	mov	rdi, r15
	call	skb_queue_empty@PLT
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR WMI_DATA_HDR_FLAGS_MORE[rip]
	or	DWORD PTR 0[r13], eax
.L3:
	mov	rdi, r14
	xor	r12d, r12d
	call	spin_unlock_bh@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ath6kl_process_psq, .-ath6kl_process_psq
	.comm	WMI_DATA_HDR_FLAGS_MORE,4,4
	.comm	STA_PS_POLLED,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_txrx.c_ath6kl_process_psq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_process_psq, %function
ath6kl_process_psq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r4, r0
	ldr	r0, .L10
	ldr	ip, [r5], #12
	ldr	r0, [r0]
	add	r9, r4, #8
	tst	ip, r0
	bne	.L8
	mov	r0, r9
	mov	r7, r2
	mov	r6, r1
	ldr	r10, [r1, #4]
	bl	spin_lock_bh
	mov	r0, r5
	bl	skb_queue_empty
	mov	r8, r0
	mov	r1, r7
	mov	r0, r5
	bl	skb_queue_tail
	mov	r0, r9
	bl	spin_unlock_bh
	cmp	r8, #0
	bne	.L9
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r3, #1
	ldr	r2, [r4, #4]
	ldr	r1, [r6]
	ldr	r0, [r10]
	bl	ath6kl_wmi_set_pvb_cmd
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r9
	mov	r8, r3
	bl	spin_lock_bh
	mov	r0, r5
	bl	skb_queue_empty
	cmp	r0, #0
	ldreq	r2, .L10+4
	ldreq	r3, [r8]
	ldreq	r2, [r2]
	mov	r0, r9
	orreq	r3, r3, r2
	streq	r3, [r8]
	bl	spin_unlock_bh
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	.align	2
.L10:
	.word	STA_PS_POLLED
	.word	WMI_DATA_HDR_FLAGS_MORE
	.size	ath6kl_process_psq, .-ath6kl_process_psq
	.comm	WMI_DATA_HDR_FLAGS_MORE,4,4
	.comm	STA_PS_POLLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
