	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_get_entry_state     ## -- Begin function rt2800mmio_get_entry_state
	.p2align	4, 0x90
_rt2800mmio_get_entry_state:            ## @rt2800mmio_get_entry_state
	.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	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rax), %rax
	movq	_QID_RX@GOTPCREL(%rip), %rdx
	movl	(%rcx), %edi
	cmpq	(%rdx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_RXD_W1_DMA_DONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_TXD_W1_DMA_DONE@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	$1, %esi
	callq	_rt2x00_desc_read
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_rt2x00_get_field32
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QID_RX,8,3                     ## @QID_RX
	.comm	_RXD_W1_DMA_DONE,4,2            ## @RXD_W1_DMA_DONE
	.comm	_TXD_W1_DMA_DONE,4,2            ## @TXD_W1_DMA_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_get_entry_state     ; -- Begin function rt2800mmio_get_entry_state
	.p2align	2
_rt2800mmio_get_entry_state:            ; @rt2800mmio_get_entry_state
	.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
	ldp	x9, x8, [x0]
	ldr	x19, [x9]
Lloh0:
	adrp	x9, _QID_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QID_RX@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x9]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_rt2x00_desc_read
Lloh3:
	adrp	x8, _RXD_W1_DMA_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXD_W1_DMA_DONE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _TXD_W1_DMA_DONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TXD_W1_DMA_DONE@GOTPAGEOFF]
	cmp	x19, x20
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QID_RX,8,3                     ; @QID_RX
	.comm	_RXD_W1_DMA_DONE,4,2            ; @RXD_W1_DMA_DONE
	.comm	_TXD_W1_DMA_DONE,4,2            ; @TXD_W1_DMA_DONE
.subsections_via_symbols
