	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_htc_txq_update             ## -- Begin function ath_htc_txq_update
	.p2align	4, 0x90
_ath_htc_txq_update:                    ## @ath_htc_txq_update
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	leaq	-56(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_ath9k_hw_get_txq_props
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, -56(%rbp)
	movups	4(%r15), %xmm0
	movups	%xmm0, -52(%rbp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_ath9k_hw_set_txq_props
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r14d, %esi
	callq	_ath9k_hw_resettxqueue
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	callq	_ath9k_hw_common
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_ath_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to update hardware queue %u!\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath_htc_txq_update             ; -- Begin function ath_htc_txq_update
	.p2align	2
_ath_htc_txq_update:                    ; @ath_htc_txq_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	ldr	x20, [x0]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ath9k_hw_get_txq_props
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [sp, #8]
	ldur	q0, [x21, #4]
	stur	q0, [sp, #12]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_ath9k_hw_set_txq_props
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_ath9k_hw_resettxqueue
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ath9k_hw_common
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_ath_err
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to update hardware queue %u!\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
