	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_dfs_check_event
_mt76x02_dfs_check_event:               ## @mt76x02_dfs_check_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$1, %eax
	cmpl	$2, (%rsi)
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movl	24(%r14), %edi
	movq	_MT_DFS_EVENT_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt76_decr
	movq	%rax, %rcx
	movq	8(%rbx), %rax
	movq	16(%r14), %rdx
	shlq	$4, %rcx
	subq	(%rdx,%rcx), %rax
	movq	_MT_DFS_EVENT_TIME_MARGIN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jge	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$199, 8(%rdx,%rcx)
	jg	LBB0_4
LBB0_3:
	movl	$1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_DFS_EVENT_BUFLEN,4,2        ## @MT_DFS_EVENT_BUFLEN
	.comm	_MT_DFS_EVENT_TIME_MARGIN,8,3   ## @MT_DFS_EVENT_TIME_MARGIN
	.no_dead_strip	_mt76x02_dfs_check_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_dfs_check_event
_mt76x02_dfs_check_event:               ; @mt76x02_dfs_check_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1]
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x20, [x0]
	ldr	w0, [x20, #24]
Lloh0:
	adrp	x8, _MT_DFS_EVENT_BUFLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_DFS_EVENT_BUFLEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt76_decr
	ldr	x8, [x20, #16]
	lsl	x9, x0, #4
	ldr	x9, [x8, x9]
	ldr	x10, [x19, #8]
Lloh3:
	adrp	x11, _MT_DFS_EVENT_TIME_MARGIN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MT_DFS_EVENT_TIME_MARGIN@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	sub	x9, x10, x9
	cmp	x9, x11
	b.ge	LBB0_4
; %bb.2:
	add	x8, x8, x0, lsl #4
	ldr	w8, [x8, #8]
	cmp	w8, #199
	b.le	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_DFS_EVENT_BUFLEN,4,2        ; @MT_DFS_EVENT_BUFLEN
	.comm	_MT_DFS_EVENT_TIME_MARGIN,8,3   ; @MT_DFS_EVENT_TIME_MARGIN
	.no_dead_strip	_mt76x02_dfs_check_event
.subsections_via_symbols
