	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500pci_get_entry_state
_rt2500pci_get_entry_state:             ## @rt2500pci_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rax), %r15
	movq	_QID_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rcx), %edi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r14d
	cmpq	%rbx, %r15
	jne	LBB0_1
## %bb.4:
	movq	_RXD_W0_OWNER_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00_get_field32             ## TAILCALL
LBB0_1:
	movq	_TXD_W0_OWNER_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_TXD_W0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QID_RX,8,3                     ## @QID_RX
	.comm	_RXD_W0_OWNER_NIC,4,2           ## @RXD_W0_OWNER_NIC
	.comm	_TXD_W0_OWNER_NIC,4,2           ## @TXD_W0_OWNER_NIC
	.comm	_TXD_W0_VALID,4,2               ## @TXD_W0_VALID
	.no_dead_strip	_rt2500pci_get_entry_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500pci_get_entry_state
_rt2500pci_get_entry_state:             ; @rt2500pci_get_entry_state
	.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
	ldp	x9, x8, [x0]
	ldr	x20, [x9]
Lloh0:
	adrp	x9, _QID_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QID_RX@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x9]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_rt2x00_desc_read
	mov	x19, x0
	cmp	x20, x21
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RXD_W0_OWNER_NIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXD_W0_OWNER_NIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, 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_get_field32
LBB0_2:
Lloh6:
	adrp	x8, _TXD_W0_OWNER_NIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TXD_W0_OWNER_NIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field32
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _TXD_W0_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXD_W0_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_get_field32
	cmp	w0, #0
	cset	w0, ne
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QID_RX,8,3                     ; @QID_RX
	.comm	_RXD_W0_OWNER_NIC,4,2           ; @RXD_W0_OWNER_NIC
	.comm	_TXD_W0_OWNER_NIC,4,2           ; @TXD_W0_OWNER_NIC
	.comm	_TXD_W0_VALID,4,2               ; @TXD_W0_VALID
	.no_dead_strip	_rt2500pci_get_entry_state
.subsections_via_symbols
