	.file	"extr_htc_drv_main.c_ath9k_htc_conf_tx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Configure tx [queue/hwq] [%d/%d],  aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"TXQ Update failed\n"
	.text
	.p2align 4
	.type	ath9k_htc_conf_tx, @function
ath9k_htc_conf_tx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rdi, QWORD PTR 16[rbp]
	call	ath9k_hw_common@PLT
	cmp	QWORD PTR IEEE80211_NUM_ACS[rip], r12
	mov	QWORD PTR 8[rsp], rax
	jg	.L10
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	lea	r14, 8[rbp]
	lea	r13, 16[rsp]
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	ath9k_htc_ps_wakeup@PLT
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	mov	DWORD PTR 20[rsp], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR [rbx]
	sal	eax, 5
	mov	DWORD PTR 16[rsp], eax
	call	get_hw_qnum@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9d, DWORD PTR 12[rbx]
	mov	rcx, r12
	mov	r15d, eax
	mov	eax, DWORD PTR [rbx]
	mov	esi, DWORD PTR CONFIG[rip]
	lea	rdx, .LC0[rip]
	mov	r8d, r15d
	push	rax
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR 8[rbx]
	push	rax
	.cfi_def_cfa_offset 144
	mov	r10, QWORD PTR 40[rsp]
	mov	rdi, r10
	call	ath_dbg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	rdx, r13
	mov	esi, r15d
	mov	rdi, rbp
	call	ath_htc_txq_update@PLT
	mov	r10, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r13d, eax
	jne	.L12
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR NL80211_IFTYPE_ADHOC[rip]
	cmp	QWORD PTR [rax], rsi
	je	.L13
.L4:
	mov	rdi, rbp
	call	ath9k_htc_ps_restore@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR IEEE80211_AC_BE[rip]
	cmp	DWORD PTR [rax+rdx*4], r15d
	jne	.L4
	mov	rdi, rbp
	call	ath9k_htc_beaconq_config@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC1[rip]
	mov	rdi, r10
	call	ath_err@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath9k_htc_conf_tx, .-ath9k_htc_conf_tx
	.comm	NL80211_IFTYPE_ADHOC,8,8
	.comm	IEEE80211_NUM_ACS,8,8
	.comm	IEEE80211_AC_BE,8,8
	.comm	CONFIG,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_main.c_ath9k_htc_conf_tx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Configure tx [queue/hwq] [%d/%d],  aifs: %d, cw_min"
	.ascii	": %d, cw_max: %d, txop: %d\012\000"
	.align	2
.LC1:
	.ascii	"TXQ Update failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath9k_htc_conf_tx, %function
ath9k_htc_conf_tx:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r2
	ldr	r5, [r0]
	mov	r4, r3
	ldr	r3, .L13
	sub	sp, sp, #52
	ldr	r0, [r5, #8]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	ath9k_hw_common
	ldr	r1, .L13+4
	ldr	r1, [r1]
	cmp	r1, r6
	movle	r4, #0
	bgt	.L9
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	add	r8, r5, #4
	mov	r7, r0
	mov	r0, r8
	bl	mutex_lock
	mov	r0, r5
	bl	ath9k_htc_ps_wakeup
	ldmib	r4, {r2, ip}
	ldr	r0, [r4, #12]
	ldr	r3, [r4]
	ldr	r1, [r5]
	lsl	r3, r3, #5
	str	r0, [sp, #40]
	mov	r0, r6
	str	r3, [sp, #28]
	str	ip, [sp, #36]
	str	r2, [sp, #32]
	bl	get_hw_qnum
	ldm	r4, {r2, ip}
	mov	r9, r0
	ldr	r1, .L13+8
	str	r0, [sp]
	ldr	r1, [r1]
	str	r2, [sp, #16]
	ldr	r0, [r4, #8]
	ldr	r2, [r4, #12]
	mov	r3, r6
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r2, [sp, #4]
	mov	r0, r7
	ldr	r2, .L13+12
	bl	ath_dbg
	mov	r1, r9
	mov	r0, r5
	add	r2, sp, #28
	bl	ath_htc_txq_update
	subs	r4, r0, #0
	bne	.L11
	ldr	r2, [r5, #8]
	ldr	r3, .L13+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L12
.L4:
	mov	r0, r5
	bl	ath9k_htc_ps_restore
	mov	r0, r8
	bl	mutex_unlock
	b	.L1
.L12:
	ldr	r2, .L13+20
	ldr	r3, [r5]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, r9
	bne	.L4
	mov	r0, r5
	bl	ath9k_htc_beaconq_config
	b	.L4
.L11:
	mov	r0, r7
	ldr	r1, .L13+24
	bl	ath_err
	b	.L4
.L10:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	IEEE80211_NUM_ACS
	.word	CONFIG
	.word	.LC0
	.word	NL80211_IFTYPE_ADHOC
	.word	IEEE80211_AC_BE
	.word	.LC1
	.size	ath9k_htc_conf_tx, .-ath9k_htc_conf_tx
	.comm	NL80211_IFTYPE_ADHOC,4,4
	.comm	IEEE80211_NUM_ACS,4,4
	.comm	IEEE80211_AC_BE,4,4
	.comm	CONFIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
