	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_get_dma_done        ## -- Begin function rt2800mmio_get_dma_done
	.p2align	4, 0x90
_rt2800mmio_get_dma_done:               ## @rt2800mmio_get_dma_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rbx
	movl	(%rdi), %eax
	leal	-130(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.4:
	movl	%eax, %edi
	jmp	LBB0_5
LBB0_1:
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.3:
	movl	$5, %edi
LBB0_5:
	callq	_TX_DTX_IDX
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rt2x00mmio_register_read       ## TAILCALL
LBB0_6:
	movq	_Q_INDEX_DMA_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00queue_get_entry
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_7:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_INDEX_DMA_DONE,4,2           ## @Q_INDEX_DMA_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_get_dma_done        ; -- Begin function rt2800mmio_get_dma_done
	.p2align	2
_rt2800mmio_get_dma_done:               ; @rt2800mmio_get_dma_done
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
	sub	w9, w8, #130
	cmp	w9, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x8
	b	LBB0_5
LBB0_2:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.4:
	mov	w0, #5
LBB0_5:
	bl	_TX_DTX_IDX
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rt2x00mmio_register_read
LBB0_6:
Lloh0:
	adrp	x8, _Q_INDEX_DMA_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_INDEX_DMA_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00queue_get_entry
	ldr	w0, [x0]
	b	LBB0_8
LBB0_7:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_INDEX_DMA_DONE,4,2           ; @Q_INDEX_DMA_DONE
.subsections_via_symbols
