	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_config_channel_rf3322
_rt2800_config_channel_rf3322:          ## @rt2800_config_channel_rf3322
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movl	(%rdx), %edx
	movl	$8, %esi
	callq	_rt2800_rfcsr_write
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$11, %esi
	movl	$66, %edx
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$12, %esi
	movl	$28, %edx
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$13, %esi
	xorl	%edx, %edx
	callq	_rt2800_rfcsr_write
	movl	(%r14), %eax
	movq	_POWER_BOUND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_rt2800_rfcsr_write
	movl	4(%r14), %eax
	movl	(%rbx), %edx
	cmpl	%edx, %eax
	cmovll	%eax, %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	callq	_rt2800_freq_cal_mode1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -28(%rbp)
	movq	_RFCSR1_RX0_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_TX0_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	xorl	%edx, %edx
	cmpl	$2, (%r15)
	sete	%dl
	movq	_RFCSR1_TX1_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_set_field8
	xorl	%edx, %edx
	cmpl	$2, 4(%r15)
	sete	%dl
	movq	_RFCSR1_RX1_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_set_field8
	movq	_RFCSR1_RX2_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_TX2_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movl	-28(%rbp), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_rt2800_rfcsr_write
	movq	%r15, %rdi
	movl	$31, %esi
	movl	$80, %edx
	callq	_rt2800_rfcsr_write
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_BOUND,4,2                ## @POWER_BOUND
	.comm	_RFCSR1_RX0_PD,4,2              ## @RFCSR1_RX0_PD
	.comm	_RFCSR1_TX0_PD,4,2              ## @RFCSR1_TX0_PD
	.comm	_RFCSR1_TX1_PD,4,2              ## @RFCSR1_TX1_PD
	.comm	_RFCSR1_RX1_PD,4,2              ## @RFCSR1_RX1_PD
	.comm	_RFCSR1_RX2_PD,4,2              ## @RFCSR1_RX2_PD
	.comm	_RFCSR1_TX2_PD,4,2              ## @RFCSR1_TX2_PD
	.no_dead_strip	_rt2800_config_channel_rf3322
.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_rf3322
_rt2800_config_channel_rf3322:          ; @rt2800_config_channel_rf3322
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	w2, [x2]
	mov	w1, #8
	bl	_rt2800_rfcsr_write
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	w1, #9
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #11
	mov	w2, #66
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #12
	mov	w2, #28
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #13
	mov	w2, #0
	bl	_rt2800_rfcsr_write
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _POWER_BOUND@GOTPAGE
Lloh1:
	ldr	x21, [x21, _POWER_BOUND@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w2, w8, w9, lt
	mov	x0, x19
	mov	w1, #47
	bl	_rt2800_rfcsr_write
	ldr	w8, [x20, #4]
	ldr	w9, [x21]
	cmp	w8, w9
	csel	w2, w8, w9, lt
	mov	x0, x19
	mov	w1, #48
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	bl	_rt2800_freq_cal_mode1
	mov	x0, x19
	mov	w1, #1
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh2:
	adrp	x8, _RFCSR1_RX0_PD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFCSR1_RX0_PD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh5:
	adrp	x8, _RFCSR1_TX0_PD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFCSR1_TX0_PD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w8, [x19]
	cmp	w8, #2
	cset	w2, eq
Lloh8:
	adrp	x8, _RFCSR1_TX1_PD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RFCSR1_TX1_PD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w8, [x19, #4]
	cmp	w8, #2
	cset	w2, eq
Lloh11:
	adrp	x8, _RFCSR1_RX1_PD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RFCSR1_RX1_PD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field8
Lloh14:
	adrp	x8, _RFCSR1_RX2_PD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RFCSR1_RX2_PD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh17:
	adrp	x8, _RFCSR1_TX2_PD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RFCSR1_TX2_PD@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #1
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #31
	mov	w2, #80
	bl	_rt2800_rfcsr_write
	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	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_BOUND,4,2                ; @POWER_BOUND
	.comm	_RFCSR1_RX0_PD,4,2              ; @RFCSR1_RX0_PD
	.comm	_RFCSR1_TX0_PD,4,2              ; @RFCSR1_TX0_PD
	.comm	_RFCSR1_TX1_PD,4,2              ; @RFCSR1_TX1_PD
	.comm	_RFCSR1_RX1_PD,4,2              ; @RFCSR1_RX1_PD
	.comm	_RFCSR1_RX2_PD,4,2              ; @RFCSR1_RX2_PD
	.comm	_RFCSR1_TX2_PD,4,2              ; @RFCSR1_TX2_PD
	.no_dead_strip	_rt2800_config_channel_rf3322
.subsections_via_symbols
