	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_phy_dfs_adjust_agc     ## -- Begin function mt76x02_phy_dfs_adjust_agc
	.p2align	4, 0x90
_mt76x02_phy_dfs_adjust_agc:            ## @mt76x02_phy_dfs_adjust_agc
	.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
	movq	_AGC@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$8, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movl	%eax, %r15d
	movl	(%r13), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movl	%r15d, %r12d
	shrl	$9, %r12d
	andl	$63, %r12d
	andl	$-520093697, %eax               ## imm = 0xE0FFFFFF
	movl	%r12d, %ebx
	shll	$23, %ebx
	addl	$8388608, %ebx                  ## imm = 0x800000
	andl	$1056964608, %ebx               ## imm = 0x3F000000
	addl	%eax, %ebx
	movl	(%r13), %edi
	movl	$4, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt76_wr
	movq	_MT_BBP_AGC_LNA_HIGH_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_FIELD_GET
	shrl	$3, %r15d
	andl	$7, %r15d
	subl	%r15d, %r12d
	addl	%eax, %r12d
	shll	$16, %r12d
	orl	$775, %r12d                     ## imm = 0x307
	movq	_DFS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$31, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_mt76_wr
	movq	%r14, %rdi
	callq	_is_mt76x2
	movl	(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	$32, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$262257, %edx                   ## imm = 0x40071
	jmp	LBB0_2
LBB0_3:
	xorl	%esi, %esi
	callq	_MT_BBP
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mt76_wr
	movl	(%rbx), %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
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_wr                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AGC,4,2                        ## @AGC
	.comm	_MT_BBP_AGC_LNA_HIGH_GAIN,4,2   ## @MT_BBP_AGC_LNA_HIGH_GAIN
	.comm	_DFS,4,2                        ## @DFS
	.comm	_MT_DFS_CH_EN,4,2               ## @MT_DFS_CH_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_phy_dfs_adjust_agc     ; -- Begin function mt76x02_phy_dfs_adjust_agc
	.p2align	2
_mt76x02_phy_dfs_adjust_agc:            ; @mt76x02_phy_dfs_adjust_agc
	.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	x22, _AGC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AGC@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #8
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	mov	x20, x0
	ldr	w0, [x22]
	mov	w1, #4
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	bl	_mt76_rr
	ubfx	w23, w20, #9, #6
	and	w8, w0, #0xe0ffffff
	lsl	w9, w23, #23
	add	w9, w9, #2048, lsl #12          ; =8388608
	and	w9, w9, #0x3f000000
	add	w21, w9, w8
	ldr	w0, [x22]
	mov	w1, #4
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt76_wr
Lloh2:
	adrp	x8, _MT_BBP_AGC_LNA_HIGH_GAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_BBP_AGC_LNA_HIGH_GAIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_FIELD_GET
	ubfx	w8, w20, #3, #3
	sub	w8, w23, w8
	add	w8, w8, w0
	mov	w20, #775
	bfi	w20, w8, #16, #16
Lloh5:
	adrp	x21, _DFS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _DFS@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #31
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_mt76_wr
	mov	x0, x19
	bl	_is_mt76x2
	mov	x8, x0
	ldr	w0, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w1, #32
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #113
	movk	w2, #4, lsl #16
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	bl	_MT_BBP
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_mt76_wr
	ldr	w0, [x21]
	mov	w1, #0
	bl	_MT_BBP
	mov	x1, x0
Lloh7:
	adrp	x8, _MT_DFS_CH_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MT_DFS_CH_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w2, w8, #16
	mov	x0, x19
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AGC,4,2                        ; @AGC
	.comm	_MT_BBP_AGC_LNA_HIGH_GAIN,4,2   ; @MT_BBP_AGC_LNA_HIGH_GAIN
	.comm	_DFS,4,2                        ; @DFS
	.comm	_MT_DFS_CH_EN,4,2               ; @MT_DFS_CH_EN
.subsections_via_symbols
