	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_init_queues
_ath9k_init_queues:                     ## @ath9k_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	callq	_ath9k_hw_beaconq_setup
	movl	%eax, 24(%r14)
	movq	_ATH9K_TX_QUEUE_CAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath_txq_setup
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	callq	_ath_cabq_update
	movq	_ATH9K_TX_QUEUE_UAPSD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ath_txq_setup
	movq	%rax, 8(%r14)
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ATH9K_TX_QUEUE_DATA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath_txq_setup
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%ebx, (%rax)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_TX_QUEUE_CAB,4,2         ## @ATH9K_TX_QUEUE_CAB
	.comm	_ATH9K_TX_QUEUE_UAPSD,4,2       ## @ATH9K_TX_QUEUE_UAPSD
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_ATH9K_TX_QUEUE_DATA,4,2        ## @ATH9K_TX_QUEUE_DATA
	.no_dead_strip	_ath9k_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_init_queues
_ath9k_init_queues:                     ; @ath9k_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
	ldr	w0, [x0, #32]
	bl	_ath9k_hw_beaconq_setup
	str	w0, [x19, #24]
Lloh0:
	adrp	x8, _ATH9K_TX_QUEUE_CAB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH9K_TX_QUEUE_CAB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ath_txq_setup
	str	x0, [x19, #16]
	mov	x0, x19
	bl	_ath_cabq_update
Lloh3:
	adrp	x8, _ATH9K_TX_QUEUE_UAPSD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH9K_TX_QUEUE_UAPSD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ath_txq_setup
	str	x0, [x19, #8]
Lloh6:
	adrp	x21, _IEEE80211_NUM_ACS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
Lloh8:
	adrp	x22, _ATH9K_TX_QUEUE_DATA@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ATH9K_TX_QUEUE_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_ath_txq_setup
	ldr	x8, [x19]
	lsl	x9, x20, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x8, [x8, x9]
	str	w20, [x8]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	mov	w0, #0
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_TX_QUEUE_CAB,4,2         ; @ATH9K_TX_QUEUE_CAB
	.comm	_ATH9K_TX_QUEUE_UAPSD,4,2       ; @ATH9K_TX_QUEUE_UAPSD
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_ATH9K_TX_QUEUE_DATA,4,2        ; @ATH9K_TX_QUEUE_DATA
	.no_dead_strip	_ath9k_init_queues
.subsections_via_symbols
