	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_dfs_init_params        ## -- Begin function mt76x02_dfs_init_params
	.p2align	4, 0x90
_mt76x02_dfs_init_params:               ## @mt76x02_dfs_init_params
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_NL80211_DFS_UNSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	_DFS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_MT_BBP
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mt76_wr
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_MT_BBP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$15, %edx
	callq	_mt76_wr
	movq	%rbx, %rdi
	callq	_mt76_chip
	movl	$266240129, %r15d               ## imm = 0xFDE8081
	cmpl	$30224, %eax                    ## imm = 0x7610
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_mt76_chip
	cmpl	$30256, %eax                    ## imm = 0x7630
	movl	$266240129, %r15d               ## imm = 0xFDE8081
	cmovnel	%r14d, %r15d
LBB0_5:
	movq	_IBI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$11, %esi
	callq	_MT_BBP
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mt76_wr
	movq	_MT_INT_GPTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76x02_irq_disable
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_init_sw_detector
	movq	%rbx, %rdi
	callq	_mt76x02_dfs_set_bbp_params
	movl	$1, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_mt76x02_dfs_set_capture_mode_ctrl
	movq	_MT_INT_GPTIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt76x02_irq_enable
LBB0_6:
	movq	_MT_INT_TIMER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_INT_TIMER_EN_GP_TIMER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_rmw_field                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
	.comm	_NL80211_DFS_UNSET,8,3          ## @NL80211_DFS_UNSET
	.comm	_MT_INT_GPTIMER,4,2             ## @MT_INT_GPTIMER
	.comm	_MT_INT_TIMER_EN,4,2            ## @MT_INT_TIMER_EN
	.comm	_MT_INT_TIMER_EN_GP_TIMER_EN,4,2 ## @MT_INT_TIMER_EN_GP_TIMER_EN
	.comm	_DFS,4,2                        ## @DFS
	.comm	_IBI,4,2                        ## @IBI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_dfs_init_params        ; -- Begin function mt76x02_dfs_init_params
	.p2align	2
_mt76x02_dfs_init_params:               ; @mt76x02_dfs_init_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _NL80211_DFS_UNSET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_DFS_UNSET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
	mov	w20, #32897
	movk	w20, #4062, lsl #16
Lloh6:
	adrp	x21, _DFS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _DFS@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_wr
	ldr	w0, [x21]
	mov	w1, #1
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #15
	bl	_mt76_wr
	mov	x0, x19
	bl	_mt76_chip
	mov	w8, #30224
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mt76_chip
	mov	w8, #30256
	cmp	w0, w8
	csel	w20, w20, wzr, eq
LBB0_4:
Lloh8:
	adrp	x8, _IBI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IBI@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #11
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
Lloh11:
	adrp	x8, _MT_INT_GPTIMER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MT_INT_GPTIMER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76x02_irq_disable
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_mt76x02_dfs_init_sw_detector
	mov	x0, x19
	bl	_mt76x02_dfs_set_bbp_params
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_mt76x02_dfs_set_capture_mode_ctrl
Lloh14:
	adrp	x8, _MT_INT_GPTIMER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MT_INT_GPTIMER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mt76x02_irq_enable
LBB0_6:
Lloh17:
	adrp	x8, _MT_INT_TIMER_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MT_INT_TIMER_EN@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MT_INT_TIMER_EN_GP_TIMER_EN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MT_INT_TIMER_EN_GP_TIMER_EN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	ldr	w2, [x9]
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mt76_rmw_field
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
	.comm	_NL80211_DFS_UNSET,8,3          ; @NL80211_DFS_UNSET
	.comm	_MT_INT_GPTIMER,4,2             ; @MT_INT_GPTIMER
	.comm	_MT_INT_TIMER_EN,4,2            ; @MT_INT_TIMER_EN
	.comm	_MT_INT_TIMER_EN_GP_TIMER_EN,4,2 ; @MT_INT_TIMER_EN_GP_TIMER_EN
	.comm	_DFS,4,2                        ; @DFS
	.comm	_IBI,4,2                        ; @IBI
.subsections_via_symbols
