	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00queue_index_inc          ## -- Begin function rt2x00queue_index_inc
	.p2align	4, 0x90
_rt2x00queue_index_inc:                 ## @rt2x00queue_index_inc
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_Q_INDEX_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setbe	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movl	28(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00_err                     ## TAILCALL
LBB0_1:
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rdx
	incq	%rdx
	movq	%rdx, (%rax,%rcx,8)
	xorl	%esi, %esi
	cmpq	8(%r12), %rdx
	cmovlq	%rdx, %rsi
	movq	%rsi, (%rax,%rcx,8)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_Q_INDEX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.2:
	incl	24(%r12)
	jmp	LBB0_5
LBB0_3:
	movq	_Q_INDEX_DONE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	decl	24(%r12)
	incl	20(%r12)
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_INDEX_MAX,4,2                ## @Q_INDEX_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Index change on invalid index type (%d)\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_Q_INDEX,4,2                    ## @Q_INDEX
	.comm	_Q_INDEX_DONE,4,2               ## @Q_INDEX_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rt2x00queue_index_inc
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rt2x00queue_index_inc
	.p2align	2
_rt2x00queue_index_inc:                 ; @rt2x00queue_index_inc
	.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	x19, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _Q_INDEX_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_INDEX_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ls
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22, #28]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	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
	b	_rt2x00_err
LBB0_2:
	add	x20, x22, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	mov	w9, w19
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	add	x11, x10, #1
	str	x11, [x8, x9]
	ldr	x12, [x22, #8]
	cmp	x11, x12
	csinc	x10, xzr, x10, ge
	str	x10, [x8, x9]
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh8:
	adrp	x8, _Q_INDEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Q_INDEX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x22, #24]
	add	w8, w8, #1
	str	w8, [x22, #24]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _Q_INDEX_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Q_INDEX_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:
	ldur	d0, [x22, #20]
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	stur	d0, [x22, #20]
LBB0_6:
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdr	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_INDEX_MAX,4,2                ; @Q_INDEX_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Index change on invalid index type (%d)\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_Q_INDEX,4,2                    ; @Q_INDEX
	.comm	_Q_INDEX_DONE,4,2               ; @Q_INDEX_DONE
.subsections_via_symbols
