	.file	"extr_htc_drv_txrx.c_ath_htc_txq_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to update hardware queue %u!\n"
	.text
	.p2align 4
	.globl	ath_htc_txq_update
	.type	ath_htc_txq_update, @function
ath_htc_txq_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rdx, r13
	mov	rdi, rbp
	call	ath9k_hw_get_txq_props@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, r12d
	mov	rdi, rbp
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	mov	rdx, r13
	sar	eax
	mov	DWORD PTR [rsp], eax
	mov	rax, QWORD PTR 4[rbx]
	mov	QWORD PTR 4[rsp], rax
	mov	rax, QWORD PTR 12[rbx]
	mov	QWORD PTR 12[rsp], rax
	call	ath9k_hw_set_txq_props@PLT
	test	eax, eax
	jne	.L2
	mov	rdi, rbp
	call	ath9k_hw_common@PLT
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	ath_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	ath9k_hw_resettxqueue@PLT
	xor	eax, eax
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath_htc_txq_update, .-ath_htc_txq_update
	.comm	EIO,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_ath_htc_txq_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to update hardware queue %u!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ath_htc_txq_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath_htc_txq_update, %function
ath_htc_txq_update:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r2
	mov	r5, r1
	ldr	r6, [r0]
	sub	sp, sp, #28
	ldr	r3, .L8
	mov	r2, sp
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	ath9k_hw_get_txq_props
	ldmib	r4, {ip, lr}
	ldr	r3, [r4]
	ldr	r0, [r4, #16]
	ldr	r7, [r4, #12]
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	str	r0, [sp, #16]
	mov	r2, sp
	mov	r1, r5
	mov	r0, r6
	stmib	sp, {ip, lr}
	str	r3, [sp]
	str	r7, [sp, #12]
	bl	ath9k_hw_set_txq_props
	cmp	r0, #0
	bne	.L2
	mov	r0, r6
	bl	ath9k_hw_common
	mov	r2, r5
	ldr	r1, .L8+4
	bl	ath_err
	ldr	r3, .L8+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r1, r5
	mov	r0, r6
	bl	ath9k_hw_resettxqueue
	mov	r0, #0
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	.LC0
	.word	EIO
	.size	ath_htc_txq_update, .-ath_htc_txq_update
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
