	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_init_queues
_ath9k_hw_init_queues:                  ## @ath9k_hw_init_queues
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ENABLE_REGWRITE_BUFFER
	movq	_AR_NUM_DCU@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AR_DQCUMASK
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_REG_WRITE
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_REGWRITE_BUFFER_FLUSH
	movq	$0, (%r14)
	movq	_ATH9K_NUM_TX_QUEUES@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ath9k_hw_resettxqueue
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_NUM_DCU,4,2                 ## @AR_NUM_DCU
	.comm	_ATH9K_NUM_TX_QUEUES,4,2        ## @ATH9K_NUM_TX_QUEUES
	.no_dead_strip	_ath9k_hw_init_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_init_queues
_ath9k_hw_init_queues:                  ; @ath9k_hw_init_queues
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_ENABLE_REGWRITE_BUFFER
Lloh0:
	adrp	x21, _AR_NUM_DCU@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR_NUM_DCU@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
	mov	w22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AR_DQCUMASK
	mov	x1, x0
	lsl	w2, w22, w20
	mov	x0, x19
	bl	_REG_WRITE
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_REGWRITE_BUFFER_FLUSH
	str	xzr, [x19]
Lloh2:
	adrp	x21, _ATH9K_NUM_TX_QUEUES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ATH9K_NUM_TX_QUEUES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ath9k_hw_resettxqueue
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.lt	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_NUM_DCU,4,2                 ; @AR_NUM_DCU
	.comm	_ATH9K_NUM_TX_QUEUES,4,2        ; @ATH9K_NUM_TX_QUEUES
	.no_dead_strip	_ath9k_hw_init_queues
.subsections_via_symbols
