	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_conf_tx
_ath9k_conf_tx:                         ## @ath9k_conf_tx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	(%rdi), %r12
	movl	16(%r12), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%r15, (%rax)
	jbe	LBB0_4
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ath9k_ps_wakeup
	movq	%r12, %rdi
	callq	_mutex_lock
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	12(%r13), %r9d
	movl	%r9d, -44(%rbp)
	movl	8(%r13), %r10d
	movl	%r10d, -48(%rbp)
	movl	4(%r13), %ebx
	movl	%ebx, -52(%rbp)
	movl	(%r13), %eax
	movl	%eax, %ecx
	shll	$5, %ecx
	movl	%ecx, -56(%rbp)
	movq	_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %r8d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_ath_dbg
	addq	$32, %rsp
	movl	-56(%rbp), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ath_update_max_aggr_framelen
	movl	(%r13), %esi
	movq	%r12, %rdi
	leaq	-56(%rbp), %rdx
	callq	_ath_txq_update
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath_err
LBB0_3:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_ath9k_ps_restore
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_ACS,8,3          ## @IEEE80211_NUM_ACS
	.comm	_CONFIG,4,2                     ## @CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configure tx [queue/halq] [%d/%d], aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"TXQ Update failed\n"

	.no_dead_strip	_ath9k_conf_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_conf_tx
_ath9k_conf_tx:                         ; @ath9k_conf_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	ldr	x19, [x0]
	ldr	w0, [x19, #16]
	bl	_ath9k_hw_common
Lloh0:
	adrp	x8, _IEEE80211_NUM_ACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_NUM_ACS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ls	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x23, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_ath9k_ps_wakeup
	mov	x0, x19
	bl	_mutex_lock
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldp	w6, w5, [x22, #8]
	stp	w6, w5, [sp, #24]
	ldp	w8, w7, [x22]
	lsl	w9, w8, #5
	stp	w9, w7, [sp, #16]
Lloh3:
	adrp	x9, _CONFIG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	ldr	w4, [x23]
	str	w8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_ath_dbg
	ldr	w2, [sp, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_ath_update_max_aggr_framelen
	ldr	w1, [x23]
	add	x2, sp, #16
	mov	x0, x19
	bl	_ath_txq_update
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath_err
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x19
	bl	_ath9k_ps_restore
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_ACS,8,3          ; @IEEE80211_NUM_ACS
	.comm	_CONFIG,4,2                     ; @CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configure tx [queue/halq] [%d/%d], aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"TXQ Update failed\n"

	.no_dead_strip	_ath9k_conf_tx
.subsections_via_symbols
