	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_resettxqueue          ## -- Begin function ath9k_hw_resettxqueue
	.p2align	4, 0x90
_ath9k_hw_resettxqueue:                 ## @ath9k_hw_resettxqueue
	.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	%rsi, %r15
	movq	%rdi, %r12
	callq	_ath9k_hw_common
	movq	48(%r12), %r13
	leaq	(%r15,%r15,4), %r14
	shlq	$4, %r14
	movl	(%r13,%r14), %ecx
	movq	_ATH9K_TX_QUEUE_INACTIVE@GOTPCREL(%rip), %rdx
	movq	_QUEUE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	(%rdx), %ecx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rcx
	callq	_ath_dbg
	jmp	LBB0_48
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rcx
	callq	_ath_dbg
	movq	8(%r13,%r14), %rbx
	movq	_ATH9K_TXQ_USEDEFAULT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.3:
	movq	_INIT_CWMIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %ebx
	cmpq	$2, %rax
	jb	LBB0_6
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rbx
	incq	%rbx
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	%r12, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	movq	%r15, %rdi
	callq	_AR_DLCL_IFS
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	movq	_AR_D_LCL_IFS_CWMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SM
	movq	%rax, %rbx
	movq	16(%r13,%r14), %rdi
	movq	_AR_D_LCL_IFS_CWMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orq	%rax, %rbx
	movq	24(%r13,%r14), %rdi
	movq	_AR_D_LCL_IFS_AIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_REG_WRITE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_DRETRY_LIMIT
	movl	%eax, %r15d
	movq	_INIT_SSH_RETRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_AR_D_RETRY_LIMIT_STA_SH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movq	%rax, %rbx
	movq	_INIT_SLG_RETRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_AR_D_RETRY_LIMIT_STA_LG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orq	%rax, %rbx
	movq	32(%r13,%r14), %rdi
	movq	_AR_D_RETRY_LIMIT_FR_SH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_REG_WRITE
	movq	%r15, %rdi
	callq	_AR_QMISC
	movq	_AR_Q_MISC_DCU_EARLY_TERM_REQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_WRITE
	movq	%r12, %rdi
	callq	_AR_SREV_9340
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r12, %rdi
	callq	_AR_SREV_9340_13_OR_LATER
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movl	$2, %ebx
	jmp	LBB0_10
LBB0_8:
	movl	$1, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_AR_DMISC
	movq	_AR_D_MISC_CW_BKOFF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_AR_D_MISC_FRAG_WAIT_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	orl	%ebx, %ecx
	movslq	%ecx, %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_WRITE
	cmpl	$0, 40(%r13,%r14)
	je	LBB0_14
## %bb.11:
	leaq	(%r14,%r13), %rbx
	addq	$40, %rbx
	movq	%r15, %rdi
	callq	_AR_QCBRCFG
	movl	%eax, %r15d
	movslq	(%rbx), %rdi
	movq	_AR_Q_CBRCFG_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movq	%rax, %rbx
	movq	48(%r13,%r14), %rdi
	movq	_AR_Q_CBRCFG_OVF_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orq	%rax, %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_REG_WRITE
	movq	%r15, %rdi
	callq	_AR_QMISC
	movq	_AR_Q_MISC_FSP_CBR@GOTPCREL(%rip), %rcx
	movq	48(%r13,%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:
	movq	_AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_13:
	orq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
LBB0_14:
	leaq	(%r14,%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r13), %rax
	addq	$56, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 56(%r13,%r14)
	je	LBB0_17
## %bb.15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	$130, (%rax)
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	callq	_AR_QRDYTIMECFG
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AR_Q_RDYTIMECFG_DURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movq	_AR_Q_RDYTIMECFG_EN@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_REG_WRITE
LBB0_17:
	movq	%r15, %rdi
	callq	_AR_DCHNTIME
	movl	%eax, %ebx
	movq	64(%r13,%r14), %rdi
	movq	_AR_D_CHNTIME_DUR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movq	64(%r13,%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.18:
	movq	_AR_D_CHNTIME_EN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
LBB0_19:
	orq	%rax, %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_REG_WRITE
	cmpq	$0, 64(%r13,%r14)
	je	LBB0_22
## %bb.20:
	movq	_TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 72(%r13,%r14)
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_AR_QMISC
	movq	_AR_Q_MISC_RDYTIME_EXP_POLICY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
LBB0_22:
	leaq	(%r14,%r13), %r15
	addq	$72, %r15
	movq	_TXQ_FLAG_BACKOFF_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 72(%r13,%r14)
	je	LBB0_24
## %bb.23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_DMISC
	movq	_AR_D_MISC_POST_FR_BKOFF_DIS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
LBB0_24:
	movq	%r12, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	movq	_TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_26
## %bb.25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_DMISC
	movq	_AR_D_MISC_FRAG_BKOFF_EN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
LBB0_26:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_35
## %bb.27:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_33:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_DMISC
	movq	_AR_D_MISC_POST_FR_BKOFF_DIS@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_32:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_QMISC
	movq	_AR_Q_MISC_CBR_INCR_DIS1@GOTPCREL(%rip), %rcx
LBB0_34:
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
	jmp	LBB0_35
LBB0_31:
	movq	%r12, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_AR_QMISC
	movq	_AR_Q_MISC_FSP_DBA_GATED@GOTPCREL(%rip), %rcx
	movq	_AR_Q_MISC_CBR_INCR_DIS1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	movq	_AR_Q_MISC_CBR_INCR_DIS0@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	subq	32(%r12), %rbx
	addq	24(%r12), %rbx
	shlq	$10, %rbx
	movq	%r15, %rdi
	callq	_AR_QRDYTIMECFG
	movq	_AR_Q_RDYTIMECFG_EN@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_REG_WRITE
	movq	%r15, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	callq	_AR_DMISC
	movq	_AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_AR_D_MISC_ARB_LOCKOUT_CNTRL_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
	movq	%r12, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	jmp	LBB0_35
LBB0_28:
	movq	%r12, %rdi
	callq	_ENABLE_REGWRITE_BUFFER
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_AR_QMISC
	movq	_AR_Q_MISC_FSP_DBA_GATED@GOTPCREL(%rip), %rcx
	movq	_AR_Q_MISC_BEACON_USE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	movq	_AR_Q_MISC_CBR_INCR_DIS1@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
	movq	%rbx, %rdi
	callq	_AR_DMISC
	movq	_AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_AR_D_MISC_ARB_LOCKOUT_CNTRL_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rdx
	movq	_AR_D_MISC_BEACON_USE@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdx
	movq	_AR_D_MISC_POST_FR_BKOFF_DIS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_REG_SET_BIT
	movq	%r12, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	movq	%r12, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_35
## %bb.29:
	movl	40(%r12), %eax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_35
## %bb.30:
	leaq	(%r14,%r13), %rax
	addq	$24, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_DLCL_IFS
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_AR_D_LCL_IFS_CWMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	movq	%rax, %rbx
	movq	_AR_D_LCL_IFS_CWMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_SM
	orq	%rax, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_AR_D_LCL_IFS_AIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orq	%rax, %rbx
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	callq	_REG_WRITE
LBB0_35:
	movq	_ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 76(%r13,%r14)
	je	LBB0_37
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_AR_DMISC
	movl	%eax, %ebx
	movq	_AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_AR_D_MISC_ARB_LOCKOUT_CNTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movq	_AR_D_MISC_POST_FR_BKOFF_DIS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_REG_SET_BIT
LBB0_37:
	movq	%r12, %rdi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	movq	_AR_Q_DESC_CRCCHK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_Q_DESC_CRCCHK_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_REG_WRITE
LBB0_39:
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ath9k_hw_clear_queue_interrupts
	movl	(%r15), %eax
	movq	_TXQ_FLAG_TXINT_ENABLE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_41
## %bb.40:
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	orl	%edx, (%r12)
	orl	%edx, 4(%r12)
LBB0_41:
	movq	_TXQ_FLAG_TXDESCINT_ENABLE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_43
## %bb.42:
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	orl	%edx, 8(%r12)
LBB0_43:
	movq	_TXQ_FLAG_TXEOLINT_ENABLE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_45
## %bb.44:
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	orl	%edx, 12(%r12)
LBB0_45:
	movq	_TXQ_FLAG_TXURNINT_ENABLE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_47
## %bb.46:
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, 16(%r12)
LBB0_47:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath9k_hw_set_txq_interrupts
LBB0_48:
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_33
	.long	L0_0_set_32
	.long	L0_0_set_31
	.long	L0_0_set_28
	.end_data_region
                                        ## -- End function
	.comm	_ATH9K_TX_QUEUE_INACTIVE,4,2    ## @ATH9K_TX_QUEUE_INACTIVE
	.comm	_QUEUE,4,2                      ## @QUEUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reset TXQ, inactive queue: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Reset TX queue: %u\n"

	.comm	_ATH9K_TXQ_USEDEFAULT,8,3       ## @ATH9K_TXQ_USEDEFAULT
	.comm	_INIT_CWMIN,8,3                 ## @INIT_CWMIN
	.comm	_AR_D_LCL_IFS_CWMIN,4,2         ## @AR_D_LCL_IFS_CWMIN
	.comm	_AR_D_LCL_IFS_CWMAX,4,2         ## @AR_D_LCL_IFS_CWMAX
	.comm	_AR_D_LCL_IFS_AIFS,4,2          ## @AR_D_LCL_IFS_AIFS
	.comm	_INIT_SSH_RETRY,8,3             ## @INIT_SSH_RETRY
	.comm	_AR_D_RETRY_LIMIT_STA_SH,4,2    ## @AR_D_RETRY_LIMIT_STA_SH
	.comm	_INIT_SLG_RETRY,8,3             ## @INIT_SLG_RETRY
	.comm	_AR_D_RETRY_LIMIT_STA_LG,4,2    ## @AR_D_RETRY_LIMIT_STA_LG
	.comm	_AR_D_RETRY_LIMIT_FR_SH,4,2     ## @AR_D_RETRY_LIMIT_FR_SH
	.comm	_AR_Q_MISC_DCU_EARLY_TERM_REQ,8,3 ## @AR_Q_MISC_DCU_EARLY_TERM_REQ
	.comm	_AR_D_MISC_CW_BKOFF_EN,4,2      ## @AR_D_MISC_CW_BKOFF_EN
	.comm	_AR_D_MISC_FRAG_WAIT_EN,4,2     ## @AR_D_MISC_FRAG_WAIT_EN
	.comm	_AR_Q_CBRCFG_INTERVAL,4,2       ## @AR_Q_CBRCFG_INTERVAL
	.comm	_AR_Q_CBRCFG_OVF_THRESH,4,2     ## @AR_Q_CBRCFG_OVF_THRESH
	.comm	_AR_Q_MISC_FSP_CBR,8,3          ## @AR_Q_MISC_FSP_CBR
	.comm	_AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN,8,3 ## @AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN
	.comm	_AR_Q_RDYTIMECFG_DURATION,4,2   ## @AR_Q_RDYTIMECFG_DURATION
	.comm	_AR_Q_RDYTIMECFG_EN,8,3         ## @AR_Q_RDYTIMECFG_EN
	.comm	_AR_D_CHNTIME_DUR,4,2           ## @AR_D_CHNTIME_DUR
	.comm	_AR_D_CHNTIME_EN,8,3            ## @AR_D_CHNTIME_EN
	.comm	_TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE,4,2 ## @TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE
	.comm	_AR_Q_MISC_RDYTIME_EXP_POLICY,8,3 ## @AR_Q_MISC_RDYTIME_EXP_POLICY
	.comm	_TXQ_FLAG_BACKOFF_DISABLE,4,2   ## @TXQ_FLAG_BACKOFF_DISABLE
	.comm	_AR_D_MISC_POST_FR_BKOFF_DIS,8,3 ## @AR_D_MISC_POST_FR_BKOFF_DIS
	.comm	_TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE,4,2 ## @TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE
	.comm	_AR_D_MISC_FRAG_BKOFF_EN,8,3    ## @AR_D_MISC_FRAG_BKOFF_EN
	.comm	_AR_Q_MISC_FSP_DBA_GATED,8,3    ## @AR_Q_MISC_FSP_DBA_GATED
	.comm	_AR_Q_MISC_BEACON_USE,8,3       ## @AR_Q_MISC_BEACON_USE
	.comm	_AR_Q_MISC_CBR_INCR_DIS1,8,3    ## @AR_Q_MISC_CBR_INCR_DIS1
	.comm	_AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL,8,3 ## @AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL
	.comm	_AR_D_MISC_ARB_LOCKOUT_CNTRL_S,8,3 ## @AR_D_MISC_ARB_LOCKOUT_CNTRL_S
	.comm	_AR_D_MISC_BEACON_USE,8,3       ## @AR_D_MISC_BEACON_USE
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_AR_Q_MISC_CBR_INCR_DIS0,8,3    ## @AR_Q_MISC_CBR_INCR_DIS0
	.comm	_ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS,4,2 ## @ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS
	.comm	_AR_D_MISC_ARB_LOCKOUT_CNTRL,4,2 ## @AR_D_MISC_ARB_LOCKOUT_CNTRL
	.comm	_AR_Q_DESC_CRCCHK,4,2           ## @AR_Q_DESC_CRCCHK
	.comm	_AR_Q_DESC_CRCCHK_EN,8,3        ## @AR_Q_DESC_CRCCHK_EN
	.comm	_TXQ_FLAG_TXINT_ENABLE,4,2      ## @TXQ_FLAG_TXINT_ENABLE
	.comm	_TXQ_FLAG_TXDESCINT_ENABLE,4,2  ## @TXQ_FLAG_TXDESCINT_ENABLE
	.comm	_TXQ_FLAG_TXEOLINT_ENABLE,4,2   ## @TXQ_FLAG_TXEOLINT_ENABLE
	.comm	_TXQ_FLAG_TXURNINT_ENABLE,4,2   ## @TXQ_FLAG_TXURNINT_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_resettxqueue          ; -- Begin function ath9k_hw_resettxqueue
	.p2align	2
_ath9k_hw_resettxqueue:                 ; @ath9k_hw_resettxqueue
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_ath9k_hw_common
	ldr	x24, [x20, #48]
	mov	w8, #80
	madd	x21, x19, x8, x24
Lloh0:
	adrp	x8, _ATH9K_TX_QUEUE_INACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_TX_QUEUE_INACTIVE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _QUEUE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x10]
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_ath_dbg
	b	LBB0_45
LBB0_2:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_ath_dbg
	mov	w8, #80
	madd	x8, x19, x8, x24
	ldr	x22, [x8, #8]
Lloh10:
	adrp	x8, _ATH9K_TXQ_USEDEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH9K_TXQ_USEDEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.3:
Lloh13:
	adrp	x8, _INIT_CWMIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INIT_CWMIN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.4:
	mov	w9, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w22, #1
	bfi	x22, x9, #1, #63
	mov	x9, x22
	cmp	x22, x8
	b.lo	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w22, #1
LBB0_7:
	mov	x0, x20
	bl	_ENABLE_REGWRITE_BUFFER
	mov	x0, x19
	bl	_AR_DLCL_IFS
	mov	x23, x0
Lloh16:
	adrp	x28, _AR_D_LCL_IFS_CWMIN@GOTPAGE
Lloh17:
	ldr	x28, [x28, _AR_D_LCL_IFS_CWMIN@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x22
	bl	_SM
	mov	x22, x0
	mov	w8, #80
	madd	x25, x19, x8, x24
	ldr	x0, [x25, #16]
Lloh18:
	adrp	x8, _AR_D_LCL_IFS_CWMAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_D_LCL_IFS_CWMAX@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_SM
	orr	x22, x0, x22
	ldr	x0, [x25, #24]!
Lloh21:
	adrp	x8, _AR_D_LCL_IFS_AIFS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_D_LCL_IFS_AIFS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_SM
	orr	x2, x22, x0
	mov	x0, x20
	mov	x1, x23
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_DRETRY_LIMIT
	mov	x22, x0
Lloh24:
	adrp	x8, _INIT_SSH_RETRY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INIT_SSH_RETRY@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
Lloh27:
	adrp	x8, _AR_D_RETRY_LIMIT_STA_SH@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR_D_RETRY_LIMIT_STA_SH@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_SM
	mov	x23, x0
Lloh30:
	adrp	x8, _INIT_SLG_RETRY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INIT_SLG_RETRY@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
Lloh33:
	adrp	x8, _AR_D_RETRY_LIMIT_STA_LG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_D_RETRY_LIMIT_STA_LG@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_SM
	orr	x23, x0, x23
	ldr	x0, [x25, #8]
Lloh36:
	adrp	x8, _AR_D_RETRY_LIMIT_FR_SH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR_D_RETRY_LIMIT_FR_SH@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_SM
	orr	x2, x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_QMISC
	mov	x1, x0
Lloh39:
	adrp	x8, _AR_Q_MISC_DCU_EARLY_TERM_REQ@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR_Q_MISC_DCU_EARLY_TERM_REQ@GOTPAGEOFF]
Lloh41:
	ldr	x2, [x8]
	mov	x0, x20
	bl	_REG_WRITE
	mov	x0, x20
	bl	_AR_SREV_9340
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_AR_SREV_9340_13_OR_LATER
	cbz	w0, LBB0_10
LBB0_9:
	mov	w22, #2
	b	LBB0_11
LBB0_10:
	mov	w22, #1
LBB0_11:
	mov	x0, x19
	bl	_AR_DMISC
	mov	x1, x0
Lloh42:
	adrp	x8, _AR_D_MISC_CW_BKOFF_EN@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR_D_MISC_CW_BKOFF_EN@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _AR_D_MISC_FRAG_WAIT_EN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AR_D_MISC_FRAG_WAIT_EN@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w8, w8, w22
	sxtw	x2, w8
	mov	x0, x20
	bl	_REG_WRITE
	mov	w8, #80
	madd	x23, x19, x8, x24
	ldr	w8, [x23, #40]!
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_AR_QCBRCFG
	mov	x22, x0
	ldrsw	x0, [x23]
Lloh48:
	adrp	x8, _AR_Q_CBRCFG_INTERVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AR_Q_CBRCFG_INTERVAL@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_SM
	mov	x23, x0
	mov	w8, #80
	madd	x26, x19, x8, x24
	ldr	x0, [x26, #48]
Lloh51:
	adrp	x8, _AR_Q_CBRCFG_OVF_THRESH@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AR_Q_CBRCFG_OVF_THRESH@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_SM
	orr	x2, x0, x23
	mov	x0, x20
	mov	x1, x22
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_QMISC
	mov	x1, x0
Lloh54:
	adrp	x8, _AR_Q_MISC_FSP_CBR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AR_Q_MISC_FSP_CBR@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	ldr	x9, [x26, #48]
Lloh57:
	adrp	x10, _AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN@GOTPAGE
Lloh58:
	ldr	x10, [x10, _AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN@GOTPAGEOFF]
Lloh59:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, xzr, x10, eq
	orr	x2, x9, x8
	mov	x0, x20
	bl	_REG_SET_BIT
LBB0_13:
	mov	w8, #80
	madd	x23, x19, x8, x24
	ldr	x8, [x23, #56]!
	cbz	x8, LBB0_16
; %bb.14:
	ldr	w8, [x21]
	cmp	w8, #130
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_AR_QRDYTIMECFG
	mov	x22, x0
	ldr	x0, [x23]
Lloh60:
	adrp	x8, _AR_Q_RDYTIMECFG_DURATION@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AR_Q_RDYTIMECFG_DURATION@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	bl	_SM
Lloh63:
	adrp	x8, _AR_Q_RDYTIMECFG_EN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _AR_Q_RDYTIMECFG_EN@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	orr	x2, x8, x0
	mov	x0, x20
	mov	x1, x22
	bl	_REG_WRITE
LBB0_16:
	mov	x0, x19
	bl	_AR_DCHNTIME
	mov	x22, x0
	mov	w8, #80
	madd	x26, x19, x8, x24
	ldr	x0, [x26, #64]
Lloh66:
	adrp	x8, _AR_D_CHNTIME_DUR@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AR_D_CHNTIME_DUR@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_SM
	ldr	x8, [x26, #64]
Lloh69:
	adrp	x9, _AR_D_CHNTIME_EN@GOTPAGE
Lloh70:
	ldr	x9, [x9, _AR_D_CHNTIME_EN@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	orr	x2, x8, x0
	mov	x0, x20
	mov	x1, x22
	bl	_REG_WRITE
	ldr	x8, [x26, #64]
	cbz	x8, LBB0_19
; %bb.17:
	mov	w8, #80
	madd	x8, x19, x8, x24
	ldr	w8, [x8, #72]
Lloh72:
	adrp	x9, _TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE@GOTPAGE
Lloh73:
	ldr	x9, [x9, _TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_AR_QMISC
	mov	x1, x0
Lloh75:
	adrp	x8, _AR_Q_MISC_RDYTIME_EXP_POLICY@GOTPAGE
Lloh76:
	ldr	x8, [x8, _AR_Q_MISC_RDYTIME_EXP_POLICY@GOTPAGEOFF]
Lloh77:
	ldr	x2, [x8]
	mov	x0, x20
	bl	_REG_SET_BIT
LBB0_19:
	mov	w8, #80
	madd	x26, x19, x8, x24
	ldr	w8, [x26, #72]!
Lloh78:
	adrp	x9, _TXQ_FLAG_BACKOFF_DISABLE@GOTPAGE
Lloh79:
	ldr	x9, [x9, _TXQ_FLAG_BACKOFF_DISABLE@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
Lloh81:
	adrp	x27, _AR_D_MISC_POST_FR_BKOFF_DIS@GOTPAGE
Lloh82:
	ldr	x27, [x27, _AR_D_MISC_POST_FR_BKOFF_DIS@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_AR_DMISC
	mov	x1, x0
	ldr	x2, [x27]
	mov	x0, x20
	bl	_REG_SET_BIT
LBB0_21:
	mov	x0, x20
	bl	_REGWRITE_BUFFER_FLUSH
	ldr	w8, [x26]
Lloh83:
	adrp	x9, _TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE@GOTPAGE
Lloh84:
	ldr	x9, [x9, _TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.22:
	mov	x0, x19
	bl	_AR_DMISC
	mov	x1, x0
Lloh86:
	adrp	x8, _AR_D_MISC_FRAG_BKOFF_EN@GOTPAGE
Lloh87:
	ldr	x8, [x8, _AR_D_MISC_FRAG_BKOFF_EN@GOTPAGEOFF]
Lloh88:
	ldr	x2, [x8]
	mov	x0, x20
	bl	_REG_SET_BIT
LBB0_23:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_32
; %bb.24:
Lloh89:
	adrp	x9, lJTI0_0@PAGE
Lloh90:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_25
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_25:
	mov	x0, x19
	bl	_AR_DMISC
	mov	x1, x0
	ldr	x2, [x27]
	b	LBB0_27
LBB0_26:
	mov	x0, x19
	bl	_AR_QMISC
	mov	x1, x0
Lloh91:
	adrp	x8, _AR_Q_MISC_CBR_INCR_DIS1@GOTPAGE
Lloh92:
	ldr	x8, [x8, _AR_Q_MISC_CBR_INCR_DIS1@GOTPAGEOFF]
Lloh93:
	ldr	x2, [x8]
LBB0_27:
	mov	x0, x20
	bl	_REG_SET_BIT
	b	LBB0_32
LBB0_28:
	mov	x0, x20
	bl	_ENABLE_REGWRITE_BUFFER
	mov	x0, x19
	bl	_AR_QMISC
	mov	x1, x0
Lloh94:
	adrp	x8, _AR_Q_MISC_FSP_DBA_GATED@GOTPAGE
Lloh95:
	ldr	x8, [x8, _AR_Q_MISC_FSP_DBA_GATED@GOTPAGEOFF]
Lloh96:
	ldr	x8, [x8]
Lloh97:
	adrp	x9, _AR_Q_MISC_CBR_INCR_DIS1@GOTPAGE
Lloh98:
	ldr	x9, [x9, _AR_Q_MISC_CBR_INCR_DIS1@GOTPAGEOFF]
Lloh99:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh100:
	adrp	x9, _AR_Q_MISC_CBR_INCR_DIS0@GOTPAGE
Lloh101:
	ldr	x9, [x9, _AR_Q_MISC_CBR_INCR_DIS0@GOTPAGEOFF]
Lloh102:
	ldr	x9, [x9]
	orr	x2, x8, x9
	mov	x0, x20
	bl	_REG_SET_BIT
	ldr	x8, [x23]
	ldp	x10, x9, [x20, #24]
	sub	x8, x8, x9
	add	x22, x8, x10
	mov	x0, x19
	bl	_AR_QRDYTIMECFG
	mov	x1, x0
Lloh103:
	adrp	x8, _AR_Q_RDYTIMECFG_EN@GOTPAGE
Lloh104:
	ldr	x8, [x8, _AR_Q_RDYTIMECFG_EN@GOTPAGEOFF]
Lloh105:
	ldr	x8, [x8]
	orr	x2, x8, x22, lsl #10
	mov	x0, x20
	bl	_REG_WRITE
	mov	x0, x19
	bl	_AR_DMISC
	mov	x1, x0
Lloh106:
	adrp	x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPAGEOFF]
Lloh108:
	ldr	x8, [x8]
Lloh109:
	adrp	x9, _AR_D_MISC_ARB_LOCKOUT_CNTRL_S@GOTPAGE
Lloh110:
	ldr	x9, [x9, _AR_D_MISC_ARB_LOCKOUT_CNTRL_S@GOTPAGEOFF]
Lloh111:
	ldr	x9, [x9]
	lsl	x2, x8, x9
	mov	x0, x20
	bl	_REG_SET_BIT
	mov	x0, x20
	bl	_REGWRITE_BUFFER_FLUSH
	b	LBB0_32
LBB0_29:
	mov	x0, x20
	bl	_ENABLE_REGWRITE_BUFFER
	mov	x0, x19
	bl	_AR_QMISC
	mov	x1, x0
Lloh112:
	adrp	x8, _AR_Q_MISC_FSP_DBA_GATED@GOTPAGE
Lloh113:
	ldr	x8, [x8, _AR_Q_MISC_FSP_DBA_GATED@GOTPAGEOFF]
Lloh114:
	ldr	x8, [x8]
Lloh115:
	adrp	x9, _AR_Q_MISC_BEACON_USE@GOTPAGE
Lloh116:
	ldr	x9, [x9, _AR_Q_MISC_BEACON_USE@GOTPAGEOFF]
Lloh117:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh118:
	adrp	x9, _AR_Q_MISC_CBR_INCR_DIS1@GOTPAGE
Lloh119:
	ldr	x9, [x9, _AR_Q_MISC_CBR_INCR_DIS1@GOTPAGEOFF]
Lloh120:
	ldr	x9, [x9]
	orr	x2, x8, x9
	mov	x0, x20
	bl	_REG_SET_BIT
	mov	x0, x19
	bl	_AR_DMISC
	mov	x1, x0
Lloh121:
	adrp	x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPAGE
Lloh122:
	ldr	x8, [x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPAGEOFF]
Lloh123:
	ldr	x8, [x8]
Lloh124:
	adrp	x9, _AR_D_MISC_ARB_LOCKOUT_CNTRL_S@GOTPAGE
Lloh125:
	ldr	x9, [x9, _AR_D_MISC_ARB_LOCKOUT_CNTRL_S@GOTPAGEOFF]
Lloh126:
	ldr	x9, [x9]
	lsl	x8, x8, x9
Lloh127:
	adrp	x9, _AR_D_MISC_BEACON_USE@GOTPAGE
Lloh128:
	ldr	x9, [x9, _AR_D_MISC_BEACON_USE@GOTPAGEOFF]
Lloh129:
	ldr	x9, [x9]
	orr	x8, x8, x9
	ldr	x9, [x27]
	orr	x2, x8, x9
	mov	x0, x20
	bl	_REG_SET_BIT
	mov	x0, x20
	bl	_REGWRITE_BUFFER_FLUSH
	mov	x0, x20
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_32
; %bb.30:
	ldr	w8, [x20, #40]
Lloh130:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh131:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh132:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_AR_DLCL_IFS
	mov	x22, x0
	ldr	w1, [x28]
	mov	x0, #0
	bl	_SM
	mov	x23, x0
Lloh133:
	adrp	x8, _AR_D_LCL_IFS_CWMAX@GOTPAGE
Lloh134:
	ldr	x8, [x8, _AR_D_LCL_IFS_CWMAX@GOTPAGEOFF]
Lloh135:
	ldr	w1, [x8]
	mov	x0, #0
	bl	_SM
	orr	x23, x0, x23
	ldr	x0, [x25]
Lloh136:
	adrp	x8, _AR_D_LCL_IFS_AIFS@GOTPAGE
Lloh137:
	ldr	x8, [x8, _AR_D_LCL_IFS_AIFS@GOTPAGEOFF]
Lloh138:
	ldr	w1, [x8]
	bl	_SM
	orr	x2, x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_REG_WRITE
LBB0_32:
	mov	w8, #80
	madd	x8, x19, x8, x24
	ldr	w8, [x8, #76]
Lloh139:
	adrp	x9, _ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS@GOTPAGE
Lloh140:
	ldr	x9, [x9, _ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS@GOTPAGEOFF]
Lloh141:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_AR_DMISC
	mov	x22, x0
Lloh142:
	adrp	x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPAGE
Lloh143:
	ldr	x8, [x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL@GOTPAGEOFF]
Lloh144:
	ldr	x0, [x8]
Lloh145:
	adrp	x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL@GOTPAGE
Lloh146:
	ldr	x8, [x8, _AR_D_MISC_ARB_LOCKOUT_CNTRL@GOTPAGEOFF]
Lloh147:
	ldr	w1, [x8]
	bl	_SM
	ldr	x8, [x27]
	orr	x2, x8, x0
	mov	x0, x20
	mov	x1, x22
	bl	_REG_SET_BIT
LBB0_34:
	mov	x0, x20
	bl	_AR_SREV_9300_20_OR_LATER
	cbz	x0, LBB0_36
; %bb.35:
Lloh148:
	adrp	x8, _AR_Q_DESC_CRCCHK@GOTPAGE
Lloh149:
	ldr	x8, [x8, _AR_Q_DESC_CRCCHK@GOTPAGEOFF]
Lloh150:
	ldr	w1, [x8]
Lloh151:
	adrp	x8, _AR_Q_DESC_CRCCHK_EN@GOTPAGE
Lloh152:
	ldr	x8, [x8, _AR_Q_DESC_CRCCHK_EN@GOTPAGEOFF]
Lloh153:
	ldr	x2, [x8]
	mov	x0, x20
	bl	_REG_WRITE
LBB0_36:
	mov	x0, x20
	mov	x1, x19
	bl	_ath9k_hw_clear_queue_interrupts
	ldr	w8, [x26]
Lloh154:
	adrp	x9, _TXQ_FLAG_TXINT_ENABLE@GOTPAGE
Lloh155:
	ldr	x9, [x9, _TXQ_FLAG_TXINT_ENABLE@GOTPAGEOFF]
Lloh156:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.37:
	mov	w9, #1
	lsl	w9, w9, w19
	ldr	d0, [x20]
	dup.2s	v1, w9
	orr.8b	v0, v0, v1
	str	d0, [x20]
LBB0_38:
Lloh157:
	adrp	x9, _TXQ_FLAG_TXDESCINT_ENABLE@GOTPAGE
Lloh158:
	ldr	x9, [x9, _TXQ_FLAG_TXDESCINT_ENABLE@GOTPAGEOFF]
Lloh159:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.39:
	mov	w9, #1
	lsl	w9, w9, w19
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	str	w9, [x20, #8]
LBB0_40:
Lloh160:
	adrp	x9, _TXQ_FLAG_TXEOLINT_ENABLE@GOTPAGE
Lloh161:
	ldr	x9, [x9, _TXQ_FLAG_TXEOLINT_ENABLE@GOTPAGEOFF]
Lloh162:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_42
; %bb.41:
	mov	w9, #1
	lsl	w9, w9, w19
	ldr	w10, [x20, #12]
	orr	w9, w10, w9
	str	w9, [x20, #12]
LBB0_42:
Lloh163:
	adrp	x9, _TXQ_FLAG_TXURNINT_ENABLE@GOTPAGE
Lloh164:
	ldr	x9, [x9, _TXQ_FLAG_TXURNINT_ENABLE@GOTPAGEOFF]
Lloh165:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.43:
	mov	w8, #1
	lsl	w8, w8, w19
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
LBB0_44:
	mov	x0, x20
	mov	x1, x21
	bl	_ath9k_hw_set_txq_interrupts
LBB0_45:
	mov	w0, #1
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_26-LBB0_25)>>2
	.byte	(LBB0_28-LBB0_25)>>2
	.byte	(LBB0_29-LBB0_25)>>2
                                        ; -- End function
	.comm	_ATH9K_TX_QUEUE_INACTIVE,4,2    ; @ATH9K_TX_QUEUE_INACTIVE
	.comm	_QUEUE,4,2                      ; @QUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reset TXQ, inactive queue: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Reset TX queue: %u\n"

	.comm	_ATH9K_TXQ_USEDEFAULT,8,3       ; @ATH9K_TXQ_USEDEFAULT
	.comm	_INIT_CWMIN,8,3                 ; @INIT_CWMIN
	.comm	_AR_D_LCL_IFS_CWMIN,4,2         ; @AR_D_LCL_IFS_CWMIN
	.comm	_AR_D_LCL_IFS_CWMAX,4,2         ; @AR_D_LCL_IFS_CWMAX
	.comm	_AR_D_LCL_IFS_AIFS,4,2          ; @AR_D_LCL_IFS_AIFS
	.comm	_INIT_SSH_RETRY,8,3             ; @INIT_SSH_RETRY
	.comm	_AR_D_RETRY_LIMIT_STA_SH,4,2    ; @AR_D_RETRY_LIMIT_STA_SH
	.comm	_INIT_SLG_RETRY,8,3             ; @INIT_SLG_RETRY
	.comm	_AR_D_RETRY_LIMIT_STA_LG,4,2    ; @AR_D_RETRY_LIMIT_STA_LG
	.comm	_AR_D_RETRY_LIMIT_FR_SH,4,2     ; @AR_D_RETRY_LIMIT_FR_SH
	.comm	_AR_Q_MISC_DCU_EARLY_TERM_REQ,8,3 ; @AR_Q_MISC_DCU_EARLY_TERM_REQ
	.comm	_AR_D_MISC_CW_BKOFF_EN,4,2      ; @AR_D_MISC_CW_BKOFF_EN
	.comm	_AR_D_MISC_FRAG_WAIT_EN,4,2     ; @AR_D_MISC_FRAG_WAIT_EN
	.comm	_AR_Q_CBRCFG_INTERVAL,4,2       ; @AR_Q_CBRCFG_INTERVAL
	.comm	_AR_Q_CBRCFG_OVF_THRESH,4,2     ; @AR_Q_CBRCFG_OVF_THRESH
	.comm	_AR_Q_MISC_FSP_CBR,8,3          ; @AR_Q_MISC_FSP_CBR
	.comm	_AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN,8,3 ; @AR_Q_MISC_CBR_EXP_CNTR_LIMIT_EN
	.comm	_AR_Q_RDYTIMECFG_DURATION,4,2   ; @AR_Q_RDYTIMECFG_DURATION
	.comm	_AR_Q_RDYTIMECFG_EN,8,3         ; @AR_Q_RDYTIMECFG_EN
	.comm	_AR_D_CHNTIME_DUR,4,2           ; @AR_D_CHNTIME_DUR
	.comm	_AR_D_CHNTIME_EN,8,3            ; @AR_D_CHNTIME_EN
	.comm	_TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE,4,2 ; @TXQ_FLAG_RDYTIME_EXP_POLICY_ENABLE
	.comm	_AR_Q_MISC_RDYTIME_EXP_POLICY,8,3 ; @AR_Q_MISC_RDYTIME_EXP_POLICY
	.comm	_TXQ_FLAG_BACKOFF_DISABLE,4,2   ; @TXQ_FLAG_BACKOFF_DISABLE
	.comm	_AR_D_MISC_POST_FR_BKOFF_DIS,8,3 ; @AR_D_MISC_POST_FR_BKOFF_DIS
	.comm	_TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE,4,2 ; @TXQ_FLAG_FRAG_BURST_BACKOFF_ENABLE
	.comm	_AR_D_MISC_FRAG_BKOFF_EN,8,3    ; @AR_D_MISC_FRAG_BKOFF_EN
	.comm	_AR_Q_MISC_FSP_DBA_GATED,8,3    ; @AR_Q_MISC_FSP_DBA_GATED
	.comm	_AR_Q_MISC_BEACON_USE,8,3       ; @AR_Q_MISC_BEACON_USE
	.comm	_AR_Q_MISC_CBR_INCR_DIS1,8,3    ; @AR_Q_MISC_CBR_INCR_DIS1
	.comm	_AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL,8,3 ; @AR_D_MISC_ARB_LOCKOUT_CNTRL_GLOBAL
	.comm	_AR_D_MISC_ARB_LOCKOUT_CNTRL_S,8,3 ; @AR_D_MISC_ARB_LOCKOUT_CNTRL_S
	.comm	_AR_D_MISC_BEACON_USE,8,3       ; @AR_D_MISC_BEACON_USE
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_AR_Q_MISC_CBR_INCR_DIS0,8,3    ; @AR_Q_MISC_CBR_INCR_DIS0
	.comm	_ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS,4,2 ; @ATH9K_TXQ_USE_LOCKOUT_BKOFF_DIS
	.comm	_AR_D_MISC_ARB_LOCKOUT_CNTRL,4,2 ; @AR_D_MISC_ARB_LOCKOUT_CNTRL
	.comm	_AR_Q_DESC_CRCCHK,4,2           ; @AR_Q_DESC_CRCCHK
	.comm	_AR_Q_DESC_CRCCHK_EN,8,3        ; @AR_Q_DESC_CRCCHK_EN
	.comm	_TXQ_FLAG_TXINT_ENABLE,4,2      ; @TXQ_FLAG_TXINT_ENABLE
	.comm	_TXQ_FLAG_TXDESCINT_ENABLE,4,2  ; @TXQ_FLAG_TXDESCINT_ENABLE
	.comm	_TXQ_FLAG_TXEOLINT_ENABLE,4,2   ; @TXQ_FLAG_TXEOLINT_ENABLE
	.comm	_TXQ_FLAG_TXURNINT_ENABLE,4,2   ; @TXQ_FLAG_TXURNINT_ENABLE
.subsections_via_symbols
