	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_fill_rxdone
_rt61pci_fill_rxdone:                   ## @rt61pci_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, %rbx
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r14d
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r12d
	movq	_RXD_W0_CRC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %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, 48(%rbx)
LBB0_2:
	movq	_RXD_W0_CIPHER_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, (%rbx)
	movq	_RXD_W0_CIPHER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rax
	movq	_CIPHER_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.3:
	movl	(%r13), %edi
	movl	$2, %esi
	callq	__rt2x00_desc_read
	movq	64(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	(%r13), %edi
	movl	$3, %esi
	callq	__rt2x00_desc_read
	movq	64(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_RXDONE_CRYPTO_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movl	(%r13), %edi
	movl	$4, %esi
	callq	__rt2x00_desc_read
	movq	%rax, 56(%rbx)
	movq	_RXDONE_CRYPTO_ICV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rcx
	movl	48(%rbx), %eax
	orl	(%rcx), %eax
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 48(%rbx)
	movq	8(%rbx), %rcx
	movq	_RX_CRYPTO_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_RX_CRYPTO_FAIL_MIC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.6:
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movl	%eax, 48(%rbx)
LBB0_8:
	movq	_RXD_W1_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, 40(%rbx)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_rt61pci_agc_to_rssi
	movl	%eax, 32(%rbx)
	movq	_RXD_W0_DATABYTE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, 24(%rbx)
	movq	_RXD_W0_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_RXDONE_SIGNAL_BITRATE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_RXDONE_SIGNAL_PLCP@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_RXD_W0_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_RXDONE_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_13:
	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_CIPHER_ALG,4,2          ## @RXD_W0_CIPHER_ALG
	.comm	_RXD_W0_CIPHER_ERROR,4,2        ## @RXD_W0_CIPHER_ERROR
	.comm	_CIPHER_NONE,8,3                ## @CIPHER_NONE
	.comm	_RXDONE_CRYPTO_IV,4,2           ## @RXDONE_CRYPTO_IV
	.comm	_RXDONE_CRYPTO_ICV,4,2          ## @RXDONE_CRYPTO_ICV
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ## @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_CRYPTO_SUCCESS,8,3          ## @RX_CRYPTO_SUCCESS
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_RX_CRYPTO_FAIL_MIC,8,3         ## @RX_CRYPTO_FAIL_MIC
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.comm	_RXD_W1_SIGNAL,4,2              ## @RXD_W1_SIGNAL
	.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	_rt61pci_fill_rxdone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_fill_rxdone
_rt61pci_fill_rxdone:                   ; @rt61pci_fill_rxdone
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldp	x23, x8, [x0]
	ldr	x21, [x8]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_rt2x00_desc_read
	mov	x20, x0
	ldr	w0, [x23]
	mov	w1, #1
	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, #48]
	orr	w8, w9, w8
	str	w8, [x19, #48]
LBB0_2:
Lloh6:
	adrp	x8, _RXD_W0_CIPHER_ALG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXD_W0_CIPHER_ALG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	str	x0, [x19]
Lloh9:
	adrp	x8, _RXD_W0_CIPHER_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RXD_W0_CIPHER_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	str	x0, [x19, #8]
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _CIPHER_NONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CIPHER_NONE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.3:
	ldr	w0, [x23]
	mov	w1, #2
	bl	__rt2x00_desc_read
	ldr	x8, [x19, #64]
	str	x0, [x8]
	ldr	w0, [x23]
	mov	w1, #3
	bl	__rt2x00_desc_read
	ldr	x8, [x19, #64]
Lloh15:
	adrp	x9, _RXDONE_CRYPTO_IV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RXDONE_CRYPTO_IV@GOTPAGEOFF]
	str	x0, [x8, #8]
Lloh17:
	ldr	w8, [x9]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	ldr	w0, [x23]
	mov	w1, #4
	bl	__rt2x00_desc_read
	str	x0, [x19, #56]
Lloh18:
	adrp	x8, _RXDONE_CRYPTO_ICV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RXDONE_CRYPTO_ICV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh21:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #48]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	ldr	x9, [x19, #8]
Lloh27:
	adrp	x10, _RX_CRYPTO_SUCCESS@GOTPAGE
Lloh28:
	ldr	x10, [x10, _RX_CRYPTO_SUCCESS@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.4:
Lloh30:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh32:
	adrp	x10, _RX_CRYPTO_FAIL_MIC@GOTPAGE
Lloh33:
	ldr	x10, [x10, _RX_CRYPTO_FAIL_MIC@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.6:
Lloh35:
	adrp	x9, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh36:
	ldr	x9, [x9, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #48]
LBB0_8:
Lloh37:
	adrp	x8, _RXD_W1_SIGNAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RXD_W1_SIGNAL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	str	x0, [x19, #40]
	mov	x0, x21
	mov	x1, x22
	bl	_rt61pci_agc_to_rssi
	str	w0, [x19, #32]
Lloh40:
	adrp	x8, _RXD_W0_DATABYTE_COUNT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _RXD_W0_DATABYTE_COUNT@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	str	x0, [x19, #24]
Lloh43:
	adrp	x8, _RXD_W0_OFDM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RXD_W0_OFDM@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
Lloh46:
	adrp	x8, _RXDONE_SIGNAL_BITRATE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RXDONE_SIGNAL_BITRATE@GOTPAGEOFF]
Lloh48:
	adrp	x9, _RXDONE_SIGNAL_PLCP@GOTPAGE
Lloh49:
	ldr	x9, [x9, _RXDONE_SIGNAL_PLCP@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
Lloh50:
	adrp	x8, _RXD_W0_MY_BSS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _RXD_W0_MY_BSS@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_10
; %bb.9:
Lloh53:
	adrp	x8, _RXDONE_MY_BSS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _RXDONE_MY_BSS@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.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_CIPHER_ALG,4,2          ; @RXD_W0_CIPHER_ALG
	.comm	_RXD_W0_CIPHER_ERROR,4,2        ; @RXD_W0_CIPHER_ERROR
	.comm	_CIPHER_NONE,8,3                ; @CIPHER_NONE
	.comm	_RXDONE_CRYPTO_IV,4,2           ; @RXDONE_CRYPTO_IV
	.comm	_RXDONE_CRYPTO_ICV,4,2          ; @RXDONE_CRYPTO_ICV
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ; @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_CRYPTO_SUCCESS,8,3          ; @RX_CRYPTO_SUCCESS
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_RX_CRYPTO_FAIL_MIC,8,3         ; @RX_CRYPTO_FAIL_MIC
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.comm	_RXD_W1_SIGNAL,4,2              ; @RXD_W1_SIGNAL
	.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	_rt61pci_fill_rxdone
.subsections_via_symbols
