	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_mac_process_rx            ## -- Begin function mt76_mac_process_rx
	.p2align	4, 0x90
_mt76_mac_process_rx:                   ## @mt76_mac_process_rx
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_IEEE80211_SKB_RXCB
	movq	%rax, %r12
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	4(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MT_RXWI_CTL_MPDU_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$10, %ecx
	jl	LBB0_10
## %bb.1:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r13), %ebx
	movq	_MT_RXINFO_DECRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	movq	_RX_FLAG_DECRYPTED@GOTPCREL(%rip), %rax
	movl	24(%r12), %ecx
	orl	(%rax), %ecx
	movq	_RX_FLAG_MMIC_STRIPPED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RX_FLAG_MIC_STRIPPED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RX_FLAG_ICV_STRIPPED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%r12)
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	movq	_MT_RXINFO_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_RX_FLAG_IV_STRIPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r12)
LBB0_5:
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, 20(%r12)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_mt7601u_phy_get_rssi
	movl	%eax, %r14d
	movl	%eax, 8(%r12)
	movq	(%r12), %rax
	movl	%r14d, (%rax)
	movq	8(%r15), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 16(%r12)
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mt76_mac_process_rate
	movq	%r15, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_mt7601u_rx_is_our_beacon
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_mt7601u_rx_monitor_beacon
	jmp	LBB0_9
LBB0_7:
	movl	(%r13), %ebx
	movq	_MT_RXINFO_U2M@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	testl	%ebx, %eax
	je	LBB0_9
## %bb.8:
	leaq	4(%r15), %rdi
	negl	%r14d
	movl	%r14d, %esi
	callq	_ewma_rssi_add
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_RXWI_CTL_MPDU_LEN,4,2       ## @MT_RXWI_CTL_MPDU_LEN
	.comm	_MT_RXINFO_DECRYPT,4,2          ## @MT_RXINFO_DECRYPT
	.comm	_RX_FLAG_DECRYPTED,4,2          ## @RX_FLAG_DECRYPTED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ## @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_MIC_STRIPPED,4,2       ## @RX_FLAG_MIC_STRIPPED
	.comm	_RX_FLAG_ICV_STRIPPED,4,2       ## @RX_FLAG_ICV_STRIPPED
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ## @RX_FLAG_IV_STRIPPED
	.comm	_MT_RXINFO_PN_LEN,4,2           ## @MT_RXINFO_PN_LEN
	.comm	_MT_RXINFO_U2M,4,2              ## @MT_RXINFO_U2M
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_mac_process_rx            ; -- Begin function mt76_mac_process_rx
	.p2align	2
_mt76_mac_process_rx:                   ; @mt76_mac_process_rx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x1
	bl	_IEEE80211_SKB_RXCB
	mov	x24, x0
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh0:
	adrp	x8, _MT_RXWI_CTL_MPDU_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_RXWI_CTL_MPDU_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	cmp	w0, #10
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_11
LBB0_2:
	mov	x20, x0
	ldr	w26, [x21]
Lloh3:
	adrp	x8, _MT_RXINFO_DECRYPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_RXINFO_DECRYPT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
Lloh6:
	adrp	x25, _RX_FLAG_IV_STRIPPED@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RX_FLAG_IV_STRIPPED@GOTPAGEOFF]
	tst	w0, w26
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _RX_FLAG_DECRYPTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_FLAG_DECRYPTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x24, #24]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RX_FLAG_MMIC_STRIPPED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _RX_FLAG_MIC_STRIPPED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RX_FLAG_MIC_STRIPPED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _RX_FLAG_ICV_STRIPPED@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RX_FLAG_ICV_STRIPPED@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh19:
	ldr	w9, [x10]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x24, #24]
LBB0_4:
	ldr	w26, [x21]
Lloh20:
	adrp	x8, _MT_RXINFO_PN_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_RXINFO_PN_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	tst	w0, w26
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x25]
	ldr	w9, [x24, #24]
	bic	w8, w9, w8
	str	w8, [x24, #24]
LBB0_6:
	mov	w0, #0
	bl	_BIT
	str	w0, [x24, #20]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_mt7601u_phy_get_rssi
	mov	x25, x0
	str	w0, [x24, #8]
	ldr	x8, [x24]
	str	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	d0, [x8]
	stur	d0, [x24, #12]
	mov	x0, x24
	mov	x1, x23
	bl	_mt76_mac_process_rate
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x22
	bl	_mt7601u_rx_is_our_beacon
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	bl	_mt7601u_rx_monitor_beacon
	b	LBB0_10
LBB0_8:
	ldr	w21, [x21]
Lloh23:
	adrp	x8, _MT_RXINFO_U2M@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MT_RXINFO_U2M@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	tst	w0, w21
	b.eq	LBB0_10
; %bb.9:
	add	x0, x19, #4
	neg	w1, w25
	bl	_ewma_rssi_add
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_RXWI_CTL_MPDU_LEN,4,2       ; @MT_RXWI_CTL_MPDU_LEN
	.comm	_MT_RXINFO_DECRYPT,4,2          ; @MT_RXINFO_DECRYPT
	.comm	_RX_FLAG_DECRYPTED,4,2          ; @RX_FLAG_DECRYPTED
	.comm	_RX_FLAG_MMIC_STRIPPED,4,2      ; @RX_FLAG_MMIC_STRIPPED
	.comm	_RX_FLAG_MIC_STRIPPED,4,2       ; @RX_FLAG_MIC_STRIPPED
	.comm	_RX_FLAG_ICV_STRIPPED,4,2       ; @RX_FLAG_ICV_STRIPPED
	.comm	_RX_FLAG_IV_STRIPPED,4,2        ; @RX_FLAG_IV_STRIPPED
	.comm	_MT_RXINFO_PN_LEN,4,2           ; @MT_RXINFO_PN_LEN
	.comm	_MT_RXINFO_U2M,4,2              ; @MT_RXINFO_U2M
.subsections_via_symbols
