	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2500pci_fill_rxdone
_rt2500pci_fill_rxdone:                 ## @rt2500pci_fill_rxdone
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r13d
	movl	(%rbx), %edi
	movl	$2, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r12d
	movq	_RXD_W0_CRC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_RX_FLAG_FAILED_FCS_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
LBB0_2:
	movq	_RXD_W0_PHYSICAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_RX_FLAG_FAILED_PLCP_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
LBB0_4:
	movq	_RXD_W2_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, 24(%r14)
	movq	_RXD_W2_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	subq	(%rcx), %rax
	movq	%rax, 16(%r14)
	movq	_RXD_W0_DATABYTE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, 8(%r14)
	movq	_RXD_W0_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_RXDONE_SIGNAL_BITRATE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_RXDONE_SIGNAL_PLCP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	_RXD_W0_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_RXDONE_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXD_W0_CRC_ERROR,4,2           ## @RXD_W0_CRC_ERROR
	.comm	_RX_FLAG_FAILED_FCS_CRC,4,2     ## @RX_FLAG_FAILED_FCS_CRC
	.comm	_RXD_W0_PHYSICAL_ERROR,4,2      ## @RXD_W0_PHYSICAL_ERROR
	.comm	_RX_FLAG_FAILED_PLCP_CRC,4,2    ## @RX_FLAG_FAILED_PLCP_CRC
	.comm	_RXD_W2_SIGNAL,4,2              ## @RXD_W2_SIGNAL
	.comm	_RXD_W2_RSSI,4,2                ## @RXD_W2_RSSI
	.comm	_RXD_W0_DATABYTE_COUNT,4,2      ## @RXD_W0_DATABYTE_COUNT
	.comm	_RXD_W0_OFDM,4,2                ## @RXD_W0_OFDM
	.comm	_RXDONE_SIGNAL_PLCP,4,2         ## @RXDONE_SIGNAL_PLCP
	.comm	_RXDONE_SIGNAL_BITRATE,4,2      ## @RXDONE_SIGNAL_BITRATE
	.comm	_RXD_W0_MY_BSS,4,2              ## @RXD_W0_MY_BSS
	.comm	_RXDONE_MY_BSS,4,2              ## @RXDONE_MY_BSS
	.no_dead_strip	_rt2500pci_fill_rxdone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2500pci_fill_rxdone
_rt2500pci_fill_rxdone:                 ; @rt2500pci_fill_rxdone
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_rt2x00_desc_read
	mov	x20, x0
	ldr	w0, [x22]
	mov	w1, #2
	bl	_rt2x00_desc_read
	mov	x22, x0
Lloh0:
	adrp	x8, _RXD_W0_CRC_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXD_W0_CRC_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RX_FLAG_FAILED_FCS_CRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_FLAG_FAILED_FCS_CRC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_2:
Lloh6:
	adrp	x8, _RXD_W0_PHYSICAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXD_W0_PHYSICAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _RX_FLAG_FAILED_PLCP_CRC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_FLAG_FAILED_PLCP_CRC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_4:
Lloh12:
	adrp	x8, _RXD_W2_SIGNAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RXD_W2_SIGNAL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	str	x0, [x19, #24]
Lloh15:
	adrp	x8, _RXD_W2_RSSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RXD_W2_RSSI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	sub	x8, x0, x8
	str	x8, [x19, #16]
Lloh18:
	adrp	x8, _RXD_W0_DATABYTE_COUNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RXD_W0_DATABYTE_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	str	x0, [x19, #8]
Lloh21:
	adrp	x8, _RXD_W0_OFDM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RXD_W0_OFDM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
Lloh24:
	adrp	x8, _RXDONE_SIGNAL_BITRATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RXDONE_SIGNAL_BITRATE@GOTPAGEOFF]
Lloh26:
	adrp	x9, _RXDONE_SIGNAL_PLCP@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RXDONE_SIGNAL_PLCP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh28:
	adrp	x8, _RXD_W0_MY_BSS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RXD_W0_MY_BSS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_6
; %bb.5:
Lloh31:
	adrp	x8, _RXDONE_MY_BSS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RXDONE_MY_BSS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_RXD_W0_CRC_ERROR,4,2           ; @RXD_W0_CRC_ERROR
	.comm	_RX_FLAG_FAILED_FCS_CRC,4,2     ; @RX_FLAG_FAILED_FCS_CRC
	.comm	_RXD_W0_PHYSICAL_ERROR,4,2      ; @RXD_W0_PHYSICAL_ERROR
	.comm	_RX_FLAG_FAILED_PLCP_CRC,4,2    ; @RX_FLAG_FAILED_PLCP_CRC
	.comm	_RXD_W2_SIGNAL,4,2              ; @RXD_W2_SIGNAL
	.comm	_RXD_W2_RSSI,4,2                ; @RXD_W2_RSSI
	.comm	_RXD_W0_DATABYTE_COUNT,4,2      ; @RXD_W0_DATABYTE_COUNT
	.comm	_RXD_W0_OFDM,4,2                ; @RXD_W0_OFDM
	.comm	_RXDONE_SIGNAL_PLCP,4,2         ; @RXDONE_SIGNAL_PLCP
	.comm	_RXDONE_SIGNAL_BITRATE,4,2      ; @RXDONE_SIGNAL_BITRATE
	.comm	_RXD_W0_MY_BSS,4,2              ; @RXD_W0_MY_BSS
	.comm	_RXDONE_MY_BSS,4,2              ; @RXDONE_MY_BSS
	.no_dead_strip	_rt2500pci_fill_rxdone
.subsections_via_symbols
