	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_dfs_set_bbp_params
_mt76x02_dfs_set_bbp_params:            ## @mt76x02_dfs_set_bbp_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	%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, %r14
	movl	8(%rdi), %eax
	cmpl	$132, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$133, %eax
	jne	LBB0_2
## %bb.3:
	movq	_MT_DFS_NUM_ENGINES@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	jmp	LBB0_5
LBB0_4:
	movq	_MT_DFS_NUM_ENGINES@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	addq	%r15, %r15
	jmp	LBB0_5
LBB0_2:
	xorl	%r15d, %r15d
LBB0_5:
	movl	(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.8:
	cmpl	$131, %eax
	jne	LBB0_17
## %bb.9:
	movq	_etsi_radar_specs@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	_fcc_radar_specs@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	16(%r14), %rax
	movl	$-5250, %ecx                    ## imm = 0xEB7E
	addl	(%rax), %ecx
	cmpl	$101, %ecx
	jae	LBB0_11
## %bb.12:
	movq	_jp_w53_radar_specs@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_jp_w56_radar_specs@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %r13
	movq	_MT_DFS_VGA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movq	_MT_DFS_PWR_GAIN_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$12, %ecx
	orl	%eax, %ecx
	movq	_MT_DFS_PWR_DOWN_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	movq	_MT_DFS_SYM_ROUND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$4, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movq	_MT_DFS_DELTA_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	$15, %ebx
	orl	%edx, %ebx
	movq	_DFS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	$2, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_DFS_RX_PE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$16, %ebx
	movq	_MT_DFS_PKT_END_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %edi
	movl	$3, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_DFS_NUM_ENGINES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.14:
	imulq	$56, %r15, %rax
	addq	%rax, %r13
	addq	$52, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mt76_wr
	movl	-52(%r13), %eax
	movl	-48(%r13), %ebx
	shll	$16, %eax
	andl	$33488896, %eax                 ## imm = 0x1FF0000
	andl	$15, %ebx
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	-44(%r13), %eax
	shll	$16, %eax
	andl	$268369920, %eax                ## imm = 0xFFF0000
	movl	-40(%r13), %ebx
	movl	$4095, %ecx                     ## imm = 0xFFF
	andl	%ecx, %ebx
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	$5, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$7, %esi
	callq	_MT_BBP
	movl	-36(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$9, %esi
	callq	_MT_BBP
	movl	-32(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$11, %esi
	callq	_MT_BBP
	movl	-28(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$13, %esi
	callq	_MT_BBP
	movl	-24(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movl	-20(%r13), %eax
	shll	$16, %eax
	andl	$268369920, %eax                ## imm = 0xFFF0000
	movl	-16(%r13), %ebx
	movl	$4095, %ecx                     ## imm = 0xFFF
	andl	%ecx, %ebx
	orl	%eax, %ebx
	movl	(%r12), %edi
	movl	$14, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	-12(%r13), %ebx
	shll	$16, %ebx
	orl	-8(%r13), %ebx
	movl	(%r12), %edi
	movl	$15, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$17, %esi
	callq	_MT_BBP
	movl	-4(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$30, %esi
	callq	_MT_BBP
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movq	_MT_DFS_NUM_ENGINES@GOTPCREL(%rip), %rax
	incq	%r15
	movslq	(%rax), %rax
	addq	$56, %r13
	cmpq	%rax, %r15
	jb	LBB0_15
LBB0_16:
	movl	(%r12), %edi
	movl	$1, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$15, %edx
	callq	_mt76_wr
	movl	(%r12), %edi
	movl	$36, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$3, %edx
	callq	_mt76_wr
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_MT_BBP
	movq	_MT_DFS_CH_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$16, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_wr
	movq	_IBI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$11, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$204800001, %edx                ## imm = 0xC350001
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_DFS_NUM_ENGINES,4,2         ## @MT_DFS_NUM_ENGINES
	.comm	_fcc_radar_specs,8,3            ## @fcc_radar_specs
	.comm	_etsi_radar_specs,8,3           ## @etsi_radar_specs
	.comm	_jp_w53_radar_specs,8,3         ## @jp_w53_radar_specs
	.comm	_jp_w56_radar_specs,8,3         ## @jp_w56_radar_specs
	.comm	_MT_DFS_VGA_MASK,4,2            ## @MT_DFS_VGA_MASK
	.comm	_MT_DFS_PWR_GAIN_OFFSET,4,2     ## @MT_DFS_PWR_GAIN_OFFSET
	.comm	_MT_DFS_PWR_DOWN_TIME,4,2       ## @MT_DFS_PWR_DOWN_TIME
	.comm	_MT_DFS_SYM_ROUND,4,2           ## @MT_DFS_SYM_ROUND
	.comm	_MT_DFS_DELTA_DELAY,4,2         ## @MT_DFS_DELTA_DELAY
	.comm	_DFS,4,2                        ## @DFS
	.comm	_MT_DFS_RX_PE_MASK,4,2          ## @MT_DFS_RX_PE_MASK
	.comm	_MT_DFS_PKT_END_MASK,4,2        ## @MT_DFS_PKT_END_MASK
	.comm	_MT_DFS_CH_EN,4,2               ## @MT_DFS_CH_EN
	.comm	_IBI,4,2                        ## @IBI
	.no_dead_strip	_mt76x02_dfs_set_bbp_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_dfs_set_bbp_params
_mt76x02_dfs_set_bbp_params:            ; @mt76x02_dfs_set_bbp_params
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x22, _MT_DFS_NUM_ENGINES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MT_DFS_NUM_ENGINES@GOTPAGEOFF]
	cmp	w8, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #133
	b.ne	LBB0_4
; %bb.2:
	ldrsw	x21, [x22]
	b	LBB0_5
LBB0_3:
	ldrsw	x8, [x22]
	lsl	x21, x8, #1
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #131
	b.ne	LBB0_15
; %bb.8:
Lloh2:
	adrp	x8, _etsi_radar_specs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _etsi_radar_specs@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	mov	w9, #-5250
	add	w8, w8, w9
Lloh4:
	adrp	x9, _jp_w56_radar_specs@GOTPAGE
Lloh5:
	ldr	x9, [x9, _jp_w56_radar_specs@GOTPAGEOFF]
Lloh6:
	adrp	x10, _jp_w53_radar_specs@GOTPAGE
Lloh7:
	ldr	x10, [x10, _jp_w53_radar_specs@GOTPAGEOFF]
	cmp	w8, #101
	csel	x8, x10, x9, lo
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _fcc_radar_specs@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fcc_radar_specs@GOTPAGEOFF]
LBB0_11:
	ldr	x24, [x8]
Lloh10:
	adrp	x8, _MT_DFS_VGA_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_DFS_VGA_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MT_DFS_PWR_GAIN_OFFSET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MT_DFS_PWR_GAIN_OFFSET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	lsl	w9, w9, #12
	orr	w8, w9, w8, lsl #16
Lloh16:
	adrp	x9, _MT_DFS_PWR_DOWN_TIME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MT_DFS_PWR_DOWN_TIME@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #8
Lloh19:
	adrp	x9, _MT_DFS_SYM_ROUND@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MT_DFS_SYM_ROUND@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _MT_DFS_DELTA_DELAY@GOTPAGE
Lloh23:
	ldr	x10, [x10, _MT_DFS_DELTA_DELAY@GOTPAGEOFF]
	orr	w20, w8, w9, lsl #4
Lloh24:
	ldr	w8, [x10]
	bfxil	w20, w8, #0, #4
Lloh25:
	adrp	x23, _DFS@GOTPAGE
Lloh26:
	ldr	x23, [x23, _DFS@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #2
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
Lloh27:
	adrp	x8, _MT_DFS_RX_PE_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MT_DFS_RX_PE_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _MT_DFS_PKT_END_MASK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MT_DFS_PKT_END_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w20, w9, w8, lsl #16
	ldr	w0, [x23]
	mov	w1, #3
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
	ldr	w8, [x22]
	cbz	w8, LBB0_14
; %bb.12:
	mov	x20, #0
	mov	w8, #56
	madd	x8, x21, x8, x24
	add	x24, x8, #28
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	w1, #0
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
	ldp	w8, w9, [x24, #-28]
	and	w21, w9, #0xf
	bfi	w21, w8, #16, #9
	ldr	w0, [x23]
	mov	w1, #4
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	ldp	w8, w9, [x24, #-20]
	and	w21, w9, #0xfff
	bfi	w21, w8, #16, #12
	ldr	w0, [x23]
	mov	w1, #5
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #7
	bl	_MT_BBP
	mov	x1, x0
	ldur	w2, [x24, #-12]
	mov	x0, x19
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #9
	bl	_MT_BBP
	mov	x1, x0
	ldur	w2, [x24, #-8]
	mov	x0, x19
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #11
	bl	_MT_BBP
	mov	x1, x0
	ldur	w2, [x24, #-4]
	mov	x0, x19
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #13
	bl	_MT_BBP
	mov	x1, x0
	ldr	w2, [x24]
	mov	x0, x19
	bl	_mt76_wr
	ldp	w8, w9, [x24, #4]
	and	w21, w9, #0xfff
	bfi	w21, w8, #16, #12
	ldr	w0, [x23]
	mov	w1, #14
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	ldp	w8, w9, [x24, #12]
	orr	w21, w9, w8, lsl #16
	ldr	w0, [x23]
	mov	w1, #15
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #17
	bl	_MT_BBP
	mov	x1, x0
	ldr	w2, [x24, #20]
	mov	x0, x19
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #30
	bl	_MT_BBP
	mov	x1, x0
	ldr	w2, [x24, #24]
	mov	x0, x19
	bl	_mt76_wr
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x24, x24, #56
	cmp	x20, x8
	b.lo	LBB0_13
LBB0_14:
	ldr	w0, [x23]
	mov	w1, #1
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #15
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #36
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #3
	bl	_mt76_wr
	ldr	w0, [x23]
	mov	w1, #0
	bl	_MT_BBP
	mov	x1, x0
Lloh33:
	adrp	x8, _MT_DFS_CH_EN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MT_DFS_CH_EN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	lsl	w2, w8, #16
	mov	x0, x19
	bl	_mt76_wr
Lloh36:
	adrp	x8, _IBI@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IBI@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	w1, #11
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	movk	w2, #3125, lsl #16
	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	_mt76_wr
LBB0_15:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_DFS_NUM_ENGINES,4,2         ; @MT_DFS_NUM_ENGINES
	.comm	_fcc_radar_specs,8,3            ; @fcc_radar_specs
	.comm	_etsi_radar_specs,8,3           ; @etsi_radar_specs
	.comm	_jp_w53_radar_specs,8,3         ; @jp_w53_radar_specs
	.comm	_jp_w56_radar_specs,8,3         ; @jp_w56_radar_specs
	.comm	_MT_DFS_VGA_MASK,4,2            ; @MT_DFS_VGA_MASK
	.comm	_MT_DFS_PWR_GAIN_OFFSET,4,2     ; @MT_DFS_PWR_GAIN_OFFSET
	.comm	_MT_DFS_PWR_DOWN_TIME,4,2       ; @MT_DFS_PWR_DOWN_TIME
	.comm	_MT_DFS_SYM_ROUND,4,2           ; @MT_DFS_SYM_ROUND
	.comm	_MT_DFS_DELTA_DELAY,4,2         ; @MT_DFS_DELTA_DELAY
	.comm	_DFS,4,2                        ; @DFS
	.comm	_MT_DFS_RX_PE_MASK,4,2          ; @MT_DFS_RX_PE_MASK
	.comm	_MT_DFS_PKT_END_MASK,4,2        ; @MT_DFS_PKT_END_MASK
	.comm	_MT_DFS_CH_EN,4,2               ; @MT_DFS_CH_EN
	.comm	_IBI,4,2                        ; @IBI
	.no_dead_strip	_mt76x02_dfs_set_bbp_params
.subsections_via_symbols
