	.file	"extr_txrx.c_cw1200_tx_h_pm_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cw1200_tx_h_pm_state, @function
cw1200_tx_h_pm_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR CW1200_LINK_ID_AFTER_DTIM[rip]
	cmp	QWORD PTR [rsi], rax
	je	.L12
.L3:
	movsx	rax, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L1
	mov	rdx, QWORD PTR 16[rbx]
	cmp	rdx, QWORD PTR CW1200_MAX_TID[rip]
	jnb	.L6
	mov	rcx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR -8[rcx+rax*8]
	lea	rdx, [rax+rdx*4]
	mov	eax, DWORD PTR [rdx]
	lea	ecx, 1[rax]
	test	eax, eax
	mov	DWORD PTR [rdx], ecx
	sete	al
	movzx	eax, al
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jne	.L3
	cmp	QWORD PTR 24[rdi], 0
	mov	DWORD PTR [rdi], 1
	je	.L3
	lea	rsi, 16[rdi]
	mov	edi, DWORD PTR 20[rdi]
	call	queue_work@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cw1200_tx_h_pm_state, .-cw1200_tx_h_pm_state
	.comm	CW1200_MAX_TID,8,8
	.comm	CW1200_LINK_ID_AFTER_DTIM,8,8
	.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_cw1200_tx_h_pm_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cw1200_tx_h_pm_state, %function
cw1200_tx_h_pm_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	ldr	r2, [r1]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	mov	r4, r1
	mov	r5, r0
	beq	.L15
.L3:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, .L16+4
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	ldrcc	r2, [r5, #4]
	subcc	r0, r0, #-1073741823
	ldrcc	r1, [r2, r0, lsl #2]
	ldrcc	r2, [r1, r3, lsl #2]
	clzcc	r0, r2
	addcc	r2, r2, #1
	lsrcc	r0, r0, #5
	strcc	r2, [r1, r3, lsl #2]
	movcs	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L3
	mov	r2, #1
	ldr	r3, [r0, #16]
	str	r2, [r0]
	cmp	r3, #0
	beq	.L3
	add	r1, r0, #8
	ldr	r0, [r0, #12]
	bl	queue_work
	b	.L3
.L17:
	.align	2
.L16:
	.word	CW1200_LINK_ID_AFTER_DTIM
	.word	CW1200_MAX_TID
	.size	cw1200_tx_h_pm_state, .-cw1200_tx_h_pm_state
	.comm	CW1200_MAX_TID,4,4
	.comm	CW1200_LINK_ID_AFTER_DTIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
