	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function philips_sd1878_ci_set_symbol_rate
_philips_sd1878_ci_set_symbol_rate:     ## @philips_sd1878_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	$14, %esi
	movl	$35, %edx
	callq	_stv0299_writereg
	movq	%r13, %rdi
	movl	$15, %esi
	movl	$148, %edx
	callq	_stv0299_writereg
	movq	%r13, %rdi
	movl	$16, %esi
	movl	$57, %edx
	callq	_stv0299_writereg
	movq	%r13, %rdi
	movl	$19, %esi
	movl	$181, %edx
	callq	_stv0299_writereg
	movq	%r13, %rdi
	movl	$20, %esi
	movl	%r14d, %edx
	callq	_stv0299_writereg
	movq	%r13, %rdi
	movl	$21, %esi
	movl	$201, %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_sd1878_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_sd1878_ci_set_symbol_rate
_philips_sd1878_ci_set_symbol_rate:     ; @philips_sd1878_ci_set_symbol_rate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w8, #33920
	movk	w8, #30, lsl #16
	cmp	w1, w8
	b.ge	LBB0_2
; %bb.1:
	mov	w22, #134
	b	LBB0_3
LBB0_2:
	mov	w8, #137
	mov	w9, #19264
	movk	w9, #76, lsl #16
	mov	w10, #143
	mov	w11, #57792
	movk	w11, #228, lsl #16
	mov	w12, #42304
	movk	w12, #686, lsl #16
	mov	w13, #149
	cmp	w20, w12
	csel	w12, w13, wzr, lo
	cmp	w20, w11
	csel	w10, w10, w12, lo
	cmp	w20, w9
	csel	w22, w8, w10, lo
LBB0_3:
	mov	x0, x19
	mov	w1, #14
	mov	w2, #35
	bl	_stv0299_writereg
	mov	w23, #148
	mov	x0, x19
	mov	w1, #15
	mov	w2, #148
	bl	_stv0299_writereg
	mov	x0, x19
	mov	w1, #16
	mov	w2, #57
	bl	_stv0299_writereg
	mov	x0, x19
	mov	w1, #19
	mov	w2, #181
	bl	_stv0299_writereg
	mov	x0, x19
	mov	w1, #20
	mov	x2, x22
	bl	_stv0299_writereg
	mov	x0, x19
	mov	w1, #21
	mov	w2, #201
	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, #144
	cmp	w20, w8
	csel	w2, w9, w23, lt
	mov	x0, x19
	mov	w1, #15
	bl	_stv0299_writereg
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_philips_sd1878_ci_set_symbol_rate
.subsections_via_symbols
