	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MT2063_SetReceiverMode
_MT2063_SetReceiverMode:                ## @MT2063_SetReceiverMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MT2063_NUM_RCVR_MODES@GOTPCREL(%rip), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	subl	(%rcx), %r12d
	cmpl	%ebx, (%rax)
	cmovbel	%r12d, %r13d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r14d
	testl	%r13d, %r13d
	js	LBB0_13
## %bb.1:
	movq	(%r15), %r8
	movq	_MT2063_REG_PD1_TGT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%r8,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$-65, %edi
	movq	_RFAGCEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	xorl	%edx, %edx
	cmpq	$0, (%rax,%r14,8)
	setne	%dl
	shll	$6, %edx
	orl	%edi, %edx
	cmpl	%edx, %ecx
	jne	LBB0_3
## %bb.2:
	movl	%r13d, %r12d
	jmp	LBB0_5
LBB0_3:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r12d
	orl	%r13d, %r12d
	js	LBB0_13
## %bb.4:
	movq	(%r15), %r8
LBB0_5:
	movq	_MT2063_REG_CTRL_2C@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r8,%rsi,4), %eax
	movl	%eax, %ecx
	andl	$-4, %ecx
	movq	_LNARIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	andl	$3, %edx
	orl	%ecx, %edx
	cmpl	%edx, %eax
	jne	LBB0_7
## %bb.6:
	movl	%r12d, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %ebx
	orl	%r12d, %ebx
	js	LBB0_12
## %bb.8:
	movq	(%r15), %r8
LBB0_9:
	movq	_MT2063_REG_FIFF_CTRL2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r8,%rsi,4), %eax
	movl	%eax, %ecx
	andl	$-241, %ecx
	movq	_FIFFQEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edi
	shll	$7, %edi
	orl	%ecx, %edi
	movq	_FIFFQ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %edx
	shll	$4, %edx
	orl	%edi, %edx
	cmpl	%edx, %eax
	jne	LBB0_11
LBB0_12:
	movl	%ebx, %r12d
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movq	(%r15), %rax
	movq	_MT2063_REG_FIFF_CTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movl	(%rax,%rsi,4), %edx
	orl	$1, %edx
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	(%r12), %rsi
	movl	(%rax,%rsi,4), %edx
	andl	$-2, %edx
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r12d
	orl	%ebx, %r12d
	orl	%r13d, %r12d
LBB0_13:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mt2063_get_dnc_output_enable
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_mt2063_set_dnc_output_enable
	movl	%eax, %r13d
	orl	%ebx, %r13d
	js	LBB0_46
## %bb.14:
	movq	(%r15), %r10
	movq	_MT2063_REG_LNA_OV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%r10,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$-32, %edi
	movq	_ACLNAMAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	andl	$31, %edx
	orl	%edi, %edx
	cmpl	%edx, %ecx
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %r12d
	jmp	LBB0_18
LBB0_16:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r12d
	orl	%r13d, %r12d
	js	LBB0_45
## %bb.17:
	movq	(%r15), %r10
LBB0_18:
	movq	_MT2063_REG_LNA_TGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r10,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$-64, %edi
	movq	_LNATGT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	andl	$63, %edx
	orl	%edi, %edx
	cmpl	%edx, %ecx
	jne	LBB0_20
## %bb.19:
	movl	%r12d, %r13d
	jmp	LBB0_22
LBB0_20:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r13d
	orl	%r12d, %r13d
	js	LBB0_46
## %bb.21:
	movq	(%r15), %r10
LBB0_22:
	movq	_MT2063_REG_RF_OV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	(%r10,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$-32, %edi
	movq	_ACRFMAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	andl	$31, %edx
	orl	%edi, %edx
	cmpl	%edx, %ecx
	jne	LBB0_24
## %bb.23:
	movl	%r13d, %r12d
	jmp	LBB0_26
LBB0_24:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r12d
	orl	%r13d, %r12d
	js	LBB0_45
## %bb.25:
	movq	(%r15), %r10
LBB0_26:
	movq	_MT2063_REG_PD1_TGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r10,%rsi,4), %ecx
	movl	%ecx, %edi
	andl	$-64, %edi
	movq	_PD1TGT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	andl	$63, %edx
	orl	%edi, %edx
	cmpl	%edx, %ecx
	jne	LBB0_28
## %bb.27:
	movl	%r12d, %r13d
	jmp	LBB0_30
LBB0_28:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r13d
	orl	%r12d, %r13d
	js	LBB0_46
## %bb.29:
	movq	(%r15), %r10
LBB0_30:
	movq	_ACFIFMAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r14,4), %eax
	movq	_MT2063_REG_PART_REV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%r10,%rdx,4), %r9d
	movq	_MT2063_B3@GOTPCREL(%rip), %r8
	movq	_MT2063_REG_FIF_OV@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	(%r10,%rsi,4), %edi
	movl	%edi, %ebx
	andl	$-32, %ebx
	movl	%eax, %ecx
	andl	$31, %ecx
	cmpl	$6, %eax
	movl	$5, %edx
	cmovll	%ecx, %edx
	cmpl	(%r8), %r9d
	cmovel	%ecx, %edx
	orl	%ebx, %edx
	cmpl	%edx, %edi
	jne	LBB0_32
## %bb.31:
	movl	%r13d, %r12d
	movq	_MT2063_REG_LNA_TGT@GOTPCREL(%rip), %rbx
	jmp	LBB0_34
LBB0_32:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movq	_MT2063_REG_LNA_TGT@GOTPCREL(%rip), %rbx
	js	LBB0_45
## %bb.33:
	movq	(%r15), %r10
LBB0_34:
	movq	_MT2063_REG_PD2_TGT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%r10,%rsi,4), %eax
	movl	%eax, %ecx
	andl	$-64, %ecx
	movq	_PD2TGT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r14,4), %edx
	andl	$63, %edx
	orl	%ecx, %edx
	cmpl	%edx, %eax
	jne	LBB0_36
## %bb.35:
	movl	%r12d, %r13d
	jmp	LBB0_38
LBB0_36:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r13d
	orl	%r12d, %r13d
	js	LBB0_46
## %bb.37:
	movq	(%r15), %r10
LBB0_38:
	movq	(%rbx), %rsi
	movl	(%r10,%rsi,4), %eax
	movl	%eax, %ecx
	andl	$-129, %ecx
	movq	_RFOVDIS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	xorl	%edx, %edx
	cmpq	$0, (%rdi,%r14,8)
	setne	%dl
	shll	$7, %edx
	orl	%ecx, %edx
	cmpl	%edx, %eax
	jne	LBB0_40
## %bb.39:
	movl	%r13d, %r12d
	movq	_MT2063_REG_PD1_TGT@GOTPCREL(%rip), %rax
	jmp	LBB0_42
LBB0_40:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movq	_MT2063_REG_PD1_TGT@GOTPCREL(%rip), %rax
	js	LBB0_45
## %bb.41:
	movq	(%r15), %r10
LBB0_42:
	movq	(%rax), %rsi
	movl	(%r10,%rsi,4), %eax
	movl	%eax, %ecx
	andl	$-129, %ecx
	movq	_FIFOVDIS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	xorl	%edx, %edx
	cmpq	$0, (%rdi,%r14,8)
	setne	%dl
	shll	$7, %edx
	orl	%ecx, %edx
	cmpl	%edx, %eax
	je	LBB0_44
## %bb.43:
	movq	%r15, %rdi
	callq	_mt2063_setreg
	orl	%eax, %r12d
	movl	%r12d, %r13d
	js	LBB0_46
LBB0_44:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%r15)
	movq	_mt2063_mode_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_45:
	movl	%r12d, %r13d
LBB0_46:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_MT2063_NUM_RCVR_MODES,4,2      ## @MT2063_NUM_RCVR_MODES
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_MT2063_REG_PD1_TGT,8,3         ## @MT2063_REG_PD1_TGT
	.comm	_RFAGCEN,8,3                    ## @RFAGCEN
	.comm	_MT2063_REG_CTRL_2C,8,3         ## @MT2063_REG_CTRL_2C
	.comm	_LNARIN,8,3                     ## @LNARIN
	.comm	_MT2063_REG_FIFF_CTRL2,8,3      ## @MT2063_REG_FIFF_CTRL2
	.comm	_FIFFQEN,8,3                    ## @FIFFQEN
	.comm	_FIFFQ,8,3                      ## @FIFFQ
	.comm	_MT2063_REG_FIFF_CTRL,8,3       ## @MT2063_REG_FIFF_CTRL
	.comm	_MT2063_REG_LNA_OV,8,3          ## @MT2063_REG_LNA_OV
	.comm	_ACLNAMAX,8,3                   ## @ACLNAMAX
	.comm	_MT2063_REG_LNA_TGT,8,3         ## @MT2063_REG_LNA_TGT
	.comm	_LNATGT,8,3                     ## @LNATGT
	.comm	_MT2063_REG_RF_OV,8,3           ## @MT2063_REG_RF_OV
	.comm	_ACRFMAX,8,3                    ## @ACRFMAX
	.comm	_PD1TGT,8,3                     ## @PD1TGT
	.comm	_ACFIFMAX,8,3                   ## @ACFIFMAX
	.comm	_MT2063_REG_PART_REV,8,3        ## @MT2063_REG_PART_REV
	.comm	_MT2063_B3,4,2                  ## @MT2063_B3
	.comm	_MT2063_REG_FIF_OV,8,3          ## @MT2063_REG_FIF_OV
	.comm	_MT2063_REG_PD2_TGT,8,3         ## @MT2063_REG_PD2_TGT
	.comm	_PD2TGT,8,3                     ## @PD2TGT
	.comm	_RFOVDIS,8,3                    ## @RFOVDIS
	.comm	_FIFOVDIS,8,3                   ## @FIFOVDIS
L_.str.1:                               ## @.str.1
	.asciz	"mt2063 mode changed to %s\n"

	.comm	_mt2063_mode_name,8,3           ## @mt2063_mode_name
	.no_dead_strip	_MT2063_SetReceiverMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MT2063_SetReceiverMode
_MT2063_SetReceiverMode:                ; @MT2063_SetReceiverMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
Lloh2:
	adrp	x8, _MT2063_NUM_RCVR_MODES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT2063_NUM_RCVR_MODES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _ERANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w9, w19
	csneg	w21, wzr, w8, hi
	tbnz	w21, #31, LBB0_9
; %bb.1:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _MT2063_REG_PD1_TGT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MT2063_REG_PD1_TGT@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
Lloh11:
	adrp	x10, _RFAGCEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RFAGCEN@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	x10, [x10, w19, uxtw #3]
	cmp	x10, #0
	cset	w10, ne
	mov	x2, x9
	bfi	w2, w10, #6, #1
	cmp	w9, w2
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_10
; %bb.3:
	ldr	x8, [x20]
LBB0_4:
Lloh14:
	adrp	x9, _MT2063_REG_CTRL_2C@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MT2063_REG_CTRL_2C@GOTPAGEOFF]
	mov	w22, w19
Lloh16:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
Lloh17:
	adrp	x10, _LNARIN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LNARIN@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	ldr	w10, [x10, x22, lsl #2]
	mov	x2, x9
	bfxil	w2, w10, #0, #2
	cmp	w9, w2
	b.eq	LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_10
; %bb.6:
	ldr	x8, [x20]
LBB0_7:
Lloh20:
	adrp	x9, _MT2063_REG_FIFF_CTRL2@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MT2063_REG_FIFF_CTRL2@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x9]
	ldr	w8, [x8, x1, lsl #2]
	and	w9, w8, #0xffffff0f
Lloh23:
	adrp	x10, _FIFFQEN@GOTPAGE
Lloh24:
	ldr	x10, [x10, _FIFFQEN@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	lsl	x11, x22, #2
	ldr	w10, [x10, x11]
Lloh26:
	adrp	x12, _FIFFQ@GOTPAGE
Lloh27:
	ldr	x12, [x12, _FIFFQ@GOTPAGEOFF]
	orr	w9, w9, w10, lsl #7
Lloh28:
	ldr	x10, [x12]
	ldr	w10, [x10, x11]
	orr	w2, w9, w10, lsl #4
	cmp	w8, w2
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	ldr	x8, [x20]
Lloh29:
	adrp	x22, _MT2063_REG_FIFF_CTRL@GOTPAGE
Lloh30:
	ldr	x22, [x22, _MT2063_REG_FIFF_CTRL@GOTPAGEOFF]
	ldr	x1, [x22]
	ldr	w8, [x8, x1, lsl #2]
	orr	w2, w8, #0x1
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w21, w0
	ldr	x8, [x20]
	ldr	x1, [x22]
	ldr	w8, [x8, x1, lsl #2]
	and	w2, w8, #0xfffffffe
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w21, w0
	b	LBB0_10
LBB0_9:
	neg	w21, w8
LBB0_10:
	add	x1, sp, #12
	mov	x0, x20
	bl	_mt2063_get_dnc_output_enable
	orr	w21, w0, w21
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_mt2063_set_dnc_output_enable
	orr	w21, w21, w0
	tbnz	w21, #31, LBB0_35
; %bb.11:
Lloh31:
	adrp	x9, _MT2063_REG_LNA_OV@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MT2063_REG_LNA_OV@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh33:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
Lloh34:
	adrp	x10, _ACLNAMAX@GOTPAGE
Lloh35:
	ldr	x10, [x10, _ACLNAMAX@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	ldr	w10, [x10, w19, uxtw #2]
	mov	x2, x9
	bfxil	w2, w10, #0, #5
	cmp	w9, w2
	b.eq	LBB0_14
; %bb.12:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.13:
	ldr	x8, [x20]
LBB0_14:
Lloh37:
	adrp	x23, _MT2063_REG_LNA_TGT@GOTPAGE
Lloh38:
	ldr	x23, [x23, _MT2063_REG_LNA_TGT@GOTPAGEOFF]
	mov	w22, w19
	ldr	x1, [x23]
	ldr	w9, [x8, x1, lsl #2]
Lloh39:
	adrp	x10, _LNATGT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _LNATGT@GOTPAGEOFF]
Lloh41:
	ldr	x10, [x10]
	ldr	w10, [x10, x22, lsl #2]
	mov	x2, x9
	bfxil	w2, w10, #0, #6
	cmp	w9, w2
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.16:
	ldr	x8, [x20]
LBB0_17:
Lloh42:
	adrp	x9, _MT2063_REG_RF_OV@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MT2063_REG_RF_OV@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
Lloh45:
	adrp	x10, _ACRFMAX@GOTPAGE
Lloh46:
	ldr	x10, [x10, _ACRFMAX@GOTPAGEOFF]
Lloh47:
	ldr	x10, [x10]
	ldr	w10, [x10, x22, lsl #2]
	mov	x2, x9
	bfxil	w2, w10, #0, #5
	cmp	w9, w2
	b.eq	LBB0_20
; %bb.18:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.19:
	ldr	x8, [x20]
LBB0_20:
Lloh48:
	adrp	x24, _MT2063_REG_PD1_TGT@GOTPAGE
Lloh49:
	ldr	x24, [x24, _MT2063_REG_PD1_TGT@GOTPAGEOFF]
	ldr	x1, [x24]
	ldr	w9, [x8, x1, lsl #2]
Lloh50:
	adrp	x10, _PD1TGT@GOTPAGE
Lloh51:
	ldr	x10, [x10, _PD1TGT@GOTPAGEOFF]
Lloh52:
	ldr	x10, [x10]
	ldr	w10, [x10, x22, lsl #2]
	mov	x2, x9
	bfxil	w2, w10, #0, #6
	cmp	w9, w2
	b.eq	LBB0_23
; %bb.21:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.22:
	ldr	x8, [x20]
LBB0_23:
Lloh53:
	adrp	x9, _ACFIFMAX@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ACFIFMAX@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	ldr	w9, [x9, x22, lsl #2]
Lloh56:
	adrp	x10, _MT2063_REG_PART_REV@GOTPAGE
Lloh57:
	ldr	x10, [x10, _MT2063_REG_PART_REV@GOTPAGEOFF]
Lloh58:
	ldr	x10, [x10]
	ldr	w10, [x8, x10, lsl #2]
Lloh59:
	adrp	x11, _MT2063_B3@GOTPAGE
Lloh60:
	ldr	x11, [x11, _MT2063_B3@GOTPAGEOFF]
Lloh61:
	ldr	w11, [x11]
	cmp	w9, #5
	ccmp	w10, w11, #4, gt
Lloh62:
	adrp	x10, _MT2063_REG_FIF_OV@GOTPAGE
Lloh63:
	ldr	x10, [x10, _MT2063_REG_FIF_OV@GOTPAGEOFF]
Lloh64:
	ldr	x1, [x10]
	ldr	w10, [x8, x1, lsl #2]
	and	w11, w10, #0xffffffe0
	and	w9, w9, #0x1f
	mov	w12, #5
	csel	w9, w12, w9, ne
	orr	w2, w11, w9
	cmp	w10, w2
	b.eq	LBB0_26
; %bb.24:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.25:
	ldr	x8, [x20]
LBB0_26:
Lloh65:
	adrp	x9, _MT2063_REG_PD2_TGT@GOTPAGE
Lloh66:
	ldr	x9, [x9, _MT2063_REG_PD2_TGT@GOTPAGEOFF]
Lloh67:
	ldr	x1, [x9]
	ldr	w9, [x8, x1, lsl #2]
Lloh68:
	adrp	x10, _PD2TGT@GOTPAGE
Lloh69:
	ldr	x10, [x10, _PD2TGT@GOTPAGEOFF]
Lloh70:
	ldr	x10, [x10]
	ldr	w10, [x10, x22, lsl #2]
	mov	x2, x9
	bfxil	w2, w10, #0, #6
	cmp	w9, w2
	b.eq	LBB0_29
; %bb.27:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.28:
	ldr	x8, [x20]
LBB0_29:
	ldr	x1, [x23]
	ldr	w9, [x8, x1, lsl #2]
Lloh71:
	adrp	x10, _RFOVDIS@GOTPAGE
Lloh72:
	ldr	x10, [x10, _RFOVDIS@GOTPAGEOFF]
Lloh73:
	ldr	x10, [x10]
	ldr	x10, [x10, x22, lsl #3]
	cmp	x10, #0
	cset	w10, ne
	mov	x2, x9
	bfi	w2, w10, #7, #1
	cmp	w9, w2
	b.eq	LBB0_32
; %bb.30:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
; %bb.31:
	ldr	x8, [x20]
LBB0_32:
	ldr	x1, [x24]
	ldr	w8, [x8, x1, lsl #2]
Lloh74:
	adrp	x9, _FIFOVDIS@GOTPAGE
Lloh75:
	ldr	x9, [x9, _FIFOVDIS@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	ldr	x9, [x9, x22, lsl #3]
	cmp	x9, #0
	cset	w9, ne
	mov	x2, x8
	bfi	w2, w9, #7, #1
	cmp	w8, w2
	b.eq	LBB0_34
; %bb.33:
	mov	x0, x20
	bl	_mt2063_setreg
	orr	w21, w0, w21
	tbnz	w21, #31, LBB0_35
LBB0_34:
	str	w19, [x20, #8]
Lloh77:
	adrp	x8, _mt2063_mode_name@GOTPAGE
Lloh78:
	ldr	x8, [x8, _mt2063_mode_name@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	ldr	w8, [x8, w19, sxtw #2]
	str	x8, [sp]
Lloh80:
	adrp	x1, l_.str.1@PAGE
Lloh81:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_35:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_MT2063_NUM_RCVR_MODES,4,2      ; @MT2063_NUM_RCVR_MODES
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_MT2063_REG_PD1_TGT,8,3         ; @MT2063_REG_PD1_TGT
	.comm	_RFAGCEN,8,3                    ; @RFAGCEN
	.comm	_MT2063_REG_CTRL_2C,8,3         ; @MT2063_REG_CTRL_2C
	.comm	_LNARIN,8,3                     ; @LNARIN
	.comm	_MT2063_REG_FIFF_CTRL2,8,3      ; @MT2063_REG_FIFF_CTRL2
	.comm	_FIFFQEN,8,3                    ; @FIFFQEN
	.comm	_FIFFQ,8,3                      ; @FIFFQ
	.comm	_MT2063_REG_FIFF_CTRL,8,3       ; @MT2063_REG_FIFF_CTRL
	.comm	_MT2063_REG_LNA_OV,8,3          ; @MT2063_REG_LNA_OV
	.comm	_ACLNAMAX,8,3                   ; @ACLNAMAX
	.comm	_MT2063_REG_LNA_TGT,8,3         ; @MT2063_REG_LNA_TGT
	.comm	_LNATGT,8,3                     ; @LNATGT
	.comm	_MT2063_REG_RF_OV,8,3           ; @MT2063_REG_RF_OV
	.comm	_ACRFMAX,8,3                    ; @ACRFMAX
	.comm	_PD1TGT,8,3                     ; @PD1TGT
	.comm	_ACFIFMAX,8,3                   ; @ACFIFMAX
	.comm	_MT2063_REG_PART_REV,8,3        ; @MT2063_REG_PART_REV
	.comm	_MT2063_B3,4,2                  ; @MT2063_B3
	.comm	_MT2063_REG_FIF_OV,8,3          ; @MT2063_REG_FIF_OV
	.comm	_MT2063_REG_PD2_TGT,8,3         ; @MT2063_REG_PD2_TGT
	.comm	_PD2TGT,8,3                     ; @PD2TGT
	.comm	_RFOVDIS,8,3                    ; @RFOVDIS
	.comm	_FIFOVDIS,8,3                   ; @FIFOVDIS
l_.str.1:                               ; @.str.1
	.asciz	"mt2063 mode changed to %s\n"

	.comm	_mt2063_mode_name,8,3           ; @mt2063_mode_name
	.no_dead_strip	_MT2063_SetReceiverMode
.subsections_via_symbols
