	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_flush_queue          ## -- Begin function rt2x00usb_flush_queue
	.p2align	4, 0x90
_rt2x00usb_flush_queue:                 ## @rt2x00usb_flush_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_Q_INDEX_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Q_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rt2x00usb_flush_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rt2x00queue_for_each_entry
LBB0_2:
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_3
## %bb.16:
	movq	8(%rbx), %r14
	addq	$8, %r14
	jmp	LBB0_5
LBB0_3:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.4:
	movq	8(%rbx), %r14
	addq	$4, %r14
LBB0_5:
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.6:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_queue_work
	movl	$50, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_INDEX_DONE,4,2               ## @Q_INDEX_DONE
	.comm	_Q_INDEX,4,2                    ## @Q_INDEX
	.comm	_rt2x00usb_flush_entry,4,2      ## @rt2x00usb_flush_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_flush_queue          ; -- Begin function rt2x00usb_flush_queue
	.p2align	2
_rt2x00usb_flush_queue:                 ; @rt2x00usb_flush_queue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _Q_INDEX_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_INDEX_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _Q_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Q_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _rt2x00usb_flush_entry@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rt2x00usb_flush_entry@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x3, #0
	bl	_rt2x00queue_for_each_entry
LBB0_2:
	ldr	w8, [x19]
	sub	w9, w8, #129
	cmp	w9, #4
	b.hs	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	add	x20, x8, #8
	b	LBB0_6
LBB0_4:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.5:
	ldr	x8, [x19, #8]
	add	x20, x8, #4
LBB0_6:
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.12:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_rt2x00queue_empty
	cbz	x0, LBB0_17
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_queue_work
	mov	w0, #50
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_INDEX_DONE,4,2               ; @Q_INDEX_DONE
	.comm	_Q_INDEX,4,2                    ; @Q_INDEX
	.comm	_rt2x00usb_flush_entry,4,2      ; @rt2x00usb_flush_entry
.subsections_via_symbols
