	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_config_channel_rf3053
_rt2800_config_channel_rf3053:          ## @rt2800_config_channel_rf3053
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movl	$109, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -48(%rbp)
	movq	_BBP109_TX0_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_BBP109_TX1_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	$109, %esi
	callq	_rt2800_bbp_write
	movq	%r13, %rdi
	movl	$110, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -48(%rbp)
	movq	_BBP110_TX2_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	$110, %esi
	callq	_rt2800_bbp_write
	cmpl	$14, (%r14)
	jg	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	$25, %esi
	callq	_rt2800_bbp_write
	movl	4(%r15), %edx
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	movl	$25, %esi
	movl	$9, %edx
	callq	_rt2800_bbp_write
	movl	$255, %edx
LBB0_3:
	movq	%r13, %rdi
	movl	$26, %esi
	callq	_rt2800_bbp_write
	movl	4(%r14), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_rt2800_rfcsr_write
	movl	8(%r14), %edx
	andl	$15, %edx
	movq	%r13, %rdi
	movl	$9, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$11, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR11_R@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	andl	$3, %edx
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$11, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$11, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR11_PLL_IDOH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	xorl	%eax, %eax
	cmpl	$15, (%r14)
	setl	%al
	movl	$2, %edx
	subl	%eax, %edx
	movq	_RFCSR11_PLL_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$11, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$53, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	cmpl	$14, (%r14)
	jg	LBB0_5
## %bb.4:
	movl	$0, -44(%rbp)
	movq	_RFCSR53_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	andl	$31, %edx
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$64, -44(%rbp)
LBB0_7:
	movq	_RFCSR53_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %eax
	movl	%eax, %ecx
	andl	$24, %ecx
	andl	$7, %eax
	leal	(%rax,%rcx,2), %edx
LBB0_8:
	leaq	-44(%rbp), %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$53, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$55, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	cmpl	$14, (%r14)
	jg	LBB0_10
## %bb.9:
	movl	$0, -44(%rbp)
	movq	_RFCSR55_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	andl	$31, %edx
	jmp	LBB0_13
LBB0_10:
	movq	%r13, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$64, -44(%rbp)
LBB0_12:
	movq	_RFCSR55_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %eax
	movl	%eax, %ecx
	andl	$24, %ecx
	andl	$7, %eax
	leal	(%rax,%rcx,2), %edx
LBB0_13:
	leaq	-44(%rbp), %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$55, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$54, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	cmpl	$14, (%r14)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jg	LBB0_15
## %bb.14:
	movl	$0, -44(%rbp)
	movq	_RFCSR54_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	andl	$31, %edx
	jmp	LBB0_18
LBB0_15:
	movq	%r13, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	$64, -44(%rbp)
LBB0_17:
	movq	_RFCSR54_TX_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %eax
	movl	%eax, %ecx
	andl	$24, %ecx
	andl	$7, %eax
	leal	(%rax,%rcx,2), %edx
LBB0_18:
	leaq	-44(%rbp), %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$54, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR1_RX0_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_TX0_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_RX1_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_TX1_PD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_RX2_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_TX2_PD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_RF_BLOCK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR1_PLL_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movl	(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_23
## %bb.19:
	cmpl	$2, %eax
	je	LBB0_22
## %bb.20:
	cmpl	$3, %eax
	jne	LBB0_24
## %bb.21:
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_22:
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_23:
	movq	_RFCSR1_TX0_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_24:
	movl	4(%r13), %eax
	cmpl	$1, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_29
## %bb.25:
	cmpl	$2, %eax
	je	LBB0_28
## %bb.26:
	cmpl	$3, %eax
	jne	LBB0_30
## %bb.27:
	movq	_RFCSR1_RX2_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_28:
	movq	_RFCSR1_RX1_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_29:
	movq	_RFCSR1_RX0_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_30:
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	callq	_rt2800_freq_cal_mode1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_conf_is_ht40
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movl	8(%r15,%rbx,4), %edi
	movq	_RFCSR24_TX_AGC_FC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00_get_field8
	movq	%r15, %rcx
	movq	%r14, %r15
	movl	%eax, %r14d
	movl	8(%rcx,%rbx,4), %edi
	movq	_RFCSR24_TX_H20M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00_get_field8
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR32_TX_AGC_FC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movq	%r15, %r14
	callq	_rt2x00_set_field8
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
	orl	$4, %edx
	shll	$5, %edx
	movl	%edx, -44(%rbp)
	movq	%r13, %rdi
	movl	$31, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$30, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR30_TX_H20M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR30_RX_H20M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$30, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$36, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
	movq	_RFCSR36_RF_BS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$36, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$34, %esi
	callq	_rt2800_rfcsr_read
	cmpl	$15, (%r15)
	movl	$60, %edx
	movl	$32, %eax
	cmovgel	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	%r13, %rdi
	movl	$34, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_rt2800_rfcsr_read
	xorl	%eax, %eax
	cmpl	$15, (%r15)
	setl	%al
	leal	18(,%rax,8), %edx
	movl	%edx, -44(%rbp)
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movl	(%r15), %eax
	leal	-1(%rax), %ecx
	cmpl	$13, %ecx
	ja	LBB0_33
## %bb.31:
	movq	_RFCSR6_VCO_IC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_32
LBB0_33:
	leal	-36(%rax), %ecx
	cmpl	$28, %ecx
	ja	LBB0_35
## %bb.34:
	movq	_RFCSR6_VCO_IC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_36
LBB0_35:
	addl	$-100, %eax
	movq	_RFCSR6_VCO_IC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	$28, %eax
	ja	LBB0_32
LBB0_36:
	leaq	-44(%rbp), %rdi
	movl	$2, %edx
	jmp	LBB0_37
LBB0_32:
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
LBB0_37:
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$30, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR30_RX_VCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$30, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$46, %esi
	movl	$96, %edx
	callq	_rt2800_rfcsr_write
	xorl	%eax, %eax
	cmpl	$15, (%r14)
	setge	%al
	leal	211(%rax,%rax,4), %edx
	movl	$18, %eax
	movl	$35, %ebx
	cmovll	%eax, %ebx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$13, %esi
	movl	%ebx, %edx
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$51, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR51_BITS01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$51, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$51, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	xorl	%ebx, %ebx
	cmpl	$15, (%r14)
	setl	%bl
	leal	4(%rbx), %edx
	orl	$2, %ebx
	movq	_RFCSR51_BITS24@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_set_field8
	movq	_RFCSR51_BITS57@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$51, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$49, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	xorl	%edx, %edx
	cmpl	$15, (%r14)
	setl	%dl
	orl	$2, %edx
	movq	_RFCSR49_TX_LO1_IC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$49, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$50, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	movq	_RFCSR50_TX_LO1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$50, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$57, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	cmpl	$15, (%r14)
	movl	$27, %eax
	movl	$15, %edx
	cmovll	%eax, %edx
	movq	_RFCSR57_DRV_CC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$57, %esi
	callq	_rt2800_rfcsr_write
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	cmpl	$15, (%r14)
	setl	%bl
	setge	%al
	leal	147(,%rax,8), %edx
	shll	$6, %ebx
	orl	$5, %ebx
	movq	%r13, %rdi
	movl	$44, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$52, %esi
	movl	%ebx, %edx
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -44(%rbp)
	cmpl	$15, (%r14)
	jl	LBB0_39
## %bb.38:
	movq	_RFCSR3_BIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR3_BIT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR3_BIT3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR3_BIT4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movq	_RFCSR3_BIT5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
LBB0_39:
	movq	_RFCSR3_VCOCAL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movl	-44(%rbp), %edx
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_rt2800_rfcsr_write
	movl	(%r14), %eax
	leal	-1(%rax), %ecx
	cmpl	$13, %ecx
	ja	LBB0_41
## %bb.40:
	movl	$35, -44(%rbp)
	movl	$187, %ebx
	movl	$35, %edx
	jmp	LBB0_46
LBB0_41:
	leal	-36(%rax), %ecx
	cmpl	$28, %ecx
	ja	LBB0_43
## %bb.42:
	movl	$54, -44(%rbp)
	movl	$235, %ebx
	movl	$54, %edx
	jmp	LBB0_46
LBB0_43:
	addl	$-100, %eax
	cmpl	$28, %eax
	ja	LBB0_45
## %bb.44:
	movl	$50, -44(%rbp)
	movl	$179, %ebx
	movl	$50, %edx
	jmp	LBB0_46
LBB0_45:
	movl	$48, -44(%rbp)
	movl	$155, %ebx
	movl	$48, %edx
LBB0_46:
	movq	%r13, %rdi
	movl	$39, %esi
	callq	_rt2800_rfcsr_write
	movq	%r13, %rdi
	movl	$45, %esi
	movl	%ebx, %edx
	callq	_rt2800_rfcsr_write
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBP109_TX0_POWER,4,2           ## @BBP109_TX0_POWER
	.comm	_BBP109_TX1_POWER,4,2           ## @BBP109_TX1_POWER
	.comm	_BBP110_TX2_POWER,4,2           ## @BBP110_TX2_POWER
	.comm	_RFCSR11_R,4,2                  ## @RFCSR11_R
	.comm	_RFCSR11_PLL_IDOH,4,2           ## @RFCSR11_PLL_IDOH
	.comm	_RFCSR11_PLL_MOD,4,2            ## @RFCSR11_PLL_MOD
	.comm	_RFCSR53_TX_POWER,4,2           ## @RFCSR53_TX_POWER
	.comm	_RFCSR55_TX_POWER,4,2           ## @RFCSR55_TX_POWER
	.comm	_RFCSR54_TX_POWER,4,2           ## @RFCSR54_TX_POWER
	.comm	_RFCSR1_RX0_PD,4,2              ## @RFCSR1_RX0_PD
	.comm	_RFCSR1_TX0_PD,4,2              ## @RFCSR1_TX0_PD
	.comm	_RFCSR1_RX1_PD,4,2              ## @RFCSR1_RX1_PD
	.comm	_RFCSR1_TX1_PD,4,2              ## @RFCSR1_TX1_PD
	.comm	_RFCSR1_RX2_PD,4,2              ## @RFCSR1_RX2_PD
	.comm	_RFCSR1_TX2_PD,4,2              ## @RFCSR1_TX2_PD
	.comm	_RFCSR1_RF_BLOCK_EN,4,2         ## @RFCSR1_RF_BLOCK_EN
	.comm	_RFCSR1_PLL_PD,4,2              ## @RFCSR1_PLL_PD
	.comm	_RFCSR24_TX_AGC_FC,4,2          ## @RFCSR24_TX_AGC_FC
	.comm	_RFCSR24_TX_H20M,4,2            ## @RFCSR24_TX_H20M
	.comm	_RFCSR32_TX_AGC_FC,4,2          ## @RFCSR32_TX_AGC_FC
	.comm	_RFCSR30_TX_H20M,4,2            ## @RFCSR30_TX_H20M
	.comm	_RFCSR30_RX_H20M,4,2            ## @RFCSR30_RX_H20M
	.comm	_RFCSR36_RF_BS,4,2              ## @RFCSR36_RF_BS
	.comm	_RFCSR6_VCO_IC,4,2              ## @RFCSR6_VCO_IC
	.comm	_RFCSR30_RX_VCM,4,2             ## @RFCSR30_RX_VCM
	.comm	_RFCSR51_BITS01,4,2             ## @RFCSR51_BITS01
	.comm	_RFCSR51_BITS24,4,2             ## @RFCSR51_BITS24
	.comm	_RFCSR51_BITS57,4,2             ## @RFCSR51_BITS57
	.comm	_RFCSR49_TX_LO1_IC,4,2          ## @RFCSR49_TX_LO1_IC
	.comm	_RFCSR50_TX_LO1_EN,4,2          ## @RFCSR50_TX_LO1_EN
	.comm	_RFCSR57_DRV_CC,4,2             ## @RFCSR57_DRV_CC
	.comm	_RFCSR3_VCOCAL_EN,4,2           ## @RFCSR3_VCOCAL_EN
	.comm	_RFCSR3_BIT1,4,2                ## @RFCSR3_BIT1
	.comm	_RFCSR3_BIT2,4,2                ## @RFCSR3_BIT2
	.comm	_RFCSR3_BIT3,4,2                ## @RFCSR3_BIT3
	.comm	_RFCSR3_BIT4,4,2                ## @RFCSR3_BIT4
	.comm	_RFCSR3_BIT5,4,2                ## @RFCSR3_BIT5
	.comm	_RFCSR39_RX_DIV,4,2             ## @RFCSR39_RX_DIV
	.comm	_RFCSR49_TX_DIV,4,2             ## @RFCSR49_TX_DIV
	.no_dead_strip	_rt2800_config_channel_rf3053
.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_rf3053
_rt2800_config_channel_rf3053:          ; @rt2800_config_channel_rf3053
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #8]
	mov	w1, #109
	bl	_rt2800_bbp_read
	str	w0, [sp, #8]
Lloh0:
	adrp	x8, _BBP109_TX0_POWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBP109_TX0_POWER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh3:
	adrp	x8, _BBP109_TX1_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BBP109_TX1_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #109
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #110
	bl	_rt2800_bbp_read
	str	w0, [sp, #8]
Lloh6:
	adrp	x8, _BBP110_TX2_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBP110_TX2_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #110
	bl	_rt2800_bbp_write
	ldr	w8, [x20]
	cmp	w8, #14
	b.gt	LBB0_2
; %bb.1:
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #25
	bl	_rt2800_bbp_write
	ldr	w2, [x23, #4]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #25
	mov	w2, #9
	bl	_rt2800_bbp_write
	mov	w2, #255
LBB0_3:
	mov	x0, x19
	mov	w1, #26
	bl	_rt2800_bbp_write
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #8
	bl	_rt2800_rfcsr_write
	ldr	w8, [x20, #8]
	and	w2, w8, #0xf
	mov	x0, x19
	mov	w1, #9
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #11
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh9:
	adrp	x8, _RFCSR11_R@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RFCSR11_R@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	and	w2, w8, #0x3
	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, #11
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh12:
	adrp	x8, _RFCSR11_PLL_IDOH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RFCSR11_PLL_IDOH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w24, #1
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w8, [x20]
	cmp	w8, #15
	cinc	w2, w24, ge
Lloh15:
	adrp	x8, _RFCSR11_PLL_MOD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RFCSR11_PLL_MOD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	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, #53
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
Lloh18:
	adrp	x24, _RFCSR53_TX_POWER@GOTPAGE
Lloh19:
	ldr	x24, [x24, _RFCSR53_TX_POWER@GOTPAGEOFF]
	cmp	w8, #14
	b.gt	LBB0_5
; %bb.4:
	str	wzr, [sp, #12]
	ldr	w1, [x24]
	ldr	w8, [x22]
	and	w2, w8, #0x1f
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbz	x0, LBB0_7
; %bb.6:
	mov	w8, #64
	str	w8, [sp, #12]
LBB0_7:
	ldr	w1, [x24]
	ldr	w8, [x22]
	lsr	w9, w8, #3
	and	w2, w8, #0x7
	bfi	w2, w9, #4, #2
LBB0_8:
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #53
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #55
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #14
	b.gt	LBB0_10
; %bb.9:
	str	wzr, [sp, #12]
Lloh20:
	adrp	x8, _RFCSR55_TX_POWER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RFCSR55_TX_POWER@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w8, [x22, #4]
	and	w2, w8, #0x1f
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbz	x0, LBB0_12
; %bb.11:
	mov	w8, #64
	str	w8, [sp, #12]
LBB0_12:
Lloh23:
	adrp	x8, _RFCSR55_TX_POWER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RFCSR55_TX_POWER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w8, [x22, #4]
	lsr	w9, w8, #3
	and	w2, w8, #0x7
	bfi	w2, w9, #4, #2
LBB0_13:
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #55
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #54
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #14
	b.gt	LBB0_15
; %bb.14:
	str	wzr, [sp, #12]
Lloh26:
	adrp	x8, _RFCSR54_TX_POWER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RFCSR54_TX_POWER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w8, [x22, #8]
	and	w2, w8, #0x1f
	b	LBB0_18
LBB0_15:
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbz	x0, LBB0_17
; %bb.16:
	mov	w8, #64
	str	w8, [sp, #12]
LBB0_17:
Lloh29:
	adrp	x8, _RFCSR54_TX_POWER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RFCSR54_TX_POWER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w8, [x22, #8]
	lsr	w9, w8, #3
	and	w2, w8, #0x7
	bfi	w2, w9, #4, #2
LBB0_18:
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #54
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #1
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh32:
	adrp	x22, _RFCSR1_RX0_PD@GOTPAGE
Lloh33:
	ldr	x22, [x22, _RFCSR1_RX0_PD@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh34:
	adrp	x25, _RFCSR1_TX0_PD@GOTPAGE
Lloh35:
	ldr	x25, [x25, _RFCSR1_TX0_PD@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh36:
	adrp	x24, _RFCSR1_RX1_PD@GOTPAGE
Lloh37:
	ldr	x24, [x24, _RFCSR1_RX1_PD@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh38:
	adrp	x27, _RFCSR1_TX1_PD@GOTPAGE
Lloh39:
	ldr	x27, [x27, _RFCSR1_TX1_PD@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh40:
	adrp	x26, _RFCSR1_RX2_PD@GOTPAGE
Lloh41:
	ldr	x26, [x26, _RFCSR1_RX2_PD@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh42:
	adrp	x28, _RFCSR1_TX2_PD@GOTPAGE
Lloh43:
	ldr	x28, [x28, _RFCSR1_TX2_PD@GOTPAGEOFF]
	ldr	w1, [x28]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
Lloh44:
	adrp	x8, _RFCSR1_RF_BLOCK_EN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RFCSR1_RF_BLOCK_EN@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh47:
	adrp	x8, _RFCSR1_PLL_PD@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RFCSR1_PLL_PD@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_23
; %bb.19:
	cmp	w8, #2
	b.eq	LBB0_22
; %bb.20:
	cmp	w8, #3
	b.ne	LBB0_24
; %bb.21:
	ldr	w1, [x28]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_22:
	ldr	w1, [x27]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_23:
	ldr	w1, [x25]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_24:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.eq	LBB0_29
; %bb.25:
	cmp	w8, #2
	b.eq	LBB0_28
; %bb.26:
	cmp	w8, #3
	b.ne	LBB0_30
; %bb.27:
	ldr	w1, [x26]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_28:
	ldr	w1, [x24]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_29:
	ldr	w1, [x22]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_30:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #1
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	bl	_rt2800_freq_cal_mode1
	mov	x0, x21
	bl	_conf_is_ht40
	mov	w8, #12
	mov	w9, #8
	cmp	x0, #0
	csel	x22, x9, x8, eq
	ldr	w0, [x23, x22]
Lloh50:
	adrp	x8, _RFCSR24_TX_AGC_FC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _RFCSR24_TX_AGC_FC@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_rt2x00_get_field8
	mov	x21, x0
	ldr	w0, [x23, x22]
Lloh53:
	adrp	x8, _RFCSR24_TX_H20M@GOTPAGE
Lloh54:
	ldr	x8, [x8, _RFCSR24_TX_H20M@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	bl	_rt2x00_get_field8
	mov	x22, x0
	mov	w23, #32
	mov	x0, x19
	mov	w1, #32
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh56:
	adrp	x8, _RFCSR32_TX_AGC_FC@GOTPAGE
Lloh57:
	ldr	x8, [x8, _RFCSR32_TX_AGC_FC@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x21
	bl	_rt2x00_set_field8
	ldr	w8, [x20]
	mov	w9, #128
	mov	w10, #160
	cmp	w8, #15
	csel	w2, w10, w9, lt
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #31
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #30
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh59:
	adrp	x8, _RFCSR30_TX_H20M@GOTPAGE
Lloh60:
	ldr	x8, [x8, _RFCSR30_TX_H20M@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x22
	bl	_rt2x00_set_field8
Lloh62:
	adrp	x8, _RFCSR30_RX_H20M@GOTPAGE
Lloh63:
	ldr	x8, [x8, _RFCSR30_RX_H20M@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x22
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #30
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #36
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #15
	cset	w2, lt
Lloh65:
	adrp	x8, _RFCSR36_RF_BS@GOTPAGE
Lloh66:
	ldr	x8, [x8, _RFCSR36_RF_BS@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #36
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #34
	bl	_rt2800_rfcsr_read
	ldr	w8, [x20]
	mov	w9, #60
	cmp	w8, #15
	csel	w2, w9, w23, lt
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #34
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #12
	bl	_rt2800_rfcsr_read
	ldr	w8, [x20]
	mov	w9, #18
	mov	w10, #26
	cmp	w8, #15
	csel	w2, w10, w9, lt
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #12
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #6
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	sub	w9, w8, #1
	cmp	w9, #13
	b.hi	LBB0_32
; %bb.31:
Lloh68:
	adrp	x8, _RFCSR6_VCO_IC@GOTPAGE
Lloh69:
	ldr	x8, [x8, _RFCSR6_VCO_IC@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	b	LBB0_36
LBB0_32:
	sub	w9, w8, #36
	cmp	w9, #28
	b.hi	LBB0_34
; %bb.33:
Lloh71:
	adrp	x8, _RFCSR6_VCO_IC@GOTPAGE
Lloh72:
	ldr	x8, [x8, _RFCSR6_VCO_IC@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
	b	LBB0_35
LBB0_34:
	sub	w8, w8, #100
Lloh74:
	adrp	x9, _RFCSR6_VCO_IC@GOTPAGE
Lloh75:
	ldr	x9, [x9, _RFCSR6_VCO_IC@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x9]
	cmp	w8, #28
	b.hi	LBB0_36
LBB0_35:
	add	x0, sp, #12
	mov	w2, #2
	b	LBB0_37
LBB0_36:
	add	x0, sp, #12
	mov	w2, #1
LBB0_37:
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #6
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #30
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh77:
	adrp	x8, _RFCSR30_RX_VCM@GOTPAGE
Lloh78:
	ldr	x8, [x8, _RFCSR30_RX_VCM@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	mov	w22, #2
	add	x0, sp, #12
	mov	w2, #2
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #30
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #46
	mov	w2, #96
	bl	_rt2800_rfcsr_write
	ldr	w8, [x20]
	mov	w9, #216
	mov	w10, #211
	cmp	w8, #15
	csel	w2, w10, w9, lt
	mov	w8, #35
	mov	w9, #18
	csel	w21, w9, w8, lt
	mov	x0, x19
	mov	w1, #10
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #13
	mov	x2, x21
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #51
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh80:
	adrp	x8, _RFCSR51_BITS01@GOTPAGE
Lloh81:
	ldr	x8, [x8, _RFCSR51_BITS01@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #51
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #51
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #15
	mov	w8, #4
	cinc	w2, w8, lt
	cinc	w21, w22, lt
Lloh83:
	adrp	x8, _RFCSR51_BITS24@GOTPAGE
Lloh84:
	ldr	x8, [x8, _RFCSR51_BITS24@GOTPAGEOFF]
Lloh85:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field8
Lloh86:
	adrp	x8, _RFCSR51_BITS57@GOTPAGE
Lloh87:
	ldr	x8, [x8, _RFCSR51_BITS57@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x21
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #51
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #49
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #15
	cinc	w2, w22, lt
Lloh89:
	adrp	x8, _RFCSR49_TX_LO1_IC@GOTPAGE
Lloh90:
	ldr	x8, [x8, _RFCSR49_TX_LO1_IC@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	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
	mov	w1, #50
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
Lloh92:
	adrp	x8, _RFCSR50_TX_LO1_EN@GOTPAGE
Lloh93:
	ldr	x8, [x8, _RFCSR50_TX_LO1_EN@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #50
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #57
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	mov	w9, #15
	mov	w10, #27
	cmp	w8, #15
	csel	w2, w10, w9, lt
Lloh95:
	adrp	x8, _RFCSR57_DRV_CC@GOTPAGE
Lloh96:
	ldr	x8, [x8, _RFCSR57_DRV_CC@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #57
	bl	_rt2800_rfcsr_write
	ldr	w8, [x20]
	mov	w9, #155
	mov	w10, #147
	cmp	w8, #15
	csel	w2, w10, w9, lt
	mov	w8, #5
	mov	w9, #69
	csel	w21, w9, w8, lt
	mov	x0, x19
	mov	w1, #44
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #52
	mov	x2, x21
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #3
	bl	_rt2800_rfcsr_read
	str	w0, [sp, #12]
	ldr	w8, [x20]
	cmp	w8, #15
	b.lt	LBB0_39
; %bb.38:
Lloh98:
	adrp	x8, _RFCSR3_BIT1@GOTPAGE
Lloh99:
	ldr	x8, [x8, _RFCSR3_BIT1@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh101:
	adrp	x8, _RFCSR3_BIT2@GOTPAGE
Lloh102:
	ldr	x8, [x8, _RFCSR3_BIT2@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh104:
	adrp	x8, _RFCSR3_BIT3@GOTPAGE
Lloh105:
	ldr	x8, [x8, _RFCSR3_BIT3@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh107:
	adrp	x8, _RFCSR3_BIT4@GOTPAGE
Lloh108:
	ldr	x8, [x8, _RFCSR3_BIT4@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
Lloh110:
	adrp	x8, _RFCSR3_BIT5@GOTPAGE
Lloh111:
	ldr	x8, [x8, _RFCSR3_BIT5@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
LBB0_39:
Lloh113:
	adrp	x8, _RFCSR3_VCOCAL_EN@GOTPAGE
Lloh114:
	ldr	x8, [x8, _RFCSR3_VCOCAL_EN@GOTPAGEOFF]
Lloh115:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #3
	bl	_rt2800_rfcsr_write
	ldr	w8, [x20]
	sub	w9, w8, #1
	cmp	w9, #13
	b.hi	LBB0_41
; %bb.40:
	mov	w2, #35
	str	w2, [sp, #12]
	mov	w20, #187
	b	LBB0_46
LBB0_41:
	sub	w9, w8, #36
	cmp	w9, #28
	b.hi	LBB0_43
; %bb.42:
	mov	w2, #54
	str	w2, [sp, #12]
	mov	w20, #235
	b	LBB0_46
LBB0_43:
	sub	w8, w8, #100
	cmp	w8, #28
	b.hi	LBB0_45
; %bb.44:
	mov	w2, #50
	str	w2, [sp, #12]
	mov	w20, #179
	b	LBB0_46
LBB0_45:
	mov	w2, #48
	str	w2, [sp, #12]
	mov	w20, #155
LBB0_46:
	mov	x0, x19
	mov	w1, #39
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #45
	mov	x2, x20
	bl	_rt2800_rfcsr_write
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.cfi_endproc
                                        ; -- End function
	.comm	_BBP109_TX0_POWER,4,2           ; @BBP109_TX0_POWER
	.comm	_BBP109_TX1_POWER,4,2           ; @BBP109_TX1_POWER
	.comm	_BBP110_TX2_POWER,4,2           ; @BBP110_TX2_POWER
	.comm	_RFCSR11_R,4,2                  ; @RFCSR11_R
	.comm	_RFCSR11_PLL_IDOH,4,2           ; @RFCSR11_PLL_IDOH
	.comm	_RFCSR11_PLL_MOD,4,2            ; @RFCSR11_PLL_MOD
	.comm	_RFCSR53_TX_POWER,4,2           ; @RFCSR53_TX_POWER
	.comm	_RFCSR55_TX_POWER,4,2           ; @RFCSR55_TX_POWER
	.comm	_RFCSR54_TX_POWER,4,2           ; @RFCSR54_TX_POWER
	.comm	_RFCSR1_RX0_PD,4,2              ; @RFCSR1_RX0_PD
	.comm	_RFCSR1_TX0_PD,4,2              ; @RFCSR1_TX0_PD
	.comm	_RFCSR1_RX1_PD,4,2              ; @RFCSR1_RX1_PD
	.comm	_RFCSR1_TX1_PD,4,2              ; @RFCSR1_TX1_PD
	.comm	_RFCSR1_RX2_PD,4,2              ; @RFCSR1_RX2_PD
	.comm	_RFCSR1_TX2_PD,4,2              ; @RFCSR1_TX2_PD
	.comm	_RFCSR1_RF_BLOCK_EN,4,2         ; @RFCSR1_RF_BLOCK_EN
	.comm	_RFCSR1_PLL_PD,4,2              ; @RFCSR1_PLL_PD
	.comm	_RFCSR24_TX_AGC_FC,4,2          ; @RFCSR24_TX_AGC_FC
	.comm	_RFCSR24_TX_H20M,4,2            ; @RFCSR24_TX_H20M
	.comm	_RFCSR32_TX_AGC_FC,4,2          ; @RFCSR32_TX_AGC_FC
	.comm	_RFCSR30_TX_H20M,4,2            ; @RFCSR30_TX_H20M
	.comm	_RFCSR30_RX_H20M,4,2            ; @RFCSR30_RX_H20M
	.comm	_RFCSR36_RF_BS,4,2              ; @RFCSR36_RF_BS
	.comm	_RFCSR6_VCO_IC,4,2              ; @RFCSR6_VCO_IC
	.comm	_RFCSR30_RX_VCM,4,2             ; @RFCSR30_RX_VCM
	.comm	_RFCSR51_BITS01,4,2             ; @RFCSR51_BITS01
	.comm	_RFCSR51_BITS24,4,2             ; @RFCSR51_BITS24
	.comm	_RFCSR51_BITS57,4,2             ; @RFCSR51_BITS57
	.comm	_RFCSR49_TX_LO1_IC,4,2          ; @RFCSR49_TX_LO1_IC
	.comm	_RFCSR50_TX_LO1_EN,4,2          ; @RFCSR50_TX_LO1_EN
	.comm	_RFCSR57_DRV_CC,4,2             ; @RFCSR57_DRV_CC
	.comm	_RFCSR3_VCOCAL_EN,4,2           ; @RFCSR3_VCOCAL_EN
	.comm	_RFCSR3_BIT1,4,2                ; @RFCSR3_BIT1
	.comm	_RFCSR3_BIT2,4,2                ; @RFCSR3_BIT2
	.comm	_RFCSR3_BIT3,4,2                ; @RFCSR3_BIT3
	.comm	_RFCSR3_BIT4,4,2                ; @RFCSR3_BIT4
	.comm	_RFCSR3_BIT5,4,2                ; @RFCSR3_BIT5
	.comm	_RFCSR39_RX_DIV,4,2             ; @RFCSR39_RX_DIV
	.comm	_RFCSR49_TX_DIV,4,2             ; @RFCSR49_TX_DIV
	.no_dead_strip	_rt2800_config_channel_rf3053
.subsections_via_symbols
