	.file	"extr_htc_drv_txrx.c_ath9k_htc_tx_get_slot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ath9k_htc_tx_get_slot
	.type	ath9k_htc_tx_get_slot, @function
ath9k_htc_tx_get_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_bh@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR MAX_TX_BUF_NUM[rip]
	call	find_first_zero_bit@PLT
	cmp	DWORD PTR MAX_TX_BUF_NUM[rip], eax
	jle	.L6
	mov	esi, DWORD PTR 4[rbp]
	mov	edi, eax
	mov	r12d, eax
	call	__set_bit@PLT
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	spin_unlock_bh@PLT
	mov	r12d, DWORD PTR ENOBUFS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ath9k_htc_tx_get_slot, .-ath9k_htc_tx_get_slot
	.comm	MAX_TX_BUF_NUM,4,4
	.comm	ENOBUFS,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_htc_drv_txrx.c_ath9k_htc_tx_get_slot.c"
	.text
	.align	2
	.global	ath9k_htc_tx_get_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_htc_tx_get_slot, %function
ath9k_htc_tx_get_slot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r6, .L7
	bl	spin_lock_bh
	ldr	r0, [r5, #4]
	ldr	r1, [r6]
	bl	find_first_zero_bit
	ldr	r3, [r6]
	cmp	r3, r0
	ble	.L6
	mov	r4, r0
	ldr	r1, [r5, #4]
	bl	__set_bit
	mov	r0, r5
	bl	spin_unlock_bh
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r5
	bl	spin_unlock_bh
	ldr	r3, .L7+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	MAX_TX_BUF_NUM
	.word	ENOBUFS
	.size	ath9k_htc_tx_get_slot, .-ath9k_htc_tx_get_slot
	.comm	MAX_TX_BUF_NUM,4,4
	.comm	ENOBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
