	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_conf_tx                 ## -- Begin function rt2800_conf_tx
	.p2align	4, 0x90
_rt2800_conf_tx:                        ## @rt2800_conf_tx
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	(%rdi), %r14
	callq	_rt2x00mac_conf_tx
	cmpl	$3, %ebx
	jg	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	callq	_rt2x00queue_get_tx_queue
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WMM_TXOP0_CFG@GOTPCREL(%rip), %rax
	leal	(,%rbx,4), %r13d
	movq	%r14, %rdi
	movl	%r13d, %r14d
	andl	$8, %r14d
	addq	(%rax), %r14
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	shll	$4, %r12d
	andl	$16, %r12d
	movl	$65535, %r15d                   ## imm = 0xFFFF
	movl	%r12d, %ecx
	shll	%cl, %r15d
	movq	%rdi, %rbx
	movq	%r14, %rsi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	shlq	$32, %r15
	orq	%r15, %r12
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%rbx, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rt2800_register_write
	movl	$15, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movq	_WMM_AIFSN_CFG@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r12, %rdi
	movq	%r12, %r14
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %edx
	shlq	$32, %rbx
	orq	%rbx, %r13
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_rt2x00_set_field32
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rt2800_register_write
	movq	_WMM_CWMIN_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movl	4(%r12), %edx
	movq	%r12, %r15
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rt2x00_set_field32
	movq	(%rbx), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rt2800_register_write
	movq	_WMM_CWMAX_CFG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movl	(%r15), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rt2x00_set_field32
	movq	(%rbx), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rt2800_register_write
	movq	_EDCA_AC0_CFG@GOTPCREL(%rip), %rax
	movslq	-72(%rbp), %rbx                 ## 4-byte Folded Reload
	shlq	$3, %rbx
	addq	(%rax), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rt2800_register_read
	movq	%rax, -48(%rbp)
	movl	12(%r15), %edx
	movq	_EDCA_AC0_CFG_TX_OP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movl	8(%r15), %edx
	movq	_EDCA_AC0_CFG_AIFSN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movl	4(%r15), %edx
	movq	_EDCA_AC0_CFG_CWMIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movl	(%r15), %edx
	movq	_EDCA_AC0_CFG_CWMAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rt2800_register_write
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMM_TXOP0_CFG,8,3              ## @WMM_TXOP0_CFG
	.comm	_WMM_AIFSN_CFG,8,3              ## @WMM_AIFSN_CFG
	.comm	_WMM_CWMIN_CFG,8,3              ## @WMM_CWMIN_CFG
	.comm	_WMM_CWMAX_CFG,8,3              ## @WMM_CWMAX_CFG
	.comm	_EDCA_AC0_CFG,8,3               ## @EDCA_AC0_CFG
	.comm	_EDCA_AC0_CFG_TX_OP,8,2         ## @EDCA_AC0_CFG_TX_OP
	.comm	_EDCA_AC0_CFG_AIFSN,8,2         ## @EDCA_AC0_CFG_AIFSN
	.comm	_EDCA_AC0_CFG_CWMIN,8,2         ## @EDCA_AC0_CFG_CWMIN
	.comm	_EDCA_AC0_CFG_CWMAX,8,2         ## @EDCA_AC0_CFG_CWMAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800_conf_tx                 ; -- Begin function rt2800_conf_tx
	.p2align	2
_rt2800_conf_tx:                        ; @rt2800_conf_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	ldr	x19, [x0]
	bl	_rt2x00mac_conf_tx
	mov	x20, x0
	cmp	w22, #3
	b.gt	LBB0_3
; %bb.1:
	cbnz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_rt2x00queue_get_tx_queue
	mov	x21, x0
Lloh0:
	adrp	x8, _WMM_TXOP0_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMM_TXOP0_CFG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w23, w22, #2
	and	w9, w23, #0x8
	add	x24, x8, x9
	ubfiz	w25, w22, #4, #1
	mov	w8, #65535
	lsl	w26, w8, w25
	mov	x0, x19
	mov	x1, x24
	bl	_rt2800_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #12]
	bfi	x25, x26, #32, #32
	add	x0, sp, #8
	mov	x1, x25
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x24
	bl	_rt2800_register_write
	mov	w8, #15
	lsl	w24, w8, w23
Lloh3:
	adrp	x25, _WMM_AIFSN_CFG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _WMM_AIFSN_CFG@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #8]
	bfi	x23, x24, #32, #32
	add	x0, sp, #8
	mov	x1, x23
	bl	_rt2x00_set_field32
	ldr	x1, [x25]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh5:
	adrp	x24, _WMM_CWMIN_CFG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _WMM_CWMIN_CFG@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #4]
	add	x0, sp, #8
	mov	x1, x23
	bl	_rt2x00_set_field32
	ldr	x1, [x24]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh7:
	adrp	x24, _WMM_CWMAX_CFG@GOTPAGE
Lloh8:
	ldr	x24, [x24, _WMM_CWMAX_CFG@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	bl	_rt2800_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21]
	add	x0, sp, #8
	mov	x1, x23
	bl	_rt2x00_set_field32
	ldr	x1, [x24]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
Lloh9:
	adrp	x8, _EDCA_AC0_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDCA_AC0_CFG@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x22, x8, w22, sxtw #3
	mov	x0, x19
	mov	x1, x22
	bl	_rt2800_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #12]
Lloh12:
	adrp	x8, _EDCA_AC0_CFG_TX_OP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EDCA_AC0_CFG_TX_OP@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	ldr	w2, [x21, #8]
Lloh15:
	adrp	x8, _EDCA_AC0_CFG_AIFSN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EDCA_AC0_CFG_AIFSN@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	ldr	w2, [x21, #4]
Lloh18:
	adrp	x8, _EDCA_AC0_CFG_CWMIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EDCA_AC0_CFG_CWMIN@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	ldr	w2, [x21]
Lloh21:
	adrp	x8, _EDCA_AC0_CFG_CWMAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EDCA_AC0_CFG_CWMAX@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_rt2800_register_write
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WMM_TXOP0_CFG,8,3              ; @WMM_TXOP0_CFG
	.comm	_WMM_AIFSN_CFG,8,3              ; @WMM_AIFSN_CFG
	.comm	_WMM_CWMIN_CFG,8,3              ; @WMM_CWMIN_CFG
	.comm	_WMM_CWMAX_CFG,8,3              ; @WMM_CWMAX_CFG
	.comm	_EDCA_AC0_CFG,8,3               ; @EDCA_AC0_CFG
	.comm	_EDCA_AC0_CFG_TX_OP,8,2         ; @EDCA_AC0_CFG_TX_OP
	.comm	_EDCA_AC0_CFG_AIFSN,8,2         ; @EDCA_AC0_CFG_AIFSN
	.comm	_EDCA_AC0_CFG_CWMIN,8,2         ; @EDCA_AC0_CFG_CWMIN
	.comm	_EDCA_AC0_CFG_CWMAX,8,2         ; @EDCA_AC0_CFG_CWMAX
.subsections_via_symbols
