	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_txq_setup
_ath5k_txq_setup:                       ## @ath5k_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%edx, -56(%rbp)
	movq	_AR5K_TUNE_CWMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_AR5K_TUNE_CWMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_AR5K_TUNE_AIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_AR5K_TXQ_FLAG_TXEOLINT_ENABLE@GOTPCREL(%rip), %rax
	movq	_AR5K_TXQ_FLAG_TXDESCINT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	leaq	-56(%rbp), %rdx
	callq	_ath5k_hw_setup_tx_queue
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rbx
	movl	%eax, %ecx
	imulq	$56, %rcx, %r15
	cmpl	$0, (%rbx,%r15)
	jne	LBB0_4
## %bb.3:
	leaq	(%rbx,%r15), %r12
	movl	%eax, 4(%rbx,%r15)
	movq	$0, 48(%rbx,%r15)
	leaq	(%rbx,%r15), %rdi
	addq	$44, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%rbx,%r15), %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movl	$1, (%r12)
	movq	$0, 32(%rbx,%r15)
	movq	_ATH5K_TXQ_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx,%r15)
	movl	$0, 8(%rbx,%r15)
	movq	$0, 16(%rbx,%r15)
	movq	(%r14), %rbx
LBB0_4:
	addq	%r15, %rbx
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_TUNE_CWMAX,4,2            ## @AR5K_TUNE_CWMAX
	.comm	_AR5K_TUNE_CWMIN,4,2            ## @AR5K_TUNE_CWMIN
	.comm	_AR5K_TUNE_AIFS,4,2             ## @AR5K_TUNE_AIFS
	.comm	_AR5K_TXQ_FLAG_TXEOLINT_ENABLE,4,2 ## @AR5K_TXQ_FLAG_TXEOLINT_ENABLE
	.comm	_AR5K_TXQ_FLAG_TXDESCINT_ENABLE,4,2 ## @AR5K_TXQ_FLAG_TXDESCINT_ENABLE
	.comm	_ATH5K_TXQ_LEN_MAX,4,2          ## @ATH5K_TXQ_LEN_MAX
	.no_dead_strip	_ath5k_txq_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_txq_setup
_ath5k_txq_setup:                       ; @ath5k_txq_setup
	.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	x19, x0
Lloh0:
	adrp	x8, _AR5K_TUNE_CWMAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_TUNE_CWMAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AR5K_TUNE_CWMIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_TUNE_CWMIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AR5K_TUNE_AIFS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AR5K_TUNE_AIFS@GOTPAGEOFF]
	stp	w8, w9, [sp, #16]
Lloh8:
	ldr	w8, [x10]
	str	w8, [sp, #24]
Lloh9:
	adrp	x8, _AR5K_TXQ_FLAG_TXEOLINT_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_TXQ_FLAG_TXEOLINT_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _AR5K_TXQ_FLAG_TXDESCINT_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AR5K_TXQ_FLAG_TXDESCINT_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w2, w8, [sp, #8]
	add	x2, sp, #8
	bl	_ath5k_hw_setup_tx_queue
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	mov	w20, w0
	mov	w9, #56
	umaddl	x21, w0, w9, x8
	ldr	w9, [x21]
	cbnz	w9, LBB0_3
; %bb.2:
	mov	w9, #56
	madd	x22, x20, x9, x8
	str	w0, [x22, #4]
	str	xzr, [x22, #48]
	add	x0, x22, #44
	bl	_INIT_LIST_HEAD
	add	x0, x22, #40
	bl	_spin_lock_init
	mov	w8, #1
	str	w8, [x21]
Lloh15:
	adrp	x8, _ATH5K_TXQ_LEN_MAX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH5K_TXQ_LEN_MAX@GOTPAGEOFF]
	str	xzr, [x22, #32]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #24]
	str	wzr, [x22, #8]
	str	xzr, [x22, #16]
	ldr	x8, [x19]
LBB0_3:
	mov	w9, #56
	madd	x0, x20, x9, x8
	b	LBB0_5
LBB0_4:
	bl	_ERR_PTR
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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_TUNE_CWMAX,4,2            ; @AR5K_TUNE_CWMAX
	.comm	_AR5K_TUNE_CWMIN,4,2            ; @AR5K_TUNE_CWMIN
	.comm	_AR5K_TUNE_AIFS,4,2             ; @AR5K_TUNE_AIFS
	.comm	_AR5K_TXQ_FLAG_TXEOLINT_ENABLE,4,2 ; @AR5K_TXQ_FLAG_TXEOLINT_ENABLE
	.comm	_AR5K_TXQ_FLAG_TXDESCINT_ENABLE,4,2 ; @AR5K_TXQ_FLAG_TXDESCINT_ENABLE
	.comm	_ATH5K_TXQ_LEN_MAX,4,2          ; @ATH5K_TXQ_LEN_MAX
	.no_dead_strip	_ath5k_txq_setup
.subsections_via_symbols
