	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500pci_clear_entry
_rt2500pci_clear_entry:                 ## @rt2500pci_clear_entry
	.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	16(%rdi), %r15
	movl	8(%rdi), %edi
	callq	_get_skb_frame_desc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_QID_RX@GOTPCREL(%rip), %rcx
	movl	(%r15), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -28(%rbp)
	movq	_RXD_W1_BUFFER_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
	movl	(%r15), %edi
	movl	-28(%rbp), %edx
	movl	$1, %esi
	callq	_rt2x00_desc_write
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -28(%rbp)
	movq	_RXD_W0_OWNER_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -28(%rbp)
	movq	_TXD_W0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	_TXD_W0_OWNER_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
LBB0_3:
	callq	_rt2x00_set_field32
	movl	(%r15), %edi
	movl	-28(%rbp), %edx
	xorl	%esi, %esi
	callq	_rt2x00_desc_write
	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_W1_BUFFER_ADDRESS,4,2      ## @RXD_W1_BUFFER_ADDRESS
	.comm	_RXD_W0_OWNER_NIC,4,2           ## @RXD_W0_OWNER_NIC
	.comm	_TXD_W0_VALID,4,2               ## @TXD_W0_VALID
	.comm	_TXD_W0_OWNER_NIC,4,2           ## @TXD_W0_OWNER_NIC
	.no_dead_strip	_rt2500pci_clear_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500pci_clear_entry
_rt2500pci_clear_entry:                 ; @rt2500pci_clear_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_get_skb_frame_desc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _QID_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QID_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_rt2x00_desc_read
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _RXD_W1_BUFFER_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXD_W1_BUFFER_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w0, [x21]
	ldr	w2, [sp, #12]
	mov	w1, #1
	bl	_rt2x00_desc_write
	ldr	w0, [x21]
	mov	w1, #0
	bl	_rt2x00_desc_read
	str	w0, [sp, #12]
Lloh6:
	adrp	x8, _RXD_W0_OWNER_NIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXD_W0_OWNER_NIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	bl	_rt2x00_desc_read
	str	w0, [sp, #12]
Lloh9:
	adrp	x8, _TXD_W0_VALID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXD_W0_VALID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh12:
	adrp	x8, _TXD_W0_OWNER_NIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TXD_W0_OWNER_NIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
LBB0_3:
	bl	_rt2x00_set_field32
	ldr	w0, [x21]
	ldr	w2, [sp, #12]
	mov	w1, #0
	bl	_rt2x00_desc_write
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QID_RX,8,3                     ; @QID_RX
	.comm	_RXD_W1_BUFFER_ADDRESS,4,2      ; @RXD_W1_BUFFER_ADDRESS
	.comm	_RXD_W0_OWNER_NIC,4,2           ; @RXD_W0_OWNER_NIC
	.comm	_TXD_W0_VALID,4,2               ; @TXD_W0_VALID
	.comm	_TXD_W0_OWNER_NIC,4,2           ; @TXD_W0_OWNER_NIC
	.no_dead_strip	_rt2500pci_clear_entry
.subsections_via_symbols
