	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800usb_fill_rxdone
_rt2800usb_fill_rxdone:                 ## @rt2800usb_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, %r13
	movq	(%rdi), %rdi
	callq	_get_skb_frame_desc
	movq	(%r13), %rcx
	movq	(%rcx), %rbx
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movq	_RXINFO_W0_USB_DMA_RX_PKT_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_rt2x00_get_field32
	movl	%eax, %r15d
	movq	(%r13), %rdi
	movq	_RXINFO_DESC_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_pull
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	8(%r13), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setg	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.17:
	movq	8(%r13), %rax
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2x00_err                     ## TAILCALL
LBB0_4:
	movq	(%r13), %rax
	movslq	%r15d, %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_rt2x00_desc_read
	movl	%eax, %r12d
	movq	_RXD_W0_CRC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_RX_FLAG_FAILED_FCS_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_6:
	movq	_RXD_W0_CIPHER_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	movl	%eax, (%r14)
	movq	_RXD_W0_DECRYPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rcx
	movl	8(%r14), %eax
	orl	(%rcx), %eax
	movl	(%r14), %ecx
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 8(%r14)
	movq	_RX_CRYPTO_SUCCESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.8:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movq	_RX_CRYPTO_FAIL_MIC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_12
## %bb.10:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RX_FLAG_MMIC_ERROR@GOTPCREL(%rip), %rcx
LBB0_11:
	orl	(%rcx), %eax
	movl	%eax, 8(%r14)
LBB0_12:
	movq	_RXD_W0_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_RXDONE_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_14:
	movq	_RXD_W0_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_rt2x00_get_field32
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_RXDONE_L2PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_16:
	movq	(%r13), %rdi
	movl	%r15d, %esi
	callq	_skb_trim
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rt2800_process_rxwi            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RXINFO_W0_USB_DMA_RX_PKT_LEN,4,2 ## @RXINFO_W0_USB_DMA_RX_PKT_LEN
	.comm	_RXINFO_DESC_SIZE,4,2           ## @RXINFO_DESC_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad frame size %d, forcing to 0\n"

	.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_ERROR,4,2        ## @RXD_W0_CIPHER_ERROR
	.comm	_RXD_W0_DECRYPTED,4,2           ## @RXD_W0_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,4,2          ## @RX_CRYPTO_SUCCESS
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_RX_CRYPTO_FAIL_MIC,4,2         ## @RX_CRYPTO_FAIL_MIC
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ## @RX_FLAG_MMIC_ERROR
	.comm	_RXD_W0_MY_BSS,4,2              ## @RXD_W0_MY_BSS
	.comm	_RXDONE_MY_BSS,4,2              ## @RXDONE_MY_BSS
	.comm	_RXD_W0_L2PAD,4,2               ## @RXD_W0_L2PAD
	.comm	_RXDONE_L2PAD,4,2               ## @RXDONE_L2PAD
	.no_dead_strip	_rt2800usb_fill_rxdone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800usb_fill_rxdone
_rt2800usb_fill_rxdone:                 ; @rt2800usb_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	x0, [x0]
	bl	_get_skb_frame_desc
	ldr	x8, [x20]
	ldr	x21, [x8]
	ldp	w2, w8, [x0]
	mov	x0, x8
	mov	x1, x21
	bl	_memcpy
	mov	x0, x21
	mov	w1, #0
	bl	_rt2x00_desc_read
Lloh0:
	adrp	x8, _RXINFO_W0_USB_DMA_RX_PKT_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RXINFO_W0_USB_DMA_RX_PKT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
	mov	x21, x0
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _RXINFO_DESC_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXINFO_DESC_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_skb_pull
	cbz	w21, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	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	_rt2x00_err
LBB0_3:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x0, x8, w21, sxtw
	mov	w1, #0
	bl	_rt2x00_desc_read
	mov	x22, x0
Lloh8:
	adrp	x8, _RXD_W0_CRC_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RXD_W0_CRC_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
	cbz	w0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _RX_FLAG_FAILED_FCS_CRC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RX_FLAG_FAILED_FCS_CRC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_6:
Lloh14:
	adrp	x8, _RXD_W0_CIPHER_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RXD_W0_CIPHER_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	str	w0, [x19]
Lloh17:
	adrp	x8, _RXD_W0_DECRYPTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RXD_W0_DECRYPTED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	cbz	w0, LBB0_11
; %bb.7:
Lloh20:
	adrp	x8, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w10, [x19]
Lloh26:
	adrp	x9, _RX_CRYPTO_SUCCESS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RX_CRYPTO_SUCCESS@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x9]
Lloh29:
	adrp	x9, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
	cmp	w10, w11
	b.eq	LBB0_10
; %bb.8:
Lloh31:
	adrp	x11, _RX_CRYPTO_FAIL_MIC@GOTPAGE
Lloh32:
	ldr	x11, [x11, _RX_CRYPTO_FAIL_MIC@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_11
; %bb.9:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _RX_FLAG_MMIC_ERROR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _RX_FLAG_MMIC_ERROR@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_11:
Lloh36:
	adrp	x8, _RXD_W0_MY_BSS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RXD_W0_MY_BSS@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	cbz	w0, LBB0_13
; %bb.12:
Lloh39:
	adrp	x8, _RXDONE_MY_BSS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RXDONE_MY_BSS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_13:
Lloh42:
	adrp	x8, _RXD_W0_L2PAD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _RXD_W0_L2PAD@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_get_field32
	cbz	w0, LBB0_15
; %bb.14:
Lloh45:
	adrp	x8, _RXDONE_L2PAD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RXDONE_L2PAD@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_15:
	ldr	x0, [x20]
	mov	x1, x21
	bl	_skb_trim
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_RXINFO_W0_USB_DMA_RX_PKT_LEN,4,2 ; @RXINFO_W0_USB_DMA_RX_PKT_LEN
	.comm	_RXINFO_DESC_SIZE,4,2           ; @RXINFO_DESC_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad frame size %d, forcing to 0\n"

	.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_ERROR,4,2        ; @RXD_W0_CIPHER_ERROR
	.comm	_RXD_W0_DECRYPTED,4,2           ; @RXD_W0_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,4,2          ; @RX_CRYPTO_SUCCESS
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_RX_CRYPTO_FAIL_MIC,4,2         ; @RX_CRYPTO_FAIL_MIC
	.comm	_RX_FLAG_MMIC_ERROR,4,2         ; @RX_FLAG_MMIC_ERROR
	.comm	_RXD_W0_MY_BSS,4,2              ; @RXD_W0_MY_BSS
	.comm	_RXDONE_MY_BSS,4,2              ; @RXDONE_MY_BSS
	.comm	_RXD_W0_L2PAD,4,2               ; @RXD_W0_L2PAD
	.comm	_RXDONE_L2PAD,4,2               ; @RXDONE_L2PAD
	.no_dead_strip	_rt2800usb_fill_rxdone
.subsections_via_symbols
