	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_rx_error_check_edma
_wil_rx_error_check_edma:               ## @wil_rx_error_check_edma
	.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	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_wil_skb_rxstatus
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_wil_rx_status_get_l2_rx_status
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_wil_dbg_txrx
	movq	_WIL_RX_EDMA_ERROR_MIC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_wil_err_ratelimited
	incl	12(%r14)
LBB0_3:
	movq	_WIL_RX_EDMA_ERROR_KEY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_wil_err_ratelimited
	incl	8(%r14)
LBB0_5:
	movq	_WIL_RX_EDMA_ERROR_REPLAY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_wil_err_ratelimited
	incl	4(%r14)
LBB0_7:
	movq	_WIL_RX_EDMA_ERROR_AMSDU@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_wil_err_ratelimited
	incl	(%r14)
LBB0_9:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_10:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_wil_rx_status_get_checksum
	movl	%eax, (%r12)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L2 RX error, l2_rx_status=0x%x\n"

	.comm	_WIL_RX_EDMA_ERROR_MIC,4,2      ## @WIL_RX_EDMA_ERROR_MIC
L_.str.1:                               ## @.str.1
	.asciz	"L2 MIC/KEY error, dropping packet\n"

	.comm	_WIL_RX_EDMA_ERROR_KEY,4,2      ## @WIL_RX_EDMA_ERROR_KEY
L_.str.2:                               ## @.str.2
	.asciz	"L2 KEY error, dropping packet\n"

	.comm	_WIL_RX_EDMA_ERROR_REPLAY,4,2   ## @WIL_RX_EDMA_ERROR_REPLAY
L_.str.3:                               ## @.str.3
	.asciz	"L2 REPLAY error, dropping packet\n"

	.comm	_WIL_RX_EDMA_ERROR_AMSDU,4,2    ## @WIL_RX_EDMA_ERROR_AMSDU
L_.str.4:                               ## @.str.4
	.asciz	"L2 AMSDU error, dropping packet\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_wil_rx_error_check_edma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_rx_error_check_edma
_wil_rx_error_check_edma:               ; @wil_rx_error_check_edma
	.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, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wil_skb_rxstatus
	mov	x23, x0
	bl	_wil_rx_status_get_l2_rx_status
	cbz	w0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_wil_dbg_txrx
Lloh2:
	adrp	x8, _WIL_RX_EDMA_ERROR_MIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WIL_RX_EDMA_ERROR_MIC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wil_err_ratelimited
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_3:
Lloh7:
	adrp	x8, _WIL_RX_EDMA_ERROR_KEY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WIL_RX_EDMA_ERROR_KEY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wil_err_ratelimited
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_5:
Lloh12:
	adrp	x8, _WIL_RX_EDMA_ERROR_REPLAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WIL_RX_EDMA_ERROR_REPLAY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.6:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_wil_err_ratelimited
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_7:
Lloh17:
	adrp	x8, _WIL_RX_EDMA_ERROR_AMSDU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WIL_RX_EDMA_ERROR_AMSDU@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.8:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_wil_err_ratelimited
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:
Lloh22:
	adrp	x8, _EFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	x0, x23
	mov	x1, x19
	bl	_wil_rx_status_get_checksum
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22]
LBB0_11:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L2 RX error, l2_rx_status=0x%x\n"

	.comm	_WIL_RX_EDMA_ERROR_MIC,4,2      ; @WIL_RX_EDMA_ERROR_MIC
l_.str.1:                               ; @.str.1
	.asciz	"L2 MIC/KEY error, dropping packet\n"

	.comm	_WIL_RX_EDMA_ERROR_KEY,4,2      ; @WIL_RX_EDMA_ERROR_KEY
l_.str.2:                               ; @.str.2
	.asciz	"L2 KEY error, dropping packet\n"

	.comm	_WIL_RX_EDMA_ERROR_REPLAY,4,2   ; @WIL_RX_EDMA_ERROR_REPLAY
l_.str.3:                               ; @.str.3
	.asciz	"L2 REPLAY error, dropping packet\n"

	.comm	_WIL_RX_EDMA_ERROR_AMSDU,4,2    ; @WIL_RX_EDMA_ERROR_AMSDU
l_.str.4:                               ; @.str.4
	.asciz	"L2 AMSDU error, dropping packet\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_wil_rx_error_check_edma
.subsections_via_symbols
