	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_setup_tx_queue        ## -- Begin function ath5k_hw_setup_tx_queue
	.p2align	4, 0x90
_ath5k_hw_setup_tx_queue:               ## @ath5k_hw_setup_tx_queue
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	cmpl	$2, 16(%rdi)
	jne	LBB0_3
## %bb.1:
	leal	-129(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.8:
	cltq
	leaq	l_switch.table.ath5k_hw_setup_tx_queue(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_9
LBB0_3:
	leal	-128(%r15), %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.4:
	movq	_AR5K_TX_QUEUE_ID_UAPSD@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	%r14, %rax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_7:
	movq	_AR5K_TX_QUEUE_ID_CAB@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_AR5K_TX_QUEUE_ID_BEACON@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rdi
	addq	8(%r12), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%r12), %rax
	movl	%r15d, (%rax,%rbx,4)
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movl	%r15d, 4(%r14)
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_ath5k_hw_set_tx_queueprops
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_AR5K_Q_ENABLE_BITS
	movl	%ebx, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_AR5K_TX_QUEUE_ID_NOQCU_DATA,4,2 ## @AR5K_TX_QUEUE_ID_NOQCU_DATA
	.comm	_AR5K_TX_QUEUE_ID_NOQCU_BEACON,4,2 ## @AR5K_TX_QUEUE_ID_NOQCU_BEACON
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AR5K_TX_QUEUE_ID_UAPSD,4,2     ## @AR5K_TX_QUEUE_ID_UAPSD
	.comm	_AR5K_TX_QUEUE_ID_BEACON,4,2    ## @AR5K_TX_QUEUE_ID_BEACON
	.comm	_AR5K_TX_QUEUE_ID_CAB,4,2       ## @AR5K_TX_QUEUE_ID_CAB
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ath5k_hw_setup_tx_queue
l_switch.table.ath5k_hw_setup_tx_queue:
	.quad	_AR5K_TX_QUEUE_ID_NOQCU_DATA
	.quad	_AR5K_TX_QUEUE_ID_NOQCU_BEACON
	.quad	_AR5K_TX_QUEUE_ID_NOQCU_BEACON

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_setup_tx_queue        ; -- Begin function ath5k_hw_setup_tx_queue
	.p2align	2
_ath5k_hw_setup_tx_queue:               ; @ath5k_hw_setup_tx_queue
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0, #16]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.1:
	sub	w8, w21, #129
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.ath5k_hw_setup_tx_queue@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ath5k_hw_setup_tx_queue@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_9
LBB0_3:
	sub	w9, w21, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _AR5K_TX_QUEUE_ID_UAPSD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_TX_QUEUE_ID_UAPSD@GOTPAGEOFF]
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	mov	x8, x20
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _AR5K_TX_QUEUE_ID_CAB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR5K_TX_QUEUE_ID_CAB@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _AR5K_TX_QUEUE_ID_BEACON@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR5K_TX_QUEUE_ID_BEACON@GOTPAGEOFF]
LBB0_9:
	ldr	w22, [x8]
	ldr	x8, [x19, #8]
	lsl	x23, x22, #2
	add	x0, x8, x23
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19, #8]
	str	w21, [x8, x23]
	cbz	x20, LBB0_11
; %bb.10:
	str	w21, [x20, #4]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_ath5k_hw_set_tx_queueprops
	cbnz	w0, LBB0_12
LBB0_11:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_AR5K_Q_ENABLE_BITS
	mov	x0, x22
LBB0_12:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_AR5K_TX_QUEUE_ID_NOQCU_DATA,4,2 ; @AR5K_TX_QUEUE_ID_NOQCU_DATA
	.comm	_AR5K_TX_QUEUE_ID_NOQCU_BEACON,4,2 ; @AR5K_TX_QUEUE_ID_NOQCU_BEACON
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AR5K_TX_QUEUE_ID_UAPSD,4,2     ; @AR5K_TX_QUEUE_ID_UAPSD
	.comm	_AR5K_TX_QUEUE_ID_BEACON,4,2    ; @AR5K_TX_QUEUE_ID_BEACON
	.comm	_AR5K_TX_QUEUE_ID_CAB,4,2       ; @AR5K_TX_QUEUE_ID_CAB
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ath5k_hw_setup_tx_queue
l_switch.table.ath5k_hw_setup_tx_queue:
	.quad	_AR5K_TX_QUEUE_ID_NOQCU_DATA
	.quad	_AR5K_TX_QUEUE_ID_NOQCU_BEACON
	.quad	_AR5K_TX_QUEUE_ID_NOQCU_BEACON

.subsections_via_symbols
