	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_conf_tx
_ath9k_htc_conf_tx:                     ## @ath9k_htc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	(%rdi), %r13
	movq	16(%r13), %rdi
	callq	_ath9k_hw_common
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	%r12, (%rax)
	jle	LBB0_7
## %bb.1:
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_ath9k_htc_ps_wakeup
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	12(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -68(%rbp)
	movl	(%rbx), %eax
	shll	$5, %eax
	movl	%eax, -72(%rbp)
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_get_hw_qnum
	movl	%eax, %r15d
	movq	_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %r9d
	movl	8(%rbx), %r10d
	movl	(%rbx), %eax
	movl	4(%rbx), %ebx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	movl	%r15d, %r8d
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_ath_dbg
	addq	$32, %rsp
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_ath_htc_txq_update
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_3:
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.4:
	movq	(%r13), %rax
	movq	_IEEE80211_AC_BE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rax,%rcx,4), %r15d
	jne	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_ath9k_htc_beaconq_config
LBB0_6:
	movq	%r13, %rdi
	callq	_ath9k_htc_ps_restore
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %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/hwq] [%d/%d],  aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n"

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

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_IEEE80211_AC_BE,8,3            ## @IEEE80211_AC_BE
	.no_dead_strip	_ath9k_htc_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_htc_conf_tx
_ath9k_htc_conf_tx:                     ; @ath9k_htc_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	x23, x3
	mov	x22, x2
	ldr	x19, [x0]
	ldr	x0, [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, x22
	b.le	LBB0_3
; %bb.1:
	mov	x21, x0
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_ath9k_htc_ps_wakeup
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w8, [x23, #12]
	str	w8, [sp, #28]
	ldur	d0, [x23, #4]
	stur	d0, [sp, #20]
	ldr	w8, [x23]
	lsl	w8, w8, #5
	str	w8, [sp, #16]
	ldr	x1, [x19]
	mov	x0, x22
	bl	_get_hw_qnum
	mov	x24, x0
Lloh3:
	adrp	x8, _CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	w6, w5, [x23, #8]
	ldp	w8, w7, [x23]
	str	w8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	mov	x4, x24
	bl	_ath_dbg
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x24
	bl	_ath_htc_txq_update
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_ath_err
	b	LBB0_7
LBB0_3:
	mov	w22, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _IEEE80211_AC_BE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IEEE80211_AC_BE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w24, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ath9k_htc_beaconq_config
LBB0_7:
	mov	x0, x19
	bl	_ath9k_htc_ps_restore
	mov	x0, x20
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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/hwq] [%d/%d],  aifs: %d, cw_min: %d, cw_max: %d, txop: %d\n"

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

	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_IEEE80211_AC_BE,8,3            ; @IEEE80211_AC_BE
	.no_dead_strip	_ath9k_htc_conf_tx
.subsections_via_symbols
