	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_txq_setup            ## -- Begin function ath9k_htc_txq_setup
	.p2align	4, 0x90
_ath9k_htc_txq_setup:                   ## @ath9k_htc_txq_setup
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_ath9k_hw_common
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r15
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r13d, %edi
	callq	_ATH9K_HTC_INIT_TXQ
	movq	8(%rbx), %rdi
	movq	_ATH9K_TX_QUEUE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ath9k_hw_setuptxqueue
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	movq	(%rbx), %rdi
	cmpl	%eax, %r15d
	jge	LBB0_2
## %bb.3:
	movslq	%r13d, %rax
	movl	%r15d, (%rdi,%rax,4)
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_2:
	callq	_ARRAY_SIZE
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_ath_err
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ath9k_hw_releasetxqueue
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_TX_QUEUE_DATA,4,2        ## @ATH9K_TX_QUEUE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qnum %u out of range, max %zu!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_htc_txq_setup            ; -- Begin function ath9k_htc_txq_setup
	.p2align	2
_ath9k_htc_txq_setup:                   ; @ath9k_htc_txq_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_ath9k_hw_common
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x21
	bl	_ATH9K_HTC_INIT_TXQ
	ldr	x0, [x22, #8]
Lloh0:
	adrp	x8, _ATH9K_TX_QUEUE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_TX_QUEUE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ath9k_hw_setuptxqueue
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	mov	x8, x0
	ldr	x0, [x22]
	cmp	w23, w8
	b.ge	LBB0_3
; %bb.2:
	str	w23, [x0, w21, sxtw #2]
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_ath_err
	mov	x0, x19
	mov	x1, x23
	bl	_ath9k_hw_releasetxqueue
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_TX_QUEUE_DATA,4,2        ; @ATH9K_TX_QUEUE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qnum %u out of range, max %zu!\n"

.subsections_via_symbols
