	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function philips_su1278_ty_ci_set_symbol_rate
_philips_su1278_ty_ci_set_symbol_rate:  ## @philips_su1278_ty_ci_set_symbol_rate
	.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	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r13
	movl	$134, %r14d
	cmpl	$2000000, %esi                  ## imm = 0x1E8480
	jl	LBB0_4
## %bb.1:
	movl	$137, %r14d
	cmpl	$5000000, %esi                  ## imm = 0x4C4B40
	jb	LBB0_4
## %bb.2:
	movl	$143, %r14d
	cmpl	$15000000, %esi                 ## imm = 0xE4E1C0
	jb	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	$45000000, %esi                 ## imm = 0x2AEA540
	movl	$149, %r14d
	cmovael	%eax, %r14d
LBB0_4:
	xorl	%r15d, %r15d
	cmpl	$4000000, %esi                  ## imm = 0x3D0900
	setge	%r15b
	movq	%r13, %rdi
	movl	$19, %esi
	movl	$181, %edx
	callq	_stv0299_writereg
	movq	%r13, %rdi
	movl	$20, %esi
	movl	%r14d, %edx
	callq	_stv0299_writereg
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movq	%r13, %rdi
	movl	$31, %esi
	callq	_stv0299_writereg
	movzbl	%bh, %edx
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_stv0299_writereg
	andl	$240, %ebx
	movq	%r13, %rdi
	movl	$33, %esi
	movl	%ebx, %edx
	callq	_stv0299_writereg
	leal	144(,%r15,4), %edx
	movq	%r13, %rdi
	movl	$15, %esi
	callq	_stv0299_writereg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_philips_su1278_ty_ci_set_symbol_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function philips_su1278_ty_ci_set_symbol_rate
_philips_su1278_ty_ci_set_symbol_rate:  ; @philips_su1278_ty_ci_set_symbol_rate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #134
	mov	w9, #33920
	movk	w9, #30, lsl #16
	mov	w10, #137
	mov	w11, #19264
	movk	w11, #76, lsl #16
	mov	w12, #143
	mov	w13, #57792
	movk	w13, #228, lsl #16
	mov	w14, #42304
	movk	w14, #686, lsl #16
	mov	w15, #149
	cmp	w1, w14
	csel	w14, w15, wzr, lo
	cmp	w1, w13
	csel	w12, w12, w14, lo
	cmp	w1, w11
	csel	w10, w10, w12, lo
	cmp	w1, w9
	csel	w22, w8, w10, lt
	mov	w1, #19
	mov	w2, #181
	bl	_stv0299_writereg
	mov	x0, x19
	mov	w1, #20
	mov	x2, x22
	bl	_stv0299_writereg
	ubfx	w2, w21, #16, #8
	mov	x0, x19
	mov	w1, #31
	bl	_stv0299_writereg
	ubfx	w2, w21, #8, #8
	mov	x0, x19
	mov	w1, #32
	bl	_stv0299_writereg
	and	w2, w21, #0xf0
	mov	x0, x19
	mov	w1, #33
	bl	_stv0299_writereg
	mov	w8, #2304
	movk	w8, #61, lsl #16
	mov	w9, #148
	mov	w10, #144
	cmp	w20, w8
	csel	w2, w10, w9, lt
	mov	x0, x19
	mov	w1, #15
	bl	_stv0299_writereg
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_philips_su1278_ty_ci_set_symbol_rate
.subsections_via_symbols
