	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_config_channel
_rt2800_config_channel:                 ## @rt2800_config_channel
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	movl	(%rdx), %esi
	movq	16(%rcx), %rdx
	callq	_rt2800_txpower_to_dev
	movq	%rax, 16(%rbx)
	movl	(%r15), %esi
	movq	8(%rbx), %rdx
	movq	%r12, %rdi
	callq	_rt2800_txpower_to_dev
	movq	%rax, 8(%rbx)
	cmpl	$3, 4(%r12)
	jl	LBB0_2
## %bb.1:
	movl	(%r15), %esi
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	callq	_rt2800_txpower_to_dev
	movq	%rax, (%rbx)
LBB0_2:
	cmpl	$128, 12(%r12)
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_rt3883_bbp_adjust
LBB0_4:
	movl	$-129, %eax
	addl	16(%r12), %eax
	cmpl	$19, %eax
	ja	LBB0_101
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf53xx
	jmp	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf3xxx
LBB0_8:
	movq	%r12, %rdi
	movl	$142, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_18
## %bb.9:
	movq	%r12, %rdi
	movl	$141, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:
	movq	%r12, %rdi
	movl	$139, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.11:
	movq	%r12, %rdi
	movl	$137, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	%r12, %rdi
	movl	$136, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:
	movq	%r12, %rdi
	movl	$135, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:
	movq	%r12, %rdi
	movl	$134, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:
	movq	%r12, %rdi
	movl	$133, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	%r12, %rdi
	movl	$132, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movl	$131, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	je	LBB0_19
LBB0_18:
	movq	%r12, %rdi
	movl	$30, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -68(%rbp)
	movq	%r12, %rdi
	movl	$139, %esi
	callq	_rt2x00_rf
	testq	%rax, %rax
	movq	_RF3322_RFCSR30_TX_H20M@GOTPCREL(%rip), %rax
	cmoveq	_RFCSR30_TX_H20M@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_RF3322_RFCSR30_RX_H20M@GOTPCREL(%rip), %rbx
	cmoveq	_RFCSR30_RX_H20M@GOTPCREL(%rip), %rbx
	movq	%r13, %rdi
	callq	_conf_is_ht40
	leaq	-68(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rt2x00_set_field8
	movl	(%rbx), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_conf_is_ht40
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rt2x00_set_field8
	movl	-68(%rbp), %edx
	movq	%r12, %rdi
	movl	$30, %esi
	callq	_rt2800_rfcsr_write
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_rt2800_rfcsr_read
	movl	%eax, -68(%rbp)
	movq	_RFCSR3_VCOCAL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	$1, %edx
	callq	_rt2x00_set_field8
	movl	-68(%rbp), %edx
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_rt2800_rfcsr_write
LBB0_19:
	movq	_RT3352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	$55, %ebx
	movl	$55, %edx
	subl	(%r12), %edx
	movq	%r12, %rdi
	movl	$62, %esi
	callq	_rt2800_bbp_write
	movl	$55, %edx
	subl	(%r12), %edx
	movq	%r12, %rdi
	movl	$63, %esi
	callq	_rt2800_bbp_write
	subl	(%r12), %ebx
	movq	%r12, %rdi
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$27, %esi
	xorl	%edx, %edx
	callq	_rt2800_bbp_write
	movl	(%r12), %edx
	addl	$38, %edx
	movq	%r12, %rdi
	movl	$66, %esi
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$27, %esi
	movl	$32, %edx
	callq	_rt2800_bbp_write
	movl	(%r12), %edx
	addl	$38, %edx
	movq	%r12, %rdi
	movl	$66, %esi
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$86, %esi
	movl	$56, %edx
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$83, %esi
	movl	$106, %edx
	jmp	LBB0_23
LBB0_21:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_29
## %bb.22:
	xorl	%eax, %eax
	cmpl	$15, (%r15)
	movl	$10, %edx
	cmovgel	%eax, %edx
	movq	%r12, %rdi
	movl	$70, %esi
	callq	_rt2800_bbp_write
	movq	%r13, %rdi
	callq	_conf_is_ht40
	testl	%eax, %eax
	movl	$52, %eax
	movl	$4, %edx
	cmovel	%eax, %edx
	movq	%r12, %rdi
	movl	$105, %esi
	callq	_rt2800_bbp_write
	movl	$55, %ebx
	movl	$55, %edx
	subl	(%r12), %edx
	movq	%r12, %rdi
	movl	$62, %esi
	callq	_rt2800_bbp_write
	movl	$55, %edx
	subl	(%r12), %edx
	movq	%r12, %rdi
	movl	$63, %esi
	callq	_rt2800_bbp_write
	subl	(%r12), %ebx
	movq	%r12, %rdi
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$77, %esi
	movl	$152, %edx
LBB0_23:
	callq	_rt2800_bbp_write
	cmpl	$14, (%r15)
	jg	LBB0_34
LBB0_24:
	movq	_RT5390@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_45
## %bb.25:
	movq	_RT5392@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_45
## %bb.26:
	movq	_RT6352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_45
## %bb.27:
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_external_lna_bg
	testq	%rax, %rax
	je	LBB0_111
## %bb.28:
	movl	$98, %ebx
	movq	%r12, %rdi
	movl	$82, %esi
	movl	$98, %edx
	callq	_rt2800_bbp_write
	movl	$70, %r13d
	jmp	LBB0_112
LBB0_29:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_rt2x00_rt
	movq	%rax, %r13
	movl	$55, %ebx
	movl	$55, %edx
	subl	(%r12), %edx
	movq	%r12, %rdi
	movl	$62, %esi
	callq	_rt2800_bbp_write
	movl	$55, %edx
	subl	(%r12), %edx
	movq	%r12, %rdi
	movl	$63, %esi
	callq	_rt2800_bbp_write
	subl	(%r12), %ebx
	movq	%r12, %rdi
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
	testq	%r13, %r13
	je	LBB0_32
## %bb.30:
	cmpl	$2, 8(%r12)
	jl	LBB0_32
## %bb.31:
	movq	%r12, %rdi
	movl	$86, %esi
	movl	$70, %edx
	jmp	LBB0_33
LBB0_32:
	movq	%r12, %rdi
	movl	$86, %esi
	xorl	%edx, %edx
LBB0_33:
	callq	_rt2800_bbp_write
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpl	$14, (%r15)
	jle	LBB0_24
LBB0_34:
	movq	_RT3572@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	movl	$148, %ebx
	testq	%rax, %rax
	jne	LBB0_37
## %bb.35:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	movl	$130, %ebx
	testq	%rax, %rax
	jne	LBB0_37
## %bb.36:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_109
LBB0_37:
	movq	%r12, %rdi
	movl	$82, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
LBB0_38:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_40
## %bb.39:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_41
LBB0_40:
	movq	%r12, %rdi
	movl	$83, %esi
	movl	$154, %edx
	callq	_rt2800_bbp_write
LBB0_41:
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_external_lna_a
	movq	%r12, %rdi
	movl	$75, %esi
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movl	$70, %edx
	jmp	LBB0_44
LBB0_43:
	movl	$80, %edx
LBB0_44:
	callq	_rt2800_bbp_write
LBB0_45:
	movq	_TX_BAND_CFG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	_TX_BAND_CFG_HT40_MINUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_conf_is_ht40_minus
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rt2x00_set_field32
	movq	_TX_BAND_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setge	%dl
	movq	%r13, %rdi
	callq	_rt2x00_set_field32
	movq	_TX_BAND_CFG_BG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
	movq	%r13, %rdi
	callq	_rt2x00_set_field32
	movl	(%r14), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_rt2800_register_write
	movq	_RT3572@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	movq	%r12, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_rt2800_rfcsr_write
LBB0_47:
	movq	_RT6352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	movq	_TX_PIN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2800_register_read
	movl	%eax, -48(%rbp)
	movq	_TX_PIN_CFG_RFRX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	jmp	LBB0_50
LBB0_49:
	movl	$0, -48(%rbp)
LBB0_50:
	movl	4(%r12), %eax
	cmpl	$1, %eax
	je	LBB0_55
## %bb.51:
	cmpl	$2, %eax
	je	LBB0_54
## %bb.52:
	cmpl	$3, %eax
	jne	LBB0_58
## %bb.53:
	movq	_TX_PIN_CFG_PA_PE_A2_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setge	%dl
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG_PA_PE_G2_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
LBB0_54:
	movq	_TX_PIN_CFG_PA_PE_A1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setge	%dl
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG_PA_PE_G1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
LBB0_55:
	movq	_TX_PIN_CFG_PA_PE_A0_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setge	%dl
	leaq	-48(%rbp), %rdi
	callq	_rt2x00_set_field32
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_bt_coexist
	movq	_TX_PIN_CFG_PA_PE_G0_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$1, %edx
	testl	%eax, %eax
	jne	LBB0_57
## %bb.56:
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
LBB0_57:
	leaq	-48(%rbp), %rdi
	callq	_rt2x00_set_field32
LBB0_58:
	movl	8(%r12), %eax
	cmpl	$1, %eax
	je	LBB0_63
## %bb.59:
	cmpl	$2, %eax
	je	LBB0_62
## %bb.60:
	cmpl	$3, %eax
	jne	LBB0_64
## %bb.61:
	movq	_TX_PIN_CFG_LNA_PE_A2_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG_LNA_PE_G2_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
LBB0_62:
	movq	_TX_PIN_CFG_LNA_PE_A1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG_LNA_PE_G1_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
LBB0_63:
	movq	_TX_PIN_CFG_LNA_PE_A0_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG_LNA_PE_G0_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
LBB0_64:
	movq	_TX_PIN_CFG_RFTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG_TRSW_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movq	_TX_PIN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r12, %rdi
	callq	_rt2800_register_write
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_69
## %bb.65:
	movq	%r12, %rdi
	movl	$8, %esi
	movl	$128, %edx
	callq	_rt2800_rfcsr_write
	cmpl	$14, (%r15)
	movl	(%r12), %eax
	jg	LBB0_67
## %bb.66:
	leal	(%rax,%rax), %edx
	addl	$28, %edx
	jmp	LBB0_68
LBB0_67:
	leal	(%rax,%rax,4), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$32, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$34, %edx
LBB0_68:
	movl	%edx, -44(%rbp)
	movq	%r12, %rdi
	movl	$66, %esi
	callq	_rt2800_bbp_write_with_rx_chain
LBB0_69:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_82
## %bb.70:
	movq	_GPIO_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	%r12, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	jne	LBB0_72
## %bb.71:
	movq	%r12, %rdi
	callq	_rt2x00_is_pcie
	testq	%rax, %rax
	je	LBB0_73
LBB0_72:
	movq	_GPIO_CTRL_DIR8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	xorl	%edx, %edx
	cmpl	$15, (%r15)
	setl	%dl
	movq	_GPIO_CTRL_VAL8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
LBB0_73:
	movq	%r12, %rdi
	callq	_rt2x00_is_usb
	testq	%rax, %rax
	je	LBB0_75
## %bb.74:
	movq	_GPIO_CTRL_DIR4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	_GPIO_CTRL_DIR7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	_GPIO_CTRL_VAL7@GOTPCREL(%rip), %r14
	movl	$1, %edx
	movq	_GPIO_CTRL_VAL4@GOTPCREL(%rip), %rax
	jmp	LBB0_77
LBB0_75:
	movq	%r12, %rdi
	callq	_rt2x00_is_pcie
	testq	%rax, %rax
	je	LBB0_78
## %bb.76:
	movq	_GPIO_CTRL_VAL4@GOTPCREL(%rip), %r14
	xorl	%edx, %edx
	movq	_GPIO_CTRL_DIR4@GOTPCREL(%rip), %rax
LBB0_77:
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_rt2x00_set_field32
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
LBB0_78:
	movl	(%r13), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_rt2800_register_write
	cmpl	$14, (%r15)
	movl	(%r12), %eax
	jg	LBB0_80
## %bb.79:
	leal	(%rax,%rax), %edx
	addl	$28, %edx
	jmp	LBB0_81
LBB0_80:
	leal	(%rax,%rax,4), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$32, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$34, %edx
LBB0_81:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%edx, -44(%rbp)
	movq	%r12, %rdi
	movl	$66, %esi
	callq	_rt2800_bbp_write_with_rx_chain
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
LBB0_82:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_87
## %bb.83:
	movq	%r14, %rdi
	callq	_conf_is_ht40
	testl	%eax, %eax
	movl	$52, %eax
	movl	$4, %edx
	cmovel	%eax, %edx
	movq	%r12, %rdi
	movl	$105, %esi
	callq	_rt2800_bbp_write
	cmpl	$14, (%r15)
	movl	(%r12), %edx
	jg	LBB0_85
## %bb.84:
	addl	$46, %edx
	jmp	LBB0_86
LBB0_85:
	leal	(%rdx,%rdx,4), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$32, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	addl	$32, %edx
LBB0_86:
	movl	%edx, -44(%rbp)
	movq	%r12, %rdi
	movl	$66, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_rt2800_bbp_write_with_rx_chain
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
LBB0_87:
	movq	_RT5592@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_89
## %bb.88:
	movq	_RT6352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_95
LBB0_89:
	movl	$16, -44(%rbp)
	movq	%r14, %rdi
	callq	_conf_is_ht40
	testl	%eax, %eax
	jne	LBB0_94
## %bb.90:
	movq	_RT6352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_93
## %bb.91:
	movq	%r12, %rdi
	callq	_rt2x00_has_cap_external_lna_bg
	testq	%rax, %rax
	je	LBB0_93
## %bb.92:
	orb	$5, -44(%rbp)
	jmp	LBB0_94
LBB0_93:
	orb	$10, -44(%rbp)
LBB0_94:
	movq	%r12, %rdi
	movl	$195, %esi
	movl	$141, %edx
	callq	_rt2800_bbp_write
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	movl	$196, %esi
	callq	_rt2800_bbp_write
	xorl	%eax, %eax
	cmpl	$15, (%r15)
	setge	%al
	movl	(%r12), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rax,8), %edx
	addl	$28, %edx
	movl	%edx, -44(%rbp)
	movq	%r12, %rdi
	movl	$66, %esi
	callq	_rt2800_bbp_write_with_rx_chain
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_rt2800_iq_calibrate
LBB0_95:
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -52(%rbp)
	movq	_BBP4_BANDWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_conf_is_ht40
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edx
	leaq	-52(%rbp), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rt2x00_set_field8
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -52(%rbp)
	movq	_BBP3_HT40_MINUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_conf_is_ht40_minus
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rt2x00_set_field8
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_rt2800_bbp_write
	movq	_RT2860@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REV_RT2860C@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_rt2x00_rt_rev
	testq	%rax, %rax
	je	LBB0_97
## %bb.96:
	movq	%r14, %rdi
	callq	_conf_is_ht40
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	22(,%rcx,4), %edx
	leal	8(%rcx,%rcx), %ebx
	leal	(%rcx,%rcx,4), %r14d
	addl	$17, %r14d
	movq	%r12, %rdi
	movl	$69, %esi
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$70, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$73, %esi
	movl	%r14d, %edx
	callq	_rt2800_bbp_write
LBB0_97:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1500, %esi                     ## imm = 0x5DC
	callq	_usleep_range
	movq	_CH_IDLE_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	_CH_BUSY_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	_CH_BUSY_STA_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2800_register_read
	movl	%eax, -44(%rbp)
	movq	_RT3352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_99
## %bb.98:
	movq	_RT5350@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_100
LBB0_99:
	movq	%r12, %rdi
	movl	$49, %esi
	callq	_rt2800_bbp_read
	movl	%eax, -52(%rbp)
	movq	_BBP49_UPDATE_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field8
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	movl	$49, %esi
	callq	_rt2800_bbp_write
LBB0_100:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_101:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf2xxx
	jmp	LBB0_8
LBB0_102:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf7620
	jmp	LBB0_8
LBB0_103:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf55xx
	jmp	LBB0_8
LBB0_104:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf3853
	jmp	LBB0_8
LBB0_105:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf3322
	jmp	LBB0_8
LBB0_106:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf3290
	jmp	LBB0_8
LBB0_107:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf3053
	jmp	LBB0_8
LBB0_108:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_rt2800_config_channel_rf3052
	jmp	LBB0_8
LBB0_109:
	movq	_RT6352@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_38
## %bb.110:
	movl	$242, %ebx
	jmp	LBB0_37
LBB0_111:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	movl	$132, %eax
	movl	$98, %ebx
	cmovel	%eax, %ebx
	movl	$80, %r13d
LBB0_112:
	movq	%r12, %rdi
	movl	$82, %esi
	movl	%ebx, %edx
	callq	_rt2800_bbp_write
	movq	%r12, %rdi
	movl	$75, %esi
	movl	%r13d, %edx
	callq	_rt2800_bbp_write
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_114
## %bb.113:
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	je	LBB0_45
LBB0_114:
	movq	%r12, %rdi
	movl	$83, %esi
	movl	$138, %edx
	jmp	LBB0_44
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_102, LBB0_102-LJTI0_0
.set L0_0_set_103, LBB0_103-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_104, LBB0_104-LJTI0_0
.set L0_0_set_105, LBB0_105-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_106, LBB0_106-LJTI0_0
.set L0_0_set_107, LBB0_107-LJTI0_0
.set L0_0_set_108, LBB0_108-LJTI0_0
LJTI0_0:
	.long	L0_0_set_102
	.long	L0_0_set_103
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_104
	.long	L0_0_set_105
	.long	L0_0_set_7
	.long	L0_0_set_106
	.long	L0_0_set_6
	.long	L0_0_set_107
	.long	L0_0_set_108
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_RF3322_RFCSR30_TX_H20M,4,2     ## @RF3322_RFCSR30_TX_H20M
	.comm	_RF3322_RFCSR30_RX_H20M,4,2     ## @RF3322_RFCSR30_RX_H20M
	.comm	_RFCSR30_TX_H20M,4,2            ## @RFCSR30_TX_H20M
	.comm	_RFCSR30_RX_H20M,4,2            ## @RFCSR30_RX_H20M
	.comm	_RFCSR3_VCOCAL_EN,4,2           ## @RFCSR3_VCOCAL_EN
	.comm	_RT3352,4,2                     ## @RT3352
	.comm	_RT3593,4,2                     ## @RT3593
	.comm	_RT5390,4,2                     ## @RT5390
	.comm	_RT5392,4,2                     ## @RT5392
	.comm	_RT6352,4,2                     ## @RT6352
	.comm	_RT3572,4,2                     ## @RT3572
	.comm	_TX_BAND_CFG,4,2                ## @TX_BAND_CFG
	.comm	_TX_BAND_CFG_HT40_MINUS,4,2     ## @TX_BAND_CFG_HT40_MINUS
	.comm	_TX_BAND_CFG_A,4,2              ## @TX_BAND_CFG_A
	.comm	_TX_BAND_CFG_BG,4,2             ## @TX_BAND_CFG_BG
	.comm	_TX_PIN_CFG,4,2                 ## @TX_PIN_CFG
	.comm	_TX_PIN_CFG_RFRX_EN,4,2         ## @TX_PIN_CFG_RFRX_EN
	.comm	_TX_PIN_CFG_PA_PE_A2_EN,4,2     ## @TX_PIN_CFG_PA_PE_A2_EN
	.comm	_TX_PIN_CFG_PA_PE_G2_EN,4,2     ## @TX_PIN_CFG_PA_PE_G2_EN
	.comm	_TX_PIN_CFG_PA_PE_A1_EN,4,2     ## @TX_PIN_CFG_PA_PE_A1_EN
	.comm	_TX_PIN_CFG_PA_PE_G1_EN,4,2     ## @TX_PIN_CFG_PA_PE_G1_EN
	.comm	_TX_PIN_CFG_PA_PE_A0_EN,4,2     ## @TX_PIN_CFG_PA_PE_A0_EN
	.comm	_TX_PIN_CFG_PA_PE_G0_EN,4,2     ## @TX_PIN_CFG_PA_PE_G0_EN
	.comm	_TX_PIN_CFG_LNA_PE_A2_EN,4,2    ## @TX_PIN_CFG_LNA_PE_A2_EN
	.comm	_TX_PIN_CFG_LNA_PE_G2_EN,4,2    ## @TX_PIN_CFG_LNA_PE_G2_EN
	.comm	_TX_PIN_CFG_LNA_PE_A1_EN,4,2    ## @TX_PIN_CFG_LNA_PE_A1_EN
	.comm	_TX_PIN_CFG_LNA_PE_G1_EN,4,2    ## @TX_PIN_CFG_LNA_PE_G1_EN
	.comm	_TX_PIN_CFG_LNA_PE_A0_EN,4,2    ## @TX_PIN_CFG_LNA_PE_A0_EN
	.comm	_TX_PIN_CFG_LNA_PE_G0_EN,4,2    ## @TX_PIN_CFG_LNA_PE_G0_EN
	.comm	_TX_PIN_CFG_RFTR_EN,4,2         ## @TX_PIN_CFG_RFTR_EN
	.comm	_TX_PIN_CFG_TRSW_EN,4,2         ## @TX_PIN_CFG_TRSW_EN
	.comm	_GPIO_CTRL,4,2                  ## @GPIO_CTRL
	.comm	_GPIO_CTRL_DIR8,4,2             ## @GPIO_CTRL_DIR8
	.comm	_GPIO_CTRL_VAL8,4,2             ## @GPIO_CTRL_VAL8
	.comm	_GPIO_CTRL_DIR4,4,2             ## @GPIO_CTRL_DIR4
	.comm	_GPIO_CTRL_DIR7,4,2             ## @GPIO_CTRL_DIR7
	.comm	_GPIO_CTRL_VAL4,4,2             ## @GPIO_CTRL_VAL4
	.comm	_GPIO_CTRL_VAL7,4,2             ## @GPIO_CTRL_VAL7
	.comm	_RT5592,4,2                     ## @RT5592
	.comm	_BBP4_BANDWIDTH,4,2             ## @BBP4_BANDWIDTH
	.comm	_BBP3_HT40_MINUS,4,2            ## @BBP3_HT40_MINUS
	.comm	_RT2860,4,2                     ## @RT2860
	.comm	_REV_RT2860C,4,2                ## @REV_RT2860C
	.comm	_CH_IDLE_STA,4,2                ## @CH_IDLE_STA
	.comm	_CH_BUSY_STA,4,2                ## @CH_BUSY_STA
	.comm	_CH_BUSY_STA_SEC,4,2            ## @CH_BUSY_STA_SEC
	.comm	_RT5350,4,2                     ## @RT5350
	.comm	_BBP49_UPDATE_FLAG,4,2          ## @BBP49_UPDATE_FLAG
	.no_dead_strip	_rt2800_config_channel
.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
_rt2800_config_channel:                 ; @rt2800_config_channel
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x2]
	ldr	x2, [x3, #16]
	bl	_rt2800_txpower_to_dev
	str	x0, [x22, #16]
	ldr	w1, [x21]
	ldr	x2, [x22, #8]
	mov	x0, x19
	bl	_rt2800_txpower_to_dev
	str	x0, [x22, #8]
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x21]
	ldr	x2, [x22]
	mov	x0, x19
	bl	_rt2800_txpower_to_dev
	str	x0, [x22]
LBB0_2:
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_rt3883_bbp_adjust
LBB0_4:
	ldr	w8, [x19, #16]
	sub	w8, w8, #129
	cmp	w8, #19
	b.hi	LBB0_95
; %bb.5:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf53xx
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf3xxx
LBB0_8:
	mov	x0, x19
	mov	w1, #142
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.9:
	mov	x0, x19
	mov	w1, #141
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.10:
	mov	x0, x19
	mov	w1, #139
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.11:
	mov	x0, x19
	mov	w1, #137
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.12:
	mov	x0, x19
	mov	w1, #136
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.13:
	mov	x0, x19
	mov	w1, #135
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.14:
	mov	x0, x19
	mov	w1, #134
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.15:
	mov	x0, x19
	mov	w1, #133
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.16:
	mov	x0, x19
	mov	w1, #132
	bl	_rt2x00_rf
	cbnz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #131
	bl	_rt2x00_rf
	cbz	x0, LBB0_19
LBB0_18:
	mov	x0, x19
	mov	w1, #30
	bl	_rt2800_rfcsr_read
	str	w0, [sp]
	mov	x0, x19
	mov	w1, #139
	bl	_rt2x00_rf
Lloh2:
	adrp	x8, _RFCSR30_TX_H20M@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RFCSR30_TX_H20M@GOTPAGEOFF]
Lloh4:
	adrp	x9, _RF3322_RFCSR30_TX_H20M@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RF3322_RFCSR30_TX_H20M@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _RFCSR30_RX_H20M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RFCSR30_RX_H20M@GOTPAGEOFF]
Lloh8:
	adrp	x9, _RF3322_RFCSR30_RX_H20M@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RF3322_RFCSR30_RX_H20M@GOTPAGEOFF]
	csel	x23, x8, x9, eq
	mov	x0, x20
	bl	_conf_is_ht40
	mov	x2, x0
	mov	x0, sp
	mov	x1, x22
	bl	_rt2x00_set_field8
	ldr	w22, [x23]
	mov	x0, x20
	bl	_conf_is_ht40
	mov	x2, x0
	mov	x0, sp
	mov	x1, x22
	bl	_rt2x00_set_field8
	ldr	w2, [sp]
	mov	x0, x19
	mov	w1, #30
	bl	_rt2800_rfcsr_write
	mov	x0, x19
	mov	w1, #3
	bl	_rt2800_rfcsr_read
	str	w0, [sp]
Lloh10:
	adrp	x8, _RFCSR3_VCOCAL_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RFCSR3_VCOCAL_EN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, sp
	mov	w2, #1
	bl	_rt2x00_set_field8
	ldr	w2, [sp]
	mov	x0, x19
	mov	w1, #3
	bl	_rt2800_rfcsr_write
LBB0_19:
Lloh13:
	adrp	x24, _RT3352@GOTPAGE
Lloh14:
	ldr	x24, [x24, _RT3352@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2x00_rt
Lloh15:
	adrp	x26, _RT3593@GOTPAGE
Lloh16:
	ldr	x26, [x26, _RT3593@GOTPAGEOFF]
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w8, [x19]
	mov	w22, #55
	sub	w2, w22, w8
	mov	x0, x19
	mov	w1, #62
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	sub	w2, w22, w8
	mov	x0, x19
	mov	w1, #63
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	sub	w2, w22, w8
	mov	x0, x19
	mov	w1, #64
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #27
	mov	w2, #0
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	add	w2, w8, #38
	mov	x0, x19
	mov	w1, #66
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #27
	mov	w2, #32
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	add	w2, w8, #38
	mov	x0, x19
	mov	w1, #66
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #86
	mov	w2, #56
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #83
	mov	w2, #106
	b	LBB0_27
LBB0_21:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w8, [x21]
	mov	w9, #10
	cmp	w8, #14
	csel	w2, wzr, w9, gt
	mov	x0, x19
	mov	w1, #70
	bl	_rt2800_bbp_write
	mov	x0, x20
	bl	_conf_is_ht40
	mov	w8, #4
	mov	w9, #52
	cmp	w0, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #105
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	mov	w22, #55
	sub	w2, w22, w8
	mov	x0, x19
	mov	w1, #62
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	sub	w2, w22, w8
	mov	x0, x19
	mov	w1, #63
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	sub	w2, w22, w8
	mov	x0, x19
	mov	w1, #64
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #77
	mov	w2, #152
	b	LBB0_27
LBB0_23:
	mov	x0, x19
	mov	w1, #128
	bl	_rt2x00_rt
	mov	x22, x0
	ldr	w8, [x19]
	mov	w23, #55
	sub	w2, w23, w8
	mov	x0, x19
	mov	w1, #62
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	sub	w2, w23, w8
	mov	x0, x19
	mov	w1, #63
	bl	_rt2800_bbp_write
	ldr	w8, [x19]
	sub	w2, w23, w8
	mov	x0, x19
	mov	w1, #64
	bl	_rt2800_bbp_write
	cbz	x22, LBB0_26
; %bb.24:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_26
; %bb.25:
	mov	x0, x19
	mov	w1, #86
	mov	w2, #70
	b	LBB0_27
LBB0_26:
	mov	x0, x19
	mov	w1, #86
	mov	w2, #0
LBB0_27:
	bl	_rt2800_bbp_write
	ldr	w8, [x21]
Lloh17:
	adrp	x27, _RT3572@GOTPAGE
Lloh18:
	ldr	x27, [x27, _RT3572@GOTPAGEOFF]
Lloh19:
	adrp	x25, _RT6352@GOTPAGE
Lloh20:
	ldr	x25, [x25, _RT6352@GOTPAGEOFF]
	cmp	w8, #14
	b.gt	LBB0_33
; %bb.28:
Lloh21:
	adrp	x8, _RT5390@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RT5390@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_46
; %bb.29:
Lloh24:
	adrp	x8, _RT5392@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RT5392@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_46
; %bb.30:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_46
; %bb.31:
	mov	x0, x19
	bl	_rt2x00_has_cap_external_lna_bg
	cbz	x0, LBB0_105
; %bb.32:
	mov	w22, #98
	mov	x0, x19
	mov	w1, #82
	mov	w2, #98
	bl	_rt2800_bbp_write
	mov	w23, #70
	b	LBB0_106
LBB0_33:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_35
; %bb.34:
	mov	w2, #148
	b	LBB0_38
LBB0_35:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_37
; %bb.36:
	mov	x0, x19
	mov	w1, #128
	bl	_rt2x00_rt
	cbz	x0, LBB0_103
LBB0_37:
	mov	w2, #130
LBB0_38:
	mov	x0, x19
	mov	w1, #82
	bl	_rt2800_bbp_write
LBB0_39:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_41
; %bb.40:
	mov	x0, x19
	mov	w1, #128
	bl	_rt2x00_rt
	cbz	x0, LBB0_42
LBB0_41:
	mov	x0, x19
	mov	w1, #83
	mov	w2, #154
	bl	_rt2800_bbp_write
LBB0_42:
	mov	x0, x19
	bl	_rt2x00_has_cap_external_lna_a
	cbz	x0, LBB0_44
; %bb.43:
	mov	x0, x19
	mov	w1, #75
	mov	w2, #70
	b	LBB0_45
LBB0_44:
	mov	x0, x19
	mov	w1, #75
	mov	w2, #80
LBB0_45:
	bl	_rt2800_bbp_write
LBB0_46:
Lloh27:
	adrp	x23, _TX_BAND_CFG@GOTPAGE
Lloh28:
	ldr	x23, [x23, _TX_BAND_CFG@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh29:
	adrp	x8, _TX_BAND_CFG_HT40_MINUS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TX_BAND_CFG_HT40_MINUS@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_conf_is_ht40_minus
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x22
	bl	_rt2x00_set_field32
Lloh32:
	adrp	x8, _TX_BAND_CFG_A@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TX_BAND_CFG_A@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #14
	cset	w2, gt
	add	x0, sp, #12
	bl	_rt2x00_set_field32
Lloh35:
	adrp	x8, _TX_BAND_CFG_BG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_BAND_CFG_BG@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #15
	cset	w2, lt
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w1, [x23]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2800_register_write
	ldr	w1, [x27]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_48
; %bb.47:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_rt2800_rfcsr_write
LBB0_48:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_rt
Lloh38:
	adrp	x22, _TX_PIN_CFG@GOTPAGE
Lloh39:
	ldr	x22, [x22, _TX_PIN_CFG@GOTPAGEOFF]
	cbz	x0, LBB0_50
; %bb.49:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #8]
Lloh40:
	adrp	x8, _TX_PIN_CFG_RFRX_EN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TX_PIN_CFG_RFRX_EN@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
	b	LBB0_51
LBB0_50:
	str	wzr, [sp, #8]
LBB0_51:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.eq	LBB0_56
; %bb.52:
	cmp	w8, #2
	b.eq	LBB0_55
; %bb.53:
	cmp	w8, #3
	b.ne	LBB0_60
; %bb.54:
Lloh43:
	adrp	x8, _TX_PIN_CFG_PA_PE_A2_EN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TX_PIN_CFG_PA_PE_A2_EN@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #14
	cset	w2, gt
	add	x0, sp, #8
	bl	_rt2x00_set_field32
Lloh46:
	adrp	x8, _TX_PIN_CFG_PA_PE_G2_EN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TX_PIN_CFG_PA_PE_G2_EN@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #15
	cset	w2, lt
	add	x0, sp, #8
	bl	_rt2x00_set_field32
LBB0_55:
Lloh49:
	adrp	x8, _TX_PIN_CFG_PA_PE_A1_EN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TX_PIN_CFG_PA_PE_A1_EN@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #14
	cset	w2, gt
	add	x0, sp, #8
	bl	_rt2x00_set_field32
Lloh52:
	adrp	x8, _TX_PIN_CFG_PA_PE_G1_EN@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TX_PIN_CFG_PA_PE_G1_EN@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #15
	cset	w2, lt
	add	x0, sp, #8
	bl	_rt2x00_set_field32
LBB0_56:
Lloh55:
	adrp	x8, _TX_PIN_CFG_PA_PE_A0_EN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _TX_PIN_CFG_PA_PE_A0_EN@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #14
	cset	w2, gt
	add	x0, sp, #8
	bl	_rt2x00_set_field32
	mov	x0, x19
	bl	_rt2x00_has_cap_bt_coexist
Lloh58:
	adrp	x8, _TX_PIN_CFG_PA_PE_G0_EN@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TX_PIN_CFG_PA_PE_G0_EN@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	cbz	w0, LBB0_58
; %bb.57:
	mov	w2, #1
	b	LBB0_59
LBB0_58:
	ldr	w8, [x21]
	cmp	w8, #15
	cset	w2, lt
LBB0_59:
	add	x0, sp, #8
	bl	_rt2x00_set_field32
LBB0_60:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.eq	LBB0_65
; %bb.61:
	cmp	w8, #2
	b.eq	LBB0_64
; %bb.62:
	cmp	w8, #3
	b.ne	LBB0_66
; %bb.63:
Lloh61:
	adrp	x8, _TX_PIN_CFG_LNA_PE_A2_EN@GOTPAGE
Lloh62:
	ldr	x8, [x8, _TX_PIN_CFG_LNA_PE_A2_EN@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh64:
	adrp	x8, _TX_PIN_CFG_LNA_PE_G2_EN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _TX_PIN_CFG_LNA_PE_G2_EN@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
LBB0_64:
Lloh67:
	adrp	x8, _TX_PIN_CFG_LNA_PE_A1_EN@GOTPAGE
Lloh68:
	ldr	x8, [x8, _TX_PIN_CFG_LNA_PE_A1_EN@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh70:
	adrp	x8, _TX_PIN_CFG_LNA_PE_G1_EN@GOTPAGE
Lloh71:
	ldr	x8, [x8, _TX_PIN_CFG_LNA_PE_G1_EN@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
LBB0_65:
Lloh73:
	adrp	x8, _TX_PIN_CFG_LNA_PE_A0_EN@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TX_PIN_CFG_LNA_PE_A0_EN@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh76:
	adrp	x8, _TX_PIN_CFG_LNA_PE_G0_EN@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TX_PIN_CFG_LNA_PE_G0_EN@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
LBB0_66:
Lloh79:
	adrp	x8, _TX_PIN_CFG_RFTR_EN@GOTPAGE
Lloh80:
	ldr	x8, [x8, _TX_PIN_CFG_RFTR_EN@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
Lloh82:
	adrp	x8, _TX_PIN_CFG_TRSW_EN@GOTPAGE
Lloh83:
	ldr	x8, [x8, _TX_PIN_CFG_TRSW_EN@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w1, [x22]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_rt2800_register_write
	ldr	w1, [x27]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_68
; %bb.67:
	mov	x0, x19
	mov	w1, #8
	mov	w2, #128
	bl	_rt2800_rfcsr_write
	ldr	w8, [x21]
	ldr	w9, [x19]
	add	w10, w9, w9, lsl #2
	mov	w11, #21846
	movk	w11, #21845, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w11
	add	w10, w10, #34
	lsl	w9, w9, #1
	add	w9, w9, #28
	cmp	w8, #14
	csel	w2, w10, w9, gt
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #66
	bl	_rt2800_bbp_write_with_rx_chain
LBB0_68:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_78
; %bb.69:
Lloh85:
	adrp	x22, _GPIO_CTRL@GOTPAGE
Lloh86:
	ldr	x22, [x22, _GPIO_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbnz	x0, LBB0_71
; %bb.70:
	mov	x0, x19
	bl	_rt2x00_is_pcie
	cbz	x0, LBB0_72
LBB0_71:
Lloh87:
	adrp	x8, _GPIO_CTRL_DIR8@GOTPAGE
Lloh88:
	ldr	x8, [x8, _GPIO_CTRL_DIR8@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
	ldr	w8, [x21]
	cmp	w8, #15
	cset	w2, lt
Lloh90:
	adrp	x8, _GPIO_CTRL_VAL8@GOTPAGE
Lloh91:
	ldr	x8, [x8, _GPIO_CTRL_VAL8@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
LBB0_72:
	mov	x0, x19
	bl	_rt2x00_is_usb
	cbz	x0, LBB0_74
; %bb.73:
Lloh93:
	adrp	x8, _GPIO_CTRL_DIR4@GOTPAGE
Lloh94:
	ldr	x8, [x8, _GPIO_CTRL_DIR4@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh96:
	adrp	x8, _GPIO_CTRL_DIR7@GOTPAGE
Lloh97:
	ldr	x8, [x8, _GPIO_CTRL_DIR7@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh99:
	adrp	x23, _GPIO_CTRL_VAL7@GOTPAGE
Lloh100:
	ldr	x23, [x23, _GPIO_CTRL_VAL7@GOTPAGEOFF]
	mov	w2, #1
Lloh101:
	adrp	x8, _GPIO_CTRL_VAL4@GOTPAGE
Lloh102:
	ldr	x8, [x8, _GPIO_CTRL_VAL4@GOTPAGEOFF]
	b	LBB0_76
LBB0_74:
	mov	x0, x19
	bl	_rt2x00_is_pcie
	cbz	x0, LBB0_77
; %bb.75:
	mov	w2, #0
Lloh103:
	adrp	x23, _GPIO_CTRL_VAL4@GOTPAGE
Lloh104:
	ldr	x23, [x23, _GPIO_CTRL_VAL4@GOTPAGEOFF]
Lloh105:
	adrp	x8, _GPIO_CTRL_DIR4@GOTPAGE
Lloh106:
	ldr	x8, [x8, _GPIO_CTRL_DIR4@GOTPAGEOFF]
LBB0_76:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_rt2x00_set_field32
	ldr	w1, [x23]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
LBB0_77:
	ldr	w1, [x22]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_rt2800_register_write
	ldr	w8, [x21]
	ldr	w9, [x19]
	add	w10, w9, w9, lsl #2
	mov	w11, #21846
	movk	w11, #21845, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w11
	add	w10, w10, #34
	lsl	w9, w9, #1
	add	w9, w9, #28
	cmp	w8, #14
	csel	w2, w10, w9, gt
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #66
	bl	_rt2800_bbp_write_with_rx_chain
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
LBB0_78:
	mov	x0, x19
	mov	w1, #128
	bl	_rt2x00_rt
	cbz	x0, LBB0_80
; %bb.79:
	mov	x0, x20
	bl	_conf_is_ht40
	mov	w8, #4
	mov	w9, #52
	cmp	w0, #0
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #105
	bl	_rt2800_bbp_write
	ldr	w8, [x21]
	ldr	w9, [x19]
	add	w10, w9, w9, lsl #2
	mov	w11, #21846
	movk	w11, #21845, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	lsr	x10, x10, #32
	add	w10, w10, w11
	add	w10, w10, #32
	add	w9, w9, #46
	cmp	w8, #14
	csel	w2, w10, w9, gt
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #66
	bl	_rt2800_bbp_write_with_rx_chain
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
LBB0_80:
Lloh107:
	adrp	x8, _RT5592@GOTPAGE
Lloh108:
	ldr	x8, [x8, _RT5592@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_82
; %bb.81:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_89
LBB0_82:
	mov	w8, #16
	str	w8, [sp, #12]
	mov	x0, x20
	bl	_conf_is_ht40
	cbnz	w0, LBB0_88
; %bb.83:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_86
; %bb.84:
	mov	x0, x19
	bl	_rt2x00_has_cap_external_lna_bg
	cbz	x0, LBB0_86
; %bb.85:
	ldr	w8, [sp, #12]
	mov	w9, #5
	b	LBB0_87
LBB0_86:
	ldr	w8, [sp, #12]
	mov	w9, #10
LBB0_87:
	orr	w8, w8, w9
	str	w8, [sp, #12]
LBB0_88:
	mov	x0, x19
	mov	w1, #195
	mov	w2, #141
	bl	_rt2800_bbp_write
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #196
	bl	_rt2800_bbp_write
	ldr	w8, [x21]
	mov	w9, #36
	mov	w10, #28
	cmp	w8, #15
	csel	w8, w10, w9, lt
	ldr	w9, [x19]
	add	w2, w8, w9, lsl #1
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #66
	bl	_rt2800_bbp_write_with_rx_chain
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt2800_iq_calibrate
LBB0_89:
	mov	x0, x19
	mov	w1, #4
	bl	_rt2800_bbp_read
	str	w0, [sp, #4]
Lloh110:
	adrp	x8, _BBP4_BANDWIDTH@GOTPAGE
Lloh111:
	ldr	x8, [x8, _BBP4_BANDWIDTH@GOTPAGEOFF]
Lloh112:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_conf_is_ht40
	lsl	w2, w0, #1
	add	x0, sp, #4
	mov	x1, x21
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	w1, #4
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #3
	bl	_rt2800_bbp_read
	str	w0, [sp, #4]
Lloh113:
	adrp	x8, _BBP3_HT40_MINUS@GOTPAGE
Lloh114:
	ldr	x8, [x8, _BBP3_HT40_MINUS@GOTPAGEOFF]
Lloh115:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_conf_is_ht40_minus
	mov	x2, x0
	add	x0, sp, #4
	mov	x1, x21
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	w1, #3
	bl	_rt2800_bbp_write
Lloh116:
	adrp	x8, _RT2860@GOTPAGE
Lloh117:
	ldr	x8, [x8, _RT2860@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
Lloh119:
	adrp	x8, _REV_RT2860C@GOTPAGE
Lloh120:
	ldr	x8, [x8, _REV_RT2860C@GOTPAGEOFF]
Lloh121:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rt2x00_rt_rev
	cbz	x0, LBB0_91
; %bb.90:
	mov	x0, x20
	bl	_conf_is_ht40
	mov	w8, #26
	mov	w9, #22
	cmp	w0, #0
	csel	w2, w9, w8, eq
	mov	w8, #10
	mov	w10, #8
	csel	w20, w10, w8, eq
	mov	w8, #17
	csel	w21, w8, w9, eq
	mov	x0, x19
	mov	w1, #69
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #70
	mov	x2, x20
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #73
	mov	x2, x21
	bl	_rt2800_bbp_write
LBB0_91:
	mov	w0, #1000
	mov	w1, #1500
	bl	_usleep_range
Lloh122:
	adrp	x8, _CH_IDLE_STA@GOTPAGE
Lloh123:
	ldr	x8, [x8, _CH_IDLE_STA@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh125:
	adrp	x8, _CH_BUSY_STA@GOTPAGE
Lloh126:
	ldr	x8, [x8, _CH_BUSY_STA@GOTPAGEOFF]
Lloh127:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
Lloh128:
	adrp	x8, _CH_BUSY_STA_SEC@GOTPAGE
Lloh129:
	ldr	x8, [x8, _CH_BUSY_STA_SEC@GOTPAGEOFF]
Lloh130:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2800_register_read
	str	w0, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_93
; %bb.92:
Lloh131:
	adrp	x8, _RT5350@GOTPAGE
Lloh132:
	ldr	x8, [x8, _RT5350@GOTPAGEOFF]
Lloh133:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rt2x00_rt
	cbz	x0, LBB0_94
LBB0_93:
	mov	x0, x19
	mov	w1, #49
	bl	_rt2800_bbp_read
	str	w0, [sp, #4]
Lloh134:
	adrp	x8, _BBP49_UPDATE_FLAG@GOTPAGE
Lloh135:
	ldr	x8, [x8, _BBP49_UPDATE_FLAG@GOTPAGEOFF]
Lloh136:
	ldr	w1, [x8]
	add	x0, sp, #4
	mov	w2, #0
	bl	_rt2x00_set_field8
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	w1, #49
	bl	_rt2800_bbp_write
LBB0_94:
	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
LBB0_95:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf2xxx
	b	LBB0_8
LBB0_96:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf7620
	b	LBB0_8
LBB0_97:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf55xx
	b	LBB0_8
LBB0_98:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf3853
	b	LBB0_8
LBB0_99:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf3322
	b	LBB0_8
LBB0_100:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf3290
	b	LBB0_8
LBB0_101:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf3053
	b	LBB0_8
LBB0_102:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rt2800_config_channel_rf3052
	b	LBB0_8
LBB0_103:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_39
; %bb.104:
	mov	w2, #242
	b	LBB0_38
LBB0_105:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rt2x00_rt
	cmp	x0, #0
	mov	w8, #98
	mov	w9, #132
	csel	w22, w9, w8, eq
	mov	w23, #80
LBB0_106:
	mov	x0, x19
	mov	w1, #82
	mov	x2, x22
	bl	_rt2800_bbp_write
	mov	x0, x19
	mov	w1, #75
	mov	x2, x23
	bl	_rt2800_bbp_write
	ldr	w1, [x26]
	mov	x0, x19
	bl	_rt2x00_rt
	cbnz	x0, LBB0_108
; %bb.107:
	mov	x0, x19
	mov	w1, #128
	bl	_rt2x00_rt
	cbz	x0, LBB0_46
LBB0_108:
	mov	x0, x19
	mov	w1, #83
	mov	w2, #138
	b	LBB0_45
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_96-LBB0_6)>>2
	.short	(LBB0_97-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_98-LBB0_6)>>2
	.short	(LBB0_99-LBB0_6)>>2
	.short	(LBB0_7-LBB0_6)>>2
	.short	(LBB0_100-LBB0_6)>>2
	.short	(LBB0_6-LBB0_6)>>2
	.short	(LBB0_101-LBB0_6)>>2
	.short	(LBB0_102-LBB0_6)>>2
	.short	(LBB0_7-LBB0_6)>>2
	.short	(LBB0_7-LBB0_6)>>2
	.short	(LBB0_7-LBB0_6)>>2
	.short	(LBB0_7-LBB0_6)>>2
                                        ; -- End function
	.comm	_RF3322_RFCSR30_TX_H20M,4,2     ; @RF3322_RFCSR30_TX_H20M
	.comm	_RF3322_RFCSR30_RX_H20M,4,2     ; @RF3322_RFCSR30_RX_H20M
	.comm	_RFCSR30_TX_H20M,4,2            ; @RFCSR30_TX_H20M
	.comm	_RFCSR30_RX_H20M,4,2            ; @RFCSR30_RX_H20M
	.comm	_RFCSR3_VCOCAL_EN,4,2           ; @RFCSR3_VCOCAL_EN
	.comm	_RT3352,4,2                     ; @RT3352
	.comm	_RT3593,4,2                     ; @RT3593
	.comm	_RT5390,4,2                     ; @RT5390
	.comm	_RT5392,4,2                     ; @RT5392
	.comm	_RT6352,4,2                     ; @RT6352
	.comm	_RT3572,4,2                     ; @RT3572
	.comm	_TX_BAND_CFG,4,2                ; @TX_BAND_CFG
	.comm	_TX_BAND_CFG_HT40_MINUS,4,2     ; @TX_BAND_CFG_HT40_MINUS
	.comm	_TX_BAND_CFG_A,4,2              ; @TX_BAND_CFG_A
	.comm	_TX_BAND_CFG_BG,4,2             ; @TX_BAND_CFG_BG
	.comm	_TX_PIN_CFG,4,2                 ; @TX_PIN_CFG
	.comm	_TX_PIN_CFG_RFRX_EN,4,2         ; @TX_PIN_CFG_RFRX_EN
	.comm	_TX_PIN_CFG_PA_PE_A2_EN,4,2     ; @TX_PIN_CFG_PA_PE_A2_EN
	.comm	_TX_PIN_CFG_PA_PE_G2_EN,4,2     ; @TX_PIN_CFG_PA_PE_G2_EN
	.comm	_TX_PIN_CFG_PA_PE_A1_EN,4,2     ; @TX_PIN_CFG_PA_PE_A1_EN
	.comm	_TX_PIN_CFG_PA_PE_G1_EN,4,2     ; @TX_PIN_CFG_PA_PE_G1_EN
	.comm	_TX_PIN_CFG_PA_PE_A0_EN,4,2     ; @TX_PIN_CFG_PA_PE_A0_EN
	.comm	_TX_PIN_CFG_PA_PE_G0_EN,4,2     ; @TX_PIN_CFG_PA_PE_G0_EN
	.comm	_TX_PIN_CFG_LNA_PE_A2_EN,4,2    ; @TX_PIN_CFG_LNA_PE_A2_EN
	.comm	_TX_PIN_CFG_LNA_PE_G2_EN,4,2    ; @TX_PIN_CFG_LNA_PE_G2_EN
	.comm	_TX_PIN_CFG_LNA_PE_A1_EN,4,2    ; @TX_PIN_CFG_LNA_PE_A1_EN
	.comm	_TX_PIN_CFG_LNA_PE_G1_EN,4,2    ; @TX_PIN_CFG_LNA_PE_G1_EN
	.comm	_TX_PIN_CFG_LNA_PE_A0_EN,4,2    ; @TX_PIN_CFG_LNA_PE_A0_EN
	.comm	_TX_PIN_CFG_LNA_PE_G0_EN,4,2    ; @TX_PIN_CFG_LNA_PE_G0_EN
	.comm	_TX_PIN_CFG_RFTR_EN,4,2         ; @TX_PIN_CFG_RFTR_EN
	.comm	_TX_PIN_CFG_TRSW_EN,4,2         ; @TX_PIN_CFG_TRSW_EN
	.comm	_GPIO_CTRL,4,2                  ; @GPIO_CTRL
	.comm	_GPIO_CTRL_DIR8,4,2             ; @GPIO_CTRL_DIR8
	.comm	_GPIO_CTRL_VAL8,4,2             ; @GPIO_CTRL_VAL8
	.comm	_GPIO_CTRL_DIR4,4,2             ; @GPIO_CTRL_DIR4
	.comm	_GPIO_CTRL_DIR7,4,2             ; @GPIO_CTRL_DIR7
	.comm	_GPIO_CTRL_VAL4,4,2             ; @GPIO_CTRL_VAL4
	.comm	_GPIO_CTRL_VAL7,4,2             ; @GPIO_CTRL_VAL7
	.comm	_RT5592,4,2                     ; @RT5592
	.comm	_BBP4_BANDWIDTH,4,2             ; @BBP4_BANDWIDTH
	.comm	_BBP3_HT40_MINUS,4,2            ; @BBP3_HT40_MINUS
	.comm	_RT2860,4,2                     ; @RT2860
	.comm	_REV_RT2860C,4,2                ; @REV_RT2860C
	.comm	_CH_IDLE_STA,4,2                ; @CH_IDLE_STA
	.comm	_CH_BUSY_STA,4,2                ; @CH_BUSY_STA
	.comm	_CH_BUSY_STA_SEC,4,2            ; @CH_BUSY_STA_SEC
	.comm	_RT5350,4,2                     ; @RT5350
	.comm	_BBP49_UPDATE_FLAG,4,2          ; @BBP49_UPDATE_FLAG
	.no_dead_strip	_rt2800_config_channel
.subsections_via_symbols
