	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbc_philips_tdm1316l_tuner_set_params
_dvbc_philips_tdm1316l_tuner_set_params: ## @dvbc_philips_tdm1316l_tuner_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	%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	(%rax), %r14
	movl	$96, -72(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	$20, -56(%rbp)
	movl	16(%rdi), %ecx
	cmpl	$86999999, %ecx                 ## imm = 0x52F83BF
	jg	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_2:
	movq	%rdi, %rbx
	movl	$1, %eax
	cmpl	$130000000, %ecx                ## imm = 0x7BFA480
	jae	LBB0_4
LBB0_3:
	movl	$104, %edx
	jmp	LBB0_17
LBB0_4:
	cmpl	$160000000, %ecx                ## imm = 0x9896800
	jae	LBB0_6
LBB0_5:
	movl	$168, %edx
	jmp	LBB0_17
LBB0_6:
	movl	$200, %edx
	cmpl	$200000000, %ecx                ## imm = 0xBEBC200
	jae	LBB0_7
LBB0_17:
	orl	%edx, %eax
	addl	$36125000, %ecx                 ## imm = 0x2273948
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$46, %rdx
	shrq	$54, %rcx
	movl	%ecx, -48(%rbp)
	movzbl	%dl, %ecx
	movl	%ecx, -44(%rbp)
	movl	$200, -40(%rbp)
	movl	%eax, -36(%rbp)
	movl	$128, -32(%rbp)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_19:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.20:
	movl	$50, %edi
	callq	_msleep
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_22:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	jne	LBB0_25
## %bb.23:
	movl	$1, %edi
	callq	_msleep
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_24:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
LBB0_26:
	callq	_printk
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_27:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_30
## %bb.29:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	$2, %eax
	cmpl	$290000000, %ecx                ## imm = 0x11490C80
	jb	LBB0_3
## %bb.9:
	cmpl	$420000000, %ecx                ## imm = 0x1908B100
	jb	LBB0_5
## %bb.11:
	cmpl	$480000000, %ecx                ## imm = 0x1C9C3800
	jb	LBB0_17
## %bb.12:
	movl	$4, %eax
	cmpl	$620000000, %ecx                ## imm = 0x24F47300
	jb	LBB0_3
## %bb.14:
	cmpl	$830000000, %ecx                ## imm = 0x3178CB80
	jb	LBB0_5
## %bb.16:
	movl	$232, %edx
	cmpl	$895000000, %ecx                ## imm = 0x35589DC0
	jae	LBB0_1
	jmp	LBB0_17
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb-ttusb-budget: dvbc_philips_tdm1316l_pll_set Error 1\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"dvb-ttusb-budget: dvbc_philips_tdm1316l_pll_set Error 2\n"

	.no_dead_strip	_dvbc_philips_tdm1316l_tuner_set_params
.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 dvbc_philips_tdm1316l_tuner_set_params
lCPI0_0:
	.long	20                              ; 0x14
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dvbc_philips_tdm1316l_tuner_set_params: ; @dvbc_philips_tdm1316l_tuner_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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]
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	mov	w8, #96
	str	w8, [sp, #8]
	add	x8, sp, #36
	str	x8, [sp, #16]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	ldr	w8, [x0, #16]
	mov	w9, #33727
	movk	w9, #1327, lsl #16
	cmp	w8, w9
	b.gt	LBB0_2
LBB0_1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_31
LBB0_2:
	mov	x20, x0
	mov	w9, #42112
	movk	w9, #1983, lsl #16
	cmp	w8, w9
	b.hs	LBB0_4
; %bb.3:
	mov	w9, #104
	mov	w10, #1
	b	LBB0_21
LBB0_4:
	mov	w9, #26624
	movk	w9, #2441, lsl #16
	cmp	w8, w9
	b.hs	LBB0_6
; %bb.5:
	mov	w9, #168
	mov	w10, #1
	b	LBB0_21
LBB0_6:
	mov	w9, #49664
	movk	w9, #3051, lsl #16
	cmp	w8, w9
	b.hs	LBB0_8
; %bb.7:
	mov	w9, #200
	mov	w10, #1
	b	LBB0_21
LBB0_8:
	mov	w9, #3200
	movk	w9, #4425, lsl #16
	cmp	w8, w9
	b.hs	LBB0_10
; %bb.9:
	mov	w9, #104
	mov	w10, #2
	b	LBB0_21
LBB0_10:
	mov	w9, #45312
	movk	w9, #6408, lsl #16
	cmp	w8, w9
	b.hs	LBB0_12
; %bb.11:
	mov	w9, #168
	mov	w10, #2
	b	LBB0_21
LBB0_12:
	mov	w9, #14336
	movk	w9, #7324, lsl #16
	cmp	w8, w9
	b.hs	LBB0_14
; %bb.13:
	mov	w9, #200
	mov	w10, #2
	b	LBB0_21
LBB0_14:
	mov	w9, #29440
	movk	w9, #9460, lsl #16
	cmp	w8, w9
	b.hs	LBB0_16
; %bb.15:
	mov	w9, #104
	b	LBB0_20
LBB0_16:
	mov	w9, #52096
	movk	w9, #12664, lsl #16
	cmp	w8, w9
	b.hs	LBB0_18
; %bb.17:
	mov	w9, #168
	b	LBB0_20
LBB0_18:
	mov	w9, #40384
	movk	w9, #13656, lsl #16
	cmp	w8, w9
	b.hs	LBB0_1
; %bb.19:
	mov	w9, #232
LBB0_20:
	mov	w10, #4
LBB0_21:
	mov	w11, #14664
	movk	w11, #551, lsl #16
	add	w8, w8, w11
	mov	w11, #56963
	movk	w11, #17179, lsl #16
	umull	x8, w8, w11
	lsr	x11, x8, #54
	ubfx	x8, x8, #46, #8
	stp	w11, w8, [sp, #36]
	mov	w8, #200
	orr	w9, w9, w10
	stp	w8, w9, [sp, #44]
	mov	w8, #128
	str	w8, [sp, #52]
	ldr	x8, [x20]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_23:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_28
; %bb.24:
	mov	w0, #50
	bl	_msleep
	ldr	x8, [x20]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_26:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_29
; %bb.27:
	bl	_msleep
	mov	w0, #0
	b	LBB0_32
LBB0_28:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_30:
	bl	_printk
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_32:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb-ttusb-budget: dvbc_philips_tdm1316l_pll_set Error 1\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"dvb-ttusb-budget: dvbc_philips_tdm1316l_pll_set Error 2\n"

	.no_dead_strip	_dvbc_philips_tdm1316l_tuner_set_params
.subsections_via_symbols
