	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda827xo_set_analog_params
_tda827xo_set_analog_params:            ## @tda827xo_set_analog_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movl	12(%r12), %eax
	movl	%eax, -72(%rbp)
	movl	(%rsi), %r15d
	callq	_tda827x_set_std
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %eax
	imulq	$274877907, %rax, %r15          ## imm = 0x10624DD3
	shrq	$38, %r15
LBB0_2:
	addl	(%r12), %r15d
	movq	_tda827x_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r15, %rbx
	imull	$62500, %r15d, %ecx             ## imm = 0xF424
	movl	(%r8), %esi
	leaq	28(%r8), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rax
	cmpl	%ecx, %esi
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rax), %rdi
	movl	(%rdx), %esi
	addq	$28, %rdx
	testl	%esi, %esi
	jne	LBB0_3
LBB0_5:
	movl	%eax, %eax
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %r13
	addq	%rax, %r13
	movb	4(%r8,%r13), %cl
	shll	%cl, %ebx
	movb	$0, -56(%rbp)
	movb	%bh, -55(%rbp)
	movb	%bl, -54(%rbp)
	movb	$64, -53(%rbp)
	movb	4(%r12), %al
	shlb	$5, %al
	addb	$82, %al
	movb	%al, -52(%rbp)
	movl	4(%r8,%r13), %eax
	movl	8(%r8,%r13), %ecx
	shll	$6, %eax
	shll	$5, %ecx
	addl	%eax, %ecx
	movl	12(%r8,%r13), %eax
	leal	(%rcx,%rax,8), %eax
	addl	16(%r8,%r13), %eax
	movb	%al, -51(%rbp)
	movb	20(%r8,%r13), %al
	shlb	$4, %al
	addb	$-113, %al
	movb	%al, -50(%rbp)
	movb	$-113, -49(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$8, -80(%rbp)
	leaq	-88(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	leaq	-58(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$2, -80(%rbp)
	movw	$128, -58(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movw	$-16544, -58(%rbp)              ## imm = 0xBF60
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movb	$48, -58(%rbp)
	movb	-52(%rbp), %al
	addb	$-128, %al
	movb	%al, -57(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movl	$1, %edi
	callq	_msleep
	movb	$48, -58(%rbp)
	movb	-52(%rbp), %al
	addb	$4, %al
	movb	%al, -57(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movl	$1, %edi
	callq	_msleep
	movb	$48, -58(%rbp)
	movb	-52(%rbp), %al
	movb	%al, -57(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movl	$550, %edi                      ## imm = 0x226
	callq	_msleep
	movb	$48, -58(%rbp)
	movb	-52(%rbp), %al
	andb	$-4, %al
	movq	_tda827x_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addb	24(%rcx,%r13), %al
	movb	%al, -57(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movw	$16224, -58(%rbp)               ## imm = 0x3F60
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movw	$2176, -58(%rbp)                ## imm = 0x880
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_tuner_transfer
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_tda827x_table,8,3              ## @tda827x_table
	.no_dead_strip	_tda827xo_set_analog_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda827xo_set_analog_params
_tda827xo_set_analog_params:            ; @tda827xo_set_analog_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0]
	stp	xzr, xzr, [sp, #8]
	ldr	w8, [x21, #12]
	str	w8, [sp, #16]
	ldr	w22, [x1]
	bl	_tda827x_set_std
	mov	x9, #0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x10, _V4L2_TUNER_RADIO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x11, x22, x11
	lsr	x11, x11, #38
	cmp	x8, x10
	csel	w8, w11, w22, eq
	ldr	w10, [x21]
	add	w8, w8, w10
Lloh6:
	adrp	x22, _tda827x_table@GOTPAGE
Lloh7:
	ldr	x22, [x22, _tda827x_table@GOTPAGEOFF]
	ldr	x10, [x22]
	mov	w11, #62500
	mul	w11, w8, w11
	mov	x12, x10
	ldr	w14, [x12], #28
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x13, x9
	cmp	w14, w11
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x13, #1
	ldr	w14, [x12], #28
	cbnz	w14, LBB0_1
LBB0_3:
	and	x9, x13, #0xffffffff
	mov	w11, #28
	mul	x23, x9, x11
	add	x9, x10, x23
	ldr	w10, [x9, #4]
	lsl	w8, w8, w10
	strb	wzr, [sp, #32]
	lsr	w10, w8, #8
	strb	w10, [sp, #33]
	strb	w8, [sp, #34]
	mov	w8, #64
	strb	w8, [sp, #35]
	ldrb	w8, [x21, #4]
	lsl	w8, w8, #5
	add	w8, w8, #82
	strb	w8, [sp, #36]
	ldp	w8, w10, [x9, #4]
	lsl	w10, w10, #5
	add	w8, w10, w8, lsl #6
	ldp	w10, w11, [x9, #12]
	add	w8, w8, w10, lsl #3
	add	w8, w8, w11
	strb	w8, [sp, #37]
	ldrb	w8, [x9, #20]
	lsl	w8, w8, #4
	sub	w8, w8, #113
	strb	w8, [sp, #38]
	mov	w8, #143
	strb	w8, [sp, #39]
	add	x8, sp, #32
	str	x8, [sp]
	mov	w8, #8
	str	w8, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	add	x8, sp, #30
	str	x8, [sp]
	mov	w8, #2
	str	w8, [sp, #8]
	mov	w8, #128
	strh	w8, [sp, #30]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w8, #48992
	strh	w8, [sp, #30]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w24, #48
	strb	w24, [sp, #30]
	ldrb	w8, [sp, #36]
	eor	w8, w8, #0x80
	strb	w8, [sp, #31]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w0, #1
	bl	_msleep
	strb	w24, [sp, #30]
	ldrb	w8, [sp, #36]
	add	w8, w8, #4
	strb	w8, [sp, #31]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w0, #1
	bl	_msleep
	strb	w24, [sp, #30]
	ldrb	w8, [sp, #36]
	strb	w8, [sp, #31]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w0, #550
	bl	_msleep
	strb	w24, [sp, #30]
	ldrb	w8, [sp, #36]
	and	w8, w8, #0xfc
	ldr	x9, [x22]
	add	x9, x9, x23
	ldrb	w9, [x9, #24]
	add	w8, w9, w8
	strb	w8, [sp, #31]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w8, #16224
	strh	w8, [sp, #30]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	mov	w8, #2176
	strh	w8, [sp, #30]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	ldr	w8, [x19]
	str	w8, [x21, #8]
	ldr	x8, [sp, #40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_tda827x_table,8,3              ; @tda827x_table
	.no_dead_strip	_tda827xo_set_analog_params
.subsections_via_symbols
