	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function philips_tda6651_pll_set
_philips_tda6651_pll_set:               ## @philips_tda6651_pll_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %r14
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	%ebx, -72(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$16, -56(%rbp)
	movl	(%rsi), %ecx
	cmpl	$50833999, %ecx                 ## imm = 0x307AA4F
	jle	LBB0_20
## %bb.1:
	movl	$1, %eax
	movl	$96, %r9d
	cmpl	$93834000, %ecx                 ## imm = 0x597CB10
	jb	LBB0_15
## %bb.2:
	cmpl	$123834000, %ecx                ## imm = 0x7618E90
	jae	LBB0_4
LBB0_3:
	movl	$160, %r9d
	jmp	LBB0_15
LBB0_4:
	cmpl	$163834000, %ecx                ## imm = 0x9C3E890
	jae	LBB0_6
## %bb.5:
	cmpl	$161000000, %ecx                ## imm = 0x998AA40
	movl	$2, %eax
	sbbl	$0, %eax
	movl	$192, %r9d
	jmp	LBB0_15
LBB0_6:
	movl	$2, %eax
	cmpl	$253834000, %ecx                ## imm = 0xF213310
	jb	LBB0_15
## %bb.7:
	cmpl	$383834000, %ecx                ## imm = 0x16E0D790
	jb	LBB0_3
## %bb.9:
	movl	$192, %r9d
	cmpl	$443834000, %ecx                ## imm = 0x1A745E90
	jb	LBB0_15
## %bb.10:
	cmpl	$583834000, %ecx                ## imm = 0x22CC9990
	jae	LBB0_12
## %bb.11:
	movl	$96, %r9d
	cmpl	$444000000, %ecx                ## imm = 0x1A76E700
	jae	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movl	$160, %r9d
	cmpl	$793834000, %ecx                ## imm = 0x2F50F210
	jb	LBB0_14
## %bb.13:
	movl	$224, %r9d
	cmpl	$858834000, %ecx                ## imm = 0x3330C450
	jae	LBB0_20
LBB0_14:
	movl	$4, %eax
LBB0_15:
	movl	4(%rsi), %esi
	addl	$-128, %esi
	cmpl	$3, %esi
	jae	LBB0_20
## %bb.16:
	movslq	%esi, %rsi
	leaq	l_switch.table.philips_tda6651_pll_set(%rip), %r8
	movl	%ecx, %ecx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	shrq	$38, %rcx
	leal	(%rcx,%rcx,2), %ecx
	addl	%ecx, %ecx
	addl	$217496, %ecx                   ## imm = 0x35198
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$38, %rdx
	shrq	$46, %rcx
	movl	%ecx, -48(%rbp)
	movzbl	%dl, %ecx
	movl	%ecx, -44(%rbp)
	orl	%r9d, %eax
	orl	(%r8,%rsi,4), %eax
	movl	$202, -40(%rbp)
	movl	%eax, -36(%rbp)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	$1, %esi
	callq	*%rax
LBB0_18:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.19:
	movl	$1, %edi
	callq	_msleep
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_21:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_25
## %bb.23:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_24:
	addl	%ebx, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_wprintk
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_21
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write to tuner at addr: 0x%02x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_philips_tda6651_pll_set
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.philips_tda6651_pll_set
l_switch.table.philips_tda6651_pll_set:
	.long	8                               ## 0x8
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.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 philips_tda6651_pll_set
lCPI0_0:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_philips_tda6651_pll_set:               ; @philips_tda6651_pll_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldp	x9, x8, [x0, #8]
	ldr	x19, [x8]
	ldr	x8, [x9]
	ldr	w20, [x8]
	str	w20, [sp]
	add	x8, sp, #24
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	ldr	w8, [x1]
	mov	w9, #43599
	movk	w9, #775, lsl #16
	cmp	w8, w9
	b.le	LBB0_26
; %bb.1:
	mov	w9, #51984
	movk	w9, #1431, lsl #16
	cmp	w8, w9
	b.hs	LBB0_3
; %bb.2:
	mov	w10, #1
	mov	w9, #96
	b	LBB0_21
LBB0_3:
	mov	w9, #36496
	movk	w9, #1889, lsl #16
	cmp	w8, w9
	b.hs	LBB0_5
; %bb.4:
	mov	w10, #1
	mov	w9, #160
	b	LBB0_21
LBB0_5:
	mov	w9, #59536
	movk	w9, #2499, lsl #16
	cmp	w8, w9
	b.hs	LBB0_7
; %bb.6:
	mov	w9, #43584
	movk	w9, #2456, lsl #16
	cmp	w8, w9
	mov	w9, #1
	cinc	w10, w9, hs
	mov	w9, #192
	b	LBB0_21
LBB0_7:
	mov	w9, #13072
	movk	w9, #3873, lsl #16
	cmp	w8, w9
	b.hs	LBB0_9
; %bb.8:
	mov	w10, #2
	mov	w9, #96
	b	LBB0_21
LBB0_9:
	mov	w9, #55184
	movk	w9, #5856, lsl #16
	cmp	w8, w9
	b.hs	LBB0_11
; %bb.10:
	mov	w10, #2
	mov	w9, #160
	b	LBB0_21
LBB0_11:
	mov	w9, #24208
	movk	w9, #6772, lsl #16
	cmp	w8, w9
	b.hs	LBB0_13
; %bb.12:
	mov	w10, #2
	mov	w9, #192
	b	LBB0_21
LBB0_13:
	mov	w9, #39312
	movk	w9, #8908, lsl #16
	cmp	w8, w9
	b.hs	LBB0_16
; %bb.14:
	mov	w9, #96
	mov	w10, #59136
	movk	w10, #6774, lsl #16
	cmp	w8, w10
	b.hs	LBB0_20
; %bb.15:
	mov	w10, #2
	b	LBB0_21
LBB0_16:
	mov	w9, #61968
	movk	w9, #12112, lsl #16
	cmp	w8, w9
	b.hs	LBB0_18
; %bb.17:
	mov	w9, #160
	b	LBB0_20
LBB0_18:
	mov	w9, #50256
	movk	w9, #13104, lsl #16
	cmp	w8, w9
	b.hs	LBB0_26
; %bb.19:
	mov	w9, #224
LBB0_20:
	mov	w10, #4
LBB0_21:
	ldr	w11, [x1, #4]
	sub	w11, w11, #128
	cmp	w11, #3
	b.hs	LBB0_26
; %bb.22:
Lloh5:
	adrp	x12, l_switch.table.philips_tda6651_pll_set@PAGE
Lloh6:
	add	x12, x12, l_switch.table.philips_tda6651_pll_set@PAGEOFF
	ldr	w11, [x12, w11, sxtw #2]
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	umull	x8, w8, w12
	lsr	x8, x8, #38
	mov	w13, #6
	mov	w14, #20888
	movk	w14, #3, lsl #16
	madd	w8, w8, w13, w14
	umull	x8, w8, w12
	lsr	x12, x8, #46
	ubfx	x8, x8, #38, #8
	stp	w12, w8, [sp, #24]
	mov	w8, #202
	orr	w9, w10, w9
	orr	w9, w9, w11
	stp	w8, w9, [sp, #32]
	ldr	x8, [x0]
	cbz	x8, LBB0_24
; %bb.23:
	mov	w1, #1
	blr	x8
LBB0_24:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_30
; %bb.25:
	bl	_msleep
	mov	w0, #0
	b	LBB0_28
LBB0_26:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.29:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_30:
	lsl	w1, w20, #1
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wprintk
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_27
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write to tuner at addr: 0x%02x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_philips_tda6651_pll_set
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.philips_tda6651_pll_set
l_switch.table.philips_tda6651_pll_set:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
