	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2063_set_params
_mt2063_set_params:                     ## @mt2063_set_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r14
	cmpl	$0, 16(%r14)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_mt2063_init
	testl	%eax, %eax
	js	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movl	8(%r15), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$7000001, %eax                  ## imm = 0x6ACFC1
	movl	$8000000, %ecx                  ## imm = 0x7A1200
	movl	$7000000, %edx                  ## imm = 0x6ACFC0
	cmovgel	%ecx, %edx
	cmpl	$6000001, %eax                  ## imm = 0x5B8D81
	movl	$6000000, %r12d                 ## imm = 0x5B8D80
	cmovgel	%edx, %r12d
	movl	12(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_8
## %bb.4:
	cltq
	leaq	l_switch.table.mt2063_set_params(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	movabsq	$155155693568125000, %rax       ## imm = 0x22739480001E848
	movq	%rax, 4(%r14)
	leal	750000(%r12), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_MT2063_SetReceiverMode
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	%r12d, %r8d
	shrl	%r8d
	negl	%r8d
	movl	16(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dprintk
	movl	16(%r15), %esi
	movq	%r14, %rdi
	callq	_MT2063_Tune
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movl	16(%r15), %eax
	movl	%eax, (%r14)
	jmp	LBB0_12
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT2063_OFFAIR_COFDM,4,2        ## @MT2063_OFFAIR_COFDM
	.comm	_MT2063_CABLE_QAM,4,2           ## @MT2063_CABLE_QAM
L_.str.1:                               ## @.str.1
	.asciz	"Tuning to frequency: %d, bandwidth %d, foffset %d\n"

	.no_dead_strip	_mt2063_set_params
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.mt2063_set_params
l_switch.table.mt2063_set_params:
	.quad	_MT2063_OFFAIR_COFDM
	.quad	_MT2063_CABLE_QAM
	.quad	_MT2063_CABLE_QAM

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mt2063_set_params
lCPI0_0:
	.long	125000                          ; 0x1e848
	.long	36125000                        ; 0x2273948
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mt2063_set_params:                     ; @mt2063_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mt2063_init
	tbnz	w0, #31, LBB0_8
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
; %bb.3:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	mov	w10, #4608
	movk	w10, #122, lsl #16
	cmp	w8, w9
	csel	w9, w10, w9, gt
	mov	w10, #36224
	movk	w10, #91, lsl #16
	cmp	w8, w10
	csel	w21, w9, w10, gt
	ldr	w8, [x19, #12]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_7
; %bb.4:
Lloh2:
	adrp	x9, l_switch.table.mt2063_set_params@PAGE
Lloh3:
	add	x9, x9, l_switch.table.mt2063_set_params@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w1, [x8]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	add	w8, w21, #183, lsl #12          ; =749568
	add	w8, w8, #432
	str	w8, [x20, #12]
	mov	x0, x20
	bl	_MT2063_SetReceiverMode
	tbnz	w0, #31, LBB0_8
; %bb.5:
	neg	w8, w21, lsr #1
	ldr	w9, [x19, #16]
	stp	x21, x8, [sp, #8]
	str	x9, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_MT2063_Tune
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	w0, #0
	ldr	w8, [x19, #16]
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT2063_OFFAIR_COFDM,4,2        ; @MT2063_OFFAIR_COFDM
	.comm	_MT2063_CABLE_QAM,4,2           ; @MT2063_CABLE_QAM
l_.str.1:                               ; @.str.1
	.asciz	"Tuning to frequency: %d, bandwidth %d, foffset %d\n"

	.no_dead_strip	_mt2063_set_params
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mt2063_set_params
l_switch.table.mt2063_set_params:
	.quad	_MT2063_OFFAIR_COFDM
	.quad	_MT2063_CABLE_QAM
	.quad	_MT2063_CABLE_QAM

.subsections_via_symbols
