	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2400pci_clear_entry
_rt2400pci_clear_entry:                 ## @rt2400pci_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	16(%rbx), %r12
	callq	_get_skb_frame_desc
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_QID_RX@GOTPCREL(%rip), %rcx
	movl	(%r12), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$2, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -36(%rbp)
	movq	_RXD_W2_BUFFER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_rt2x00_set_field32
	movl	(%r12), %edi
	movl	-36(%rbp), %edx
	movl	$2, %esi
	callq	_rt2x00_desc_write
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -36(%rbp)
	movq	_RXD_W1_BUFFER_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_rt2x00_set_field32
	movl	(%r12), %edi
	movl	-36(%rbp), %edx
	movl	$1, %esi
	callq	_rt2x00_desc_write
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -36(%rbp)
	movq	_RXD_W0_OWNER_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, -36(%rbp)
	movq	_TXD_W0_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%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	(%r12), %edi
	movl	-36(%rbp), %edx
	xorl	%esi, %esi
	callq	_rt2x00_desc_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QID_RX,8,3                     ## @QID_RX
	.comm	_RXD_W2_BUFFER_LENGTH,4,2       ## @RXD_W2_BUFFER_LENGTH
	.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	_rt2400pci_clear_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2400pci_clear_entry
_rt2400pci_clear_entry:                 ; @rt2400pci_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	x0, [x0]
	bl	_get_skb_frame_desc
	mov	x19, x0
	ldr	x8, [x20, #8]
	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, #2
	bl	_rt2x00_desc_read
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _RXD_W2_BUFFER_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXD_W2_BUFFER_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w0, [x21]
	ldr	w2, [sp, #12]
	mov	w1, #2
	bl	_rt2x00_desc_write
	ldr	w0, [x21]
	mov	w1, #1
	bl	_rt2x00_desc_read
	str	w0, [sp, #12]
Lloh6:
	adrp	x8, _RXD_W1_BUFFER_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXD_W1_BUFFER_ADDRESS@GOTPAGEOFF]
Lloh8:
	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]
Lloh9:
	adrp	x8, _RXD_W0_OWNER_NIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RXD_W0_OWNER_NIC@GOTPAGEOFF]
Lloh11:
	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]
Lloh12:
	adrp	x8, _TXD_W0_VALID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TXD_W0_VALID@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh15:
	adrp	x8, _TXD_W0_OWNER_NIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TXD_W0_OWNER_NIC@GOTPAGEOFF]
Lloh17:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QID_RX,8,3                     ; @QID_RX
	.comm	_RXD_W2_BUFFER_LENGTH,4,2       ; @RXD_W2_BUFFER_LENGTH
	.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	_rt2400pci_clear_entry
.subsections_via_symbols
