	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_setuptxqueue          ## -- Begin function ath9k_hw_setuptxqueue
	.p2align	4, 0x90
_ath9k_hw_setuptxqueue:                 ## @ath9k_hw_setuptxqueue
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_ath9k_hw_common
	movq	%rax, %r13
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_ATH9K_NUM_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$-3, %ebx
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	jmp	LBB0_6
LBB0_4:
	movl	(%r14), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_ATH9K_NUM_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$-2, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_ATH9K_NUM_TX_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	decl	%ebx
LBB0_8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_QUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_ath_dbg
	movq	(%r12), %r14
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %r15
	movl	4(%r14,%r15,4), %eax
	movq	_ATH9K_TX_QUEUE_INACTIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.10:
	leaq	(%r14,%r15,4), %r13
	addq	$4, %r13
	leaq	(%r14,%r15,4), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r13)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %eax
	movl	%eax, 8(%r14,%r15,4)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_set_txq_props
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
LBB0_6:
	callq	_ath_err
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %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_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_ATH9K_NUM_TX_QUEUES,4,2        ## @ATH9K_NUM_TX_QUEUES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid TX queue type: %u\n"

	.comm	_QUEUE,4,2                      ## @QUEUE
L_.str.1:                               ## @.str.1
	.asciz	"Setup TX queue: %u\n"

	.comm	_ATH9K_TX_QUEUE_INACTIVE,4,2    ## @ATH9K_TX_QUEUE_INACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"TX queue: %u already active\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_setuptxqueue          ; -- Begin function ath9k_hw_setuptxqueue
	.p2align	2
_ath9k_hw_setuptxqueue:                 ; @ath9k_hw_setuptxqueue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ath9k_hw_common
	mov	x23, x0
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
	mov	w22, #1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _ATH9K_NUM_TX_QUEUES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH9K_NUM_TX_QUEUES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w22, w8, #3
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	b	LBB0_10
LBB0_4:
	ldr	w22, [x19]
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _ATH9K_NUM_TX_QUEUES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH9K_NUM_TX_QUEUES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	sub	w22, w8, #2
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ATH9K_NUM_TX_QUEUES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH9K_NUM_TX_QUEUES@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	sub	w22, w8, #1
LBB0_7:
Lloh13:
	adrp	x8, _QUEUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QUEUE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x3, x22
	bl	_ath_dbg
	ldr	x8, [x21]
	mov	w9, #12
	smaddl	x24, w22, w9, x8
	ldr	w9, [x24, #4]!
Lloh18:
	adrp	x10, _ATH9K_TX_QUEUE_INACTIVE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ATH9K_TX_QUEUE_INACTIVE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.8:
	sxtw	x9, w22
	mov	w10, #12
	madd	x23, x9, x10, x8
	mov	x0, x23
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	str	w20, [x24]
	ldr	w8, [x19, #8]
	str	w8, [x23, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_ath9k_hw_set_txq_props
	b	LBB0_11
LBB0_9:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x2, x22
LBB0_10:
	bl	_ath_err
	mov	w22, #-1
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ATH9K_NUM_TX_QUEUES,4,2        ; @ATH9K_NUM_TX_QUEUES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid TX queue type: %u\n"

	.comm	_QUEUE,4,2                      ; @QUEUE
l_.str.1:                               ; @.str.1
	.asciz	"Setup TX queue: %u\n"

	.comm	_ATH9K_TX_QUEUE_INACTIVE,4,2    ; @ATH9K_TX_QUEUE_INACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"TX queue: %u already active\n"

.subsections_via_symbols
