	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_query_rx_desc
_rtw8822c_query_rx_desc:                ## @rtw8822c_query_rx_desc
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movslq	(%rax), %r13
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_GET_RX_DESC_PHYST
	movl	%eax, 12(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_ICV_ERR
	movl	%eax, 48(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_CRC32
	movl	%eax, 44(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_SWDEC
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, (%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_C2H
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_PKT_LEN
	movl	%eax, 40(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_DRV_INFO_SIZE
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_SHIFT
	movl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_RX_RATE
	movl	%eax, 36(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_MACID
	movl	%eax, 32(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_PPDU_CNT
	movl	%eax, 28(%rbx)
	movq	%r12, %rdi
	callq	_GET_RX_DESC_TSFL
	movl	%eax, 24(%rbx)
	movslq	4(%rbx), %rax
	shlq	$3, %rax
	movl	%eax, 4(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	(%r12,%r13,4), %rcx
	movslq	8(%rbx), %rdx
	leaq	(%rcx,%rdx,4), %r12
	leaq	(%r12,%rax,4), %r13
	cmpl	$0, 12(%rbx)
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_query_phy_status
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_rx_fill_rx_status          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtw8822c_query_rx_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_query_rx_desc
_rtw8822c_query_rx_desc:                ; @rtw8822c_query_rx_desc
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldrsw	x23, [x8]
	mov	x0, x2
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	x0, x22
	bl	_GET_RX_DESC_PHYST
	str	w0, [x20, #12]
	mov	x0, x22
	bl	_GET_RX_DESC_ICV_ERR
	str	w0, [x20, #48]
	mov	x0, x22
	bl	_GET_RX_DESC_CRC32
	str	w0, [x20, #44]
	mov	x0, x22
	bl	_GET_RX_DESC_SWDEC
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20]
	mov	x0, x22
	bl	_GET_RX_DESC_C2H
	str	x0, [x20, #16]
	mov	x0, x22
	bl	_GET_RX_DESC_PKT_LEN
	str	w0, [x20, #40]
	mov	x0, x22
	bl	_GET_RX_DESC_DRV_INFO_SIZE
	str	w0, [x20, #4]
	mov	x0, x22
	bl	_GET_RX_DESC_SHIFT
	str	w0, [x20, #8]
	mov	x0, x22
	bl	_GET_RX_DESC_RX_RATE
	str	w0, [x20, #36]
	mov	x0, x22
	bl	_GET_RX_DESC_MACID
	str	w0, [x20, #32]
	mov	x0, x22
	bl	_GET_RX_DESC_PPDU_CNT
	str	w0, [x20, #28]
	mov	x0, x22
	bl	_GET_RX_DESC_TSFL
	str	w0, [x20, #24]
	ldrsw	x8, [x20, #4]
	lsl	x8, x8, #3
	str	w8, [x20, #4]
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_2
; %bb.1:
	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
LBB0_2:
	add	x9, x22, x23, lsl #2
	ldp	w10, w11, [x20, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x23, x9, x10, lsl #2
	add	x22, x23, x8, lsl #2
	cbz	w11, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_query_phy_status
	b	LBB0_5
LBB0_4:
	mov	x23, #0
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	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
	b	_rtw_rx_fill_rx_status
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtw8822c_query_rx_desc
.subsections_via_symbols
