	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_config_channel_rf3290
_rt2800_config_channel_rf3290:          ## @rt2800_config_channel_rf3290
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	16(%rdx), %edx
	movl	$8, %esi
	callq	_rt2800_rfcsr_write
	movl	12(%r14), %edx
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -36(%rbp)
	movq	_RFCSR11_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_rt2x00_set_field8
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	movl	$11, %esi
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	movl	$49, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -36(%rbp)
	movq	(%r15), %rax
	movq	_POWER_BOUND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_RFCSR49_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movq	%r12, %rdi
	callq	_rt2x00_set_field8
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	movl	$49, %esi
	callq	_rt2800_rfcsr_write
	movq	%rbx, %rdi
	callq	_rt2800_freq_cal_mode1
	movl	8(%r14), %eax
	cmpl	$14, %eax
	jg	LBB0_5
## %bb.1:
	xorl	%edx, %edx
	cmpl	$6, %eax
	sete	%dl
	addl	$11, %edx
	movq	%rbx, %rdi
	movl	$68, %esi
	callq	_rt2800_bbp_write
	movl	8(%r14), %eax
	leal	-1(%rax), %ecx
	movl	$15, %edx
	cmpl	$6, %ecx
	jb	LBB0_4
## %bb.2:
	leal	-7(%rax), %ecx
	movl	$14, %edx
	cmpl	$5, %ecx
	jb	LBB0_4
## %bb.3:
	addl	$-12, %eax
	movl	$13, %edx
	cmpl	$2, %eax
	ja	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_rt2800_bbp_write
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFCSR11_R,4,2                  ## @RFCSR11_R
	.comm	_POWER_BOUND,8,3                ## @POWER_BOUND
	.comm	_RFCSR49_TX,4,2                 ## @RFCSR49_TX
	.no_dead_strip	_rt2800_config_channel_rf3290
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_config_channel_rf3290
_rt2800_config_channel_rf3290:          ; @rt2800_config_channel_rf3290
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	ldr	w2, [x2, #16]
	mov	w1, #8
	bl	_rt2800_rfcsr_write
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #9
	bl	_rt2800_rfcsr_write
	mov	w22, #11
	mov	x0, x19
	mov	w1, #11
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _RFCSR11_R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFCSR11_R@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x20]
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #11
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #49
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _POWER_BOUND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POWER_BOUND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _RFCSR49_TX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RFCSR49_TX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x10]
	cmp	x8, x9
	csel	x2, x8, x9, lt
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #49
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	bl	_rt2800_freq_cal_mode1
	ldr	w8, [x20, #8]
	cmp	w8, #14
	b.gt	LBB0_8
; %bb.1:
	cmp	w8, #6
	cinc	w2, w22, eq
	mov	x0, x19
	mov	w1, #68
	bl	_rt2800_bbp_write
	ldr	w8, [x20, #8]
	sub	w9, w8, #1
	cmp	w9, #6
	b.hs	LBB0_3
; %bb.2:
	mov	w2, #15
	b	LBB0_7
LBB0_3:
	sub	w9, w8, #7
	cmp	w9, #5
	b.hs	LBB0_5
; %bb.4:
	mov	w2, #14
	b	LBB0_7
LBB0_5:
	sub	w8, w8, #12
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.6:
	mov	w2, #13
LBB0_7:
	mov	x0, x19
	mov	w1, #59
	bl	_rt2800_bbp_write
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RFCSR11_R,4,2                  ; @RFCSR11_R
	.comm	_POWER_BOUND,8,3                ; @POWER_BOUND
	.comm	_RFCSR49_TX,4,2                 ; @RFCSR49_TX
	.no_dead_strip	_rt2800_config_channel_rf3290
.subsections_via_symbols
