	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_conf_tx              ## -- Begin function rt2x00mac_conf_tx
	.p2align	4, 0x90
_rt2x00mac_conf_tx:                     ## @rt2x00mac_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_rt2x00queue_get_tx_queue
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	jle	LBB0_3
## %bb.4:
	callq	_fls
	movq	%rax, %rcx
	jmp	LBB0_5
LBB0_3:
	movl	$5, %ecx
LBB0_5:
	movl	%ecx, (%rbx)
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	jle	LBB0_6
## %bb.7:
	callq	_fls
	movq	%rax, %r8
	movl	(%rbx), %ecx
	jmp	LBB0_8
LBB0_6:
	movl	$10, %r8d
LBB0_8:
	movl	%r8d, 4(%rbx)
	movl	20(%r12), %r9d
	movl	%r9d, 12(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_rt2x00_dbg
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00mac_conf_tx              ; -- Begin function rt2x00mac_conf_tx
	.p2align	2
_rt2x00mac_conf_tx:                     ; @rt2x00mac_conf_tx
	.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	x21, x3
	mov	x19, x2
	ldr	x20, [x0]
	mov	x0, x20
	mov	x1, x2
	bl	_rt2x00queue_get_tx_queue
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	ldr	x0, [x21]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	bl	_fls
	mov	x3, x0
	b	LBB0_5
LBB0_4:
	mov	w3, #5
LBB0_5:
	str	w3, [x22]
	ldr	x0, [x21, #8]
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.6:
	bl	_fls
	mov	x4, x0
	ldr	w3, [x22]
	b	LBB0_8
LBB0_7:
	mov	w4, #10
LBB0_8:
	str	w4, [x22, #4]
	ldp	w6, w5, [x21, #16]
	stp	w6, w5, [x22, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_rt2x00_dbg
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configured TX queue %d - CWmin: %d, CWmax: %d, Aifs: %d, TXop: %d\n"

.subsections_via_symbols
