	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_fill_rxdone         ## -- Begin function rt2800mmio_fill_rxdone
	.p2align	4, 0x90
_rt2800mmio_fill_rxdone:                ## @rt2800mmio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movl	$3, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r15d
	movq	_RXD_W3_CRC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %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, 12(%rbx)
LBB0_2:
	movq	_RXD_W3_CIPHER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	movq	%rax, (%rbx)
	movq	_RXD_W3_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rcx
	movl	12(%rbx), %eax
	orl	(%rcx), %eax
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%rbx)
	movq	(%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_DECRYPTED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movl	%eax, 12(%rbx)
LBB0_8:
	movq	_RXD_W3_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_RXDONE_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_10:
	movq	_RXD_W3_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_rt2x00_get_field32
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_RXDONE_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2800_process_rxwi            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RXD_W3_CRC_ERROR,4,2           ## @RXD_W3_CRC_ERROR
	.comm	_RX_FLAG_FAILED_FCS_CRC,4,2     ## @RX_FLAG_FAILED_FCS_CRC
	.comm	_RXD_W3_CIPHER_ERROR,4,2        ## @RXD_W3_CIPHER_ERROR
	.comm	_RXD_W3_DECRYPTED,4,2           ## @RXD_W3_DECRYPTED
	.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_W3_MY_BSS,4,2              ## @RXD_W3_MY_BSS
	.comm	_RXDONE_MY_BSS,4,2              ## @RXDONE_MY_BSS
	.comm	_RXD_W3_L2PAD,4,2               ## @RXD_W3_L2PAD
	.comm	_RXDONE_L2PAD,4,2               ## @RXDONE_L2PAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2800mmio_fill_rxdone         ; -- Begin function rt2800mmio_fill_rxdone
	.p2align	2
_rt2800mmio_fill_rxdone:                ; @rt2800mmio_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	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	mov	w1, #3
	bl	_rt2x00_desc_read
	mov	x21, x0
Lloh0:
	adrp	x8, _RXD_W3_CRC_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXD_W3_CRC_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	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, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_2:
Lloh6:
	adrp	x8, _RXD_W3_CIPHER_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXD_W3_CIPHER_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	str	x0, [x19]
Lloh9:
	adrp	x8, _RXD_W3_DECRYPTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RXD_W3_DECRYPTED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_7
; %bb.3:
Lloh12:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	ldr	x10, [x19]
Lloh18:
	adrp	x9, _RX_CRYPTO_SUCCESS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RX_CRYPTO_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x9]
Lloh21:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
	cmp	x10, x11
	b.eq	LBB0_6
; %bb.4:
Lloh23:
	adrp	x11, _RX_CRYPTO_FAIL_MIC@GOTPAGE
Lloh24:
	ldr	x11, [x11, _RX_CRYPTO_FAIL_MIC@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
; %bb.5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #12]
LBB0_7:
Lloh28:
	adrp	x8, _RXD_W3_MY_BSS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RXD_W3_MY_BSS@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_9
; %bb.8:
Lloh31:
	adrp	x8, _RXDONE_MY_BSS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RXDONE_MY_BSS@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_9:
Lloh34:
	adrp	x8, _RXD_W3_L2PAD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RXD_W3_L2PAD@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rt2x00_get_field32
	cbz	x0, LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _RXDONE_L2PAD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RXDONE_L2PAD@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_11:
	mov	x0, x20
	mov	x1, 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	_rt2800_process_rxwi
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_RXD_W3_CRC_ERROR,4,2           ; @RXD_W3_CRC_ERROR
	.comm	_RX_FLAG_FAILED_FCS_CRC,4,2     ; @RX_FLAG_FAILED_FCS_CRC
	.comm	_RXD_W3_CIPHER_ERROR,4,2        ; @RXD_W3_CIPHER_ERROR
	.comm	_RXD_W3_DECRYPTED,4,2           ; @RXD_W3_DECRYPTED
	.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_W3_MY_BSS,4,2              ; @RXD_W3_MY_BSS
	.comm	_RXDONE_MY_BSS,4,2              ; @RXDONE_MY_BSS
	.comm	_RXD_W3_L2PAD,4,2               ; @RXD_W3_L2PAD
	.comm	_RXDONE_L2PAD,4,2               ; @RXDONE_L2PAD
.subsections_via_symbols
