	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_flush_queue         ## -- Begin function rt2800mmio_flush_queue
	.p2align	4, 0x90
_rt2800mmio_flush_queue:                ## @rt2800mmio_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %eax
	leal	-129(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_19
## %bb.5:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
	xorl	%r15d, %r15d
LBB0_6:
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:
	testb	%r15b, %r15b
	jne	LBB0_9
## %bb.8:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
LBB0_9:
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_19
## %bb.10:
	testb	%r15b, %r15b
	jne	LBB0_12
## %bb.11:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
LBB0_12:
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_19
## %bb.13:
	testb	%r15b, %r15b
	jne	LBB0_15
## %bb.14:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
LBB0_15:
	movl	$50, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	jne	LBB0_19
## %bb.16:
	testb	%r15b, %r15b
	jne	LBB0_18
## %bb.17:
	movl	4(%r14), %edi
	movq	%r14, %rsi
	callq	_queue_work
LBB0_18:
	movl	$50, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.2:
	movq	%rbx, %rdi
	callq	_rt2x00queue_empty
	testq	%rax, %rax
	je	LBB0_3
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movb	$1, %r15b
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_flush_queue         ; -- Begin function rt2800mmio_flush_queue
	.p2align	2
_rt2800mmio_flush_queue:                ; @rt2800mmio_flush_queue
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #4
	b.hs	LBB0_16
; %bb.1:
	mov	x0, x20
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_18
; %bb.2:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
	mov	w21, #0
LBB0_3:
	mov	w0, #50
	bl	_msleep
	mov	x0, x20
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_18
; %bb.4:
	tbnz	w21, #0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
LBB0_6:
	mov	w0, #50
	bl	_msleep
	mov	x0, x20
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_18
; %bb.7:
	tbnz	w21, #0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
LBB0_9:
	mov	w0, #50
	bl	_msleep
	mov	x0, x20
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_18
; %bb.10:
	tbnz	w21, #0, LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
LBB0_12:
	mov	w0, #50
	bl	_msleep
	mov	x0, x20
	bl	_rt2x00queue_empty
	cbnz	x0, LBB0_18
; %bb.13:
	tbnz	w21, #0, LBB0_15
; %bb.14:
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_queue_work
LBB0_15:
	mov	w0, #50
	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	_msleep
LBB0_16:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_rt2x00queue_empty
	cbz	x0, LBB0_19
LBB0_18:
	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
LBB0_19:
	mov	w21, #1
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
