	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_false_cca_check
_mt7603_false_cca_check:                ## @mt7603_false_cca_check
	.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	%rdi, %r15
	movq	_MT_PHYCTRL_STAT_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt76_rr
	movl	%eax, %ebx
	movq	_MT_PHYCTRL_STAT_PD_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %r14d
	movq	_MT_PHYCTRL_STAT_PD_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %r12d
	movq	_MT_PHYCTRL_STAT_MDRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mt76_rr
	movl	%eax, %ebx
	movq	_MT_PHYCTRL_STAT_MDRDY_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	movl	%eax, %r13d
	movq	_MT_PHYCTRL_STAT_MDRDY_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	subl	%eax, %r12d
	movl	%r12d, (%r15)
	subl	%r13d, %r14d
	movl	%r14d, 4(%r15)
	movq	%r15, %rdi
	callq	_mt7603_cca_stats_reset
	leaq	24(%r15), %rdi
	callq	_mt76_get_min_avg_rssi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movl	4(%r15), %eax
	addl	(%r15), %eax
	cmpl	$601, %eax                      ## imm = 0x259
	jl	LBB0_4
## %bb.3:
	movl	8(%r15), %eax
	leal	2(%rax), %ecx
	testl	%eax, %eax
	movl	$-92, %eax
	cmovnel	%ecx, %eax
	movl	%eax, 8(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r15)
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_12
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_4:
	cmpl	$100, %eax
	jl	LBB0_7
## %bb.5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rsi
	addq	%rsi, %rsi
	addq	16(%r15), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	addl	$-2, %eax
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_12
LBB0_6:
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	addl	$-15, %r14d
	cmpl	%r14d, %eax
	jle	LBB0_12
LBB0_11:
	movl	%r14d, 8(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt7603_adjust_sensitivity      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_PHYCTRL_STAT_PD,4,2         ## @MT_PHYCTRL_STAT_PD
	.comm	_MT_PHYCTRL_STAT_PD_CCK,4,2     ## @MT_PHYCTRL_STAT_PD_CCK
	.comm	_MT_PHYCTRL_STAT_PD_OFDM,4,2    ## @MT_PHYCTRL_STAT_PD_OFDM
	.comm	_MT_PHYCTRL_STAT_MDRDY,4,2      ## @MT_PHYCTRL_STAT_MDRDY
	.comm	_MT_PHYCTRL_STAT_MDRDY_CCK,4,2  ## @MT_PHYCTRL_STAT_MDRDY_CCK
	.comm	_MT_PHYCTRL_STAT_MDRDY_OFDM,4,2 ## @MT_PHYCTRL_STAT_MDRDY_OFDM
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_mt7603_false_cca_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_false_cca_check
_mt7603_false_cca_check:                ; @mt7603_false_cca_check
	.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, x0
Lloh0:
	adrp	x8, _MT_PHYCTRL_STAT_PD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_PHYCTRL_STAT_PD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt76_rr
	mov	x20, x0
Lloh3:
	adrp	x8, _MT_PHYCTRL_STAT_PD_CCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_PHYCTRL_STAT_PD_CCK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	mov	x21, x0
Lloh6:
	adrp	x8, _MT_PHYCTRL_STAT_PD_OFDM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_PHYCTRL_STAT_PD_OFDM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_FIELD_GET
	mov	x20, x0
Lloh9:
	adrp	x8, _MT_PHYCTRL_STAT_MDRDY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_PHYCTRL_STAT_MDRDY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76_rr
	mov	x22, x0
Lloh12:
	adrp	x8, _MT_PHYCTRL_STAT_MDRDY_CCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MT_PHYCTRL_STAT_MDRDY_CCK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	mov	x23, x0
Lloh15:
	adrp	x8, _MT_PHYCTRL_STAT_MDRDY_OFDM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_PHYCTRL_STAT_MDRDY_OFDM@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_FIELD_GET
	sub	w8, w20, w0
	sub	w9, w21, w23
	stp	w8, w9, [x19]
	mov	x0, x19
	bl	_mt7603_cca_stats_reset
	add	x0, x19, #24
	bl	_mt76_get_min_avg_rssi
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldp	w8, w9, [x19]
	add	w8, w9, w8
	cmp	w8, #601
	b.lt	LBB0_4
; %bb.2:
	ldr	w8, [x19, #8]
	add	w9, w8, #2
	mov	w10, #-92
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x19, #8]
Lloh18:
	adrp	x9, _jiffies@GOTPAGE
Lloh19:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	str	x9, [x19, #16]
	cbnz	w8, LBB0_9
	b	LBB0_11
LBB0_3:
	mov	w9, #0
	b	LBB0_10
LBB0_4:
Lloh21:
	adrp	x21, _jiffies@GOTPAGE
Lloh22:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	cmp	w8, #100
	b.lt	LBB0_6
; %bb.5:
	ldr	x0, [x21]
	ldr	x8, [x19, #16]
Lloh23:
	adrp	x9, _HZ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh25:
	ldrsw	x9, [x9]
	mov	w10, #10
	madd	x1, x9, x10, x8
	bl	_time_after
	cbz	x0, LBB0_8
LBB0_6:
	ldr	x8, [x21]
	str	x8, [x19, #16]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.7:
	sub	w8, w8, #2
	str	w8, [x19, #8]
	cbnz	w8, LBB0_9
	b	LBB0_11
LBB0_8:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
LBB0_9:
	sub	w9, w20, #15
	cmp	w8, w9
	b.le	LBB0_11
LBB0_10:
	str	w9, [x19, #8]
Lloh26:
	adrp	x8, _jiffies@GOTPAGE
Lloh27:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_11:
	mov	x0, x19
	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	_mt7603_adjust_sensitivity
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_PHYCTRL_STAT_PD,4,2         ; @MT_PHYCTRL_STAT_PD
	.comm	_MT_PHYCTRL_STAT_PD_CCK,4,2     ; @MT_PHYCTRL_STAT_PD_CCK
	.comm	_MT_PHYCTRL_STAT_PD_OFDM,4,2    ; @MT_PHYCTRL_STAT_PD_OFDM
	.comm	_MT_PHYCTRL_STAT_MDRDY,4,2      ; @MT_PHYCTRL_STAT_MDRDY
	.comm	_MT_PHYCTRL_STAT_MDRDY_CCK,4,2  ; @MT_PHYCTRL_STAT_MDRDY_CCK
	.comm	_MT_PHYCTRL_STAT_MDRDY_OFDM,4,2 ; @MT_PHYCTRL_STAT_MDRDY_OFDM
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_mt7603_false_cca_check
.subsections_via_symbols
