	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt73usb_conf_tx
_rt73usb_conf_tx:                       ## @rt73usb_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, %r13d
	movq	(%rdi), %r14
	callq	_rt2x00mac_conf_tx
	cmpl	$3, %r13d
	jg	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	callq	_rt2x00queue_get_tx_queue
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_AC_TXOP_CSR0@GOTPCREL(%rip), %rax
	leal	(,%r13,4), %r12d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$8, %r12d
	addq	(%rax), %r12
	shll	$4, %r13d
	andl	$16, %r13d
	movl	$65535, %r15d                   ## imm = 0xFFFF
	movl	%r13d, %ecx
	shll	%cl, %r15d
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rt2x00usb_register_read
	movq	%rax, -48(%rbp)
	movl	12(%rbx), %edx
	shlq	$32, %r15
	orq	%r15, %r13
	leaq	-48(%rbp), %rdi
	movq	%r13, %rsi
	callq	_rt2x00_set_field32
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rt2x00usb_register_write
	movl	$15, %ebx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movq	_AIFSN_CSR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_rt2x00usb_register_read
	movq	%rax, -48(%rbp)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %edx
	shlq	$32, %rbx
	movq	%r13, %rsi
	orq	%rbx, %rsi
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%rsi, %rbx
	callq	_rt2x00_set_field32
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rt2x00usb_register_write
	movq	_CWMIN_CSR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_rt2x00usb_register_read
	movq	%rax, -48(%rbp)
	movl	4(%r12), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_rt2x00_set_field32
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rt2x00usb_register_write
	movq	_CWMAX_CSR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_rt2x00usb_register_read
	movq	%rax, -48(%rbp)
	movl	(%r12), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_rt2x00_set_field32
	movq	(%r15), %rsi
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rt2x00usb_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	_AC_TXOP_CSR0,8,3               ## @AC_TXOP_CSR0
	.comm	_AIFSN_CSR,8,3                  ## @AIFSN_CSR
	.comm	_CWMIN_CSR,8,3                  ## @CWMIN_CSR
	.comm	_CWMAX_CSR,8,3                  ## @CWMAX_CSR
	.no_dead_strip	_rt73usb_conf_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt73usb_conf_tx
_rt73usb_conf_tx:                       ; @rt73usb_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	x23, x2
	ldr	x19, [x0]
	bl	_rt2x00mac_conf_tx
	mov	x20, x0
	cmp	w23, #3
	b.gt	LBB0_3
; %bb.1:
	cbnz	w20, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_rt2x00queue_get_tx_queue
	mov	x21, x0
Lloh0:
	adrp	x8, _AC_TXOP_CSR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_TXOP_CSR0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w22, w23, #2
	and	w9, w22, #0x8
	add	x24, x8, x9
	ubfiz	w23, w23, #4, #1
	mov	w8, #65535
	lsl	w25, w8, w23
	mov	x0, x19
	mov	x1, x24
	bl	_rt2x00usb_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #12]
	bfi	x23, x25, #32, #32
	add	x0, sp, #8
	mov	x1, x23
	bl	_rt2x00_set_field32
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x24
	bl	_rt2x00usb_register_write
	mov	w8, #15
	lsl	w23, w8, w22
Lloh3:
	adrp	x24, _AIFSN_CSR@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AIFSN_CSR@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	bl	_rt2x00usb_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #8]
	bfi	x22, x23, #32, #32
	add	x0, sp, #8
	mov	x1, x22
	bl	_rt2x00_set_field32
	ldr	x1, [x24]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2x00usb_register_write
Lloh5:
	adrp	x23, _CWMIN_CSR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CWMIN_CSR@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_rt2x00usb_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21, #4]
	add	x0, sp, #8
	mov	x1, x22
	bl	_rt2x00_set_field32
	ldr	x1, [x23]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2x00usb_register_write
Lloh7:
	adrp	x23, _CWMAX_CSR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _CWMAX_CSR@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_rt2x00usb_register_read
	str	x0, [sp, #8]
	ldr	w2, [x21]
	add	x0, sp, #8
	mov	x1, x22
	bl	_rt2x00_set_field32
	ldr	x1, [x23]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_rt2x00usb_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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_TXOP_CSR0,8,3               ; @AC_TXOP_CSR0
	.comm	_AIFSN_CSR,8,3                  ; @AIFSN_CSR
	.comm	_CWMIN_CSR,8,3                  ; @CWMIN_CSR
	.comm	_CWMAX_CSR,8,3                  ; @CWMAX_CSR
	.no_dead_strip	_rt73usb_conf_tx
.subsections_via_symbols
