	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_dfs_tasklet
_mt76x02_dfs_tasklet:                   ## @mt76x02_dfs_tasklet
	.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, %rbx
	movq	_MT76_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movq	_MT_INT_GPTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76x02_irq_enable
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_MT_DFS_SW_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_time_is_before_jiffies
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_add_events
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_check_detection
	testl	%eax, %eax
	je	LBB0_3
## %bb.14:
	movl	(%rbx), %edi
	callq	_ieee80211_radar_detected
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76x02_dfs_detector_reset     ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_check_event_window
LBB0_4:
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_MT_BBP
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movl	%eax, %r14d
	testb	$15, %r14b
	je	LBB0_12
## %bb.5:
	movq	_MT_DFS_NUM_ENGINES@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r12d, %r14d
	jae	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r12d, -48(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt76x02_dfs_get_hw_pulse
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt76x02_dfs_check_hw_pulse
	movq	8(%rbx), %rcx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	4(%rcx,%r12,8)
	movl	(%r13), %eax
	jmp	LBB0_10
LBB0_11:
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_MT_BBP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$15, %edx
	callq	_mt76_wr
	jmp	LBB0_12
LBB0_15:
	incl	(%rcx,%r12,8)
	movl	(%rbx), %edi
	callq	_ieee80211_radar_detected
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_detector_reset
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MT76_SCANNING,4,2              ## @MT76_SCANNING
	.comm	_MT_DFS_SW_TIMEOUT,8,3          ## @MT_DFS_SW_TIMEOUT
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DFS,4,2                        ## @DFS
	.comm	_MT_DFS_NUM_ENGINES,4,2         ## @MT_DFS_NUM_ENGINES
	.comm	_MT_INT_GPTIMER,4,2             ## @MT_INT_GPTIMER
	.no_dead_strip	_mt76x02_dfs_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_dfs_tasklet
_mt76x02_dfs_tasklet:                   ; @mt76x02_dfs_tasklet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MT76_SCANNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT76_SCANNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	x0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _MT_INT_GPTIMER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_INT_GPTIMER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76x02_irq_enable
LBB0_2:
	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
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _MT_DFS_SW_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT_DFS_SW_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_time_is_before_jiffies
	cbz	x0, LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_mt76x02_dfs_add_events
	mov	x0, x19
	bl	_mt76x02_dfs_check_detection
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	bl	_ieee80211_radar_detected
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_mt76x02_dfs_detector_reset
LBB0_6:
	mov	x0, x19
	bl	_mt76x02_dfs_check_event_window
LBB0_7:
Lloh12:
	adrp	x21, _DFS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _DFS@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #1
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	tst	w0, #0xf
	b.eq	LBB0_1
; %bb.8:
Lloh14:
	adrp	x22, _MT_DFS_NUM_ENGINES@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MT_DFS_NUM_ENGINES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x20, x0
	mov	x23, #0
	mov	x24, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	add	x23, x23, #8
	cmp	x24, w8, sxtw
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsr	w9, w20, w24
	tbz	w9, #0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	w24, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_mt76x02_dfs_get_hw_pulse
	add	x1, sp, #8
	mov	x0, x19
	bl	_mt76x02_dfs_check_hw_pulse
	ldr	x8, [x19, #8]
	cbnz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, x23
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	w8, [x22]
	b	LBB0_10
LBB0_14:
	ldr	w0, [x21]
	mov	w1, #1
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #15
	bl	_mt76_wr
	b	LBB0_1
LBB0_15:
	ldr	w9, [x8, x23]
	add	w9, w9, #1
	str	w9, [x8, x23]
	ldr	w0, [x19]
	bl	_ieee80211_radar_detected
	mov	x0, x19
	bl	_mt76x02_dfs_detector_reset
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MT76_SCANNING,4,2              ; @MT76_SCANNING
	.comm	_MT_DFS_SW_TIMEOUT,8,3          ; @MT_DFS_SW_TIMEOUT
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DFS,4,2                        ; @DFS
	.comm	_MT_DFS_NUM_ENGINES,4,2         ; @MT_DFS_NUM_ENGINES
	.comm	_MT_INT_GPTIMER,4,2             ; @MT_INT_GPTIMER
	.no_dead_strip	_mt76x02_dfs_tasklet
.subsections_via_symbols
