	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_set_params
_tda18271_set_params:                   ## @tda18271_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	16(%rdi), %eax
	movl	20(%rdi), %r15d
	movl	24(%rdi), %r14d
	movq	8(%rdi), %r13
	movq	_TDA18271_DIGITAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r13)
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movl	$6000000, %ecx                  ## imm = 0x5B8D80
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	$6000000, %r15d                 ## imm = 0x5B8D80
	jg	LBB0_4
## %bb.3:
	leaq	36(%r13), %r12
	jmp	LBB0_15
LBB0_7:
	cmpl	$6000000, %r15d                 ## imm = 0x5B8D80
	jg	LBB0_10
## %bb.8:
	movl	%r15d, %ecx
LBB0_9:
	leaq	24(%r13), %r12
	movl	%ecx, %r15d
	jmp	LBB0_15
LBB0_4:
	cmpl	$7000000, %r15d                 ## imm = 0x6ACFC0
	ja	LBB0_6
## %bb.5:
	leaq	32(%r13), %r12
	jmp	LBB0_15
LBB0_10:
	cmpl	$7000000, %r15d                 ## imm = 0x6ACFC0
	ja	LBB0_12
## %bb.11:
	leaq	20(%r13), %r12
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_tda_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_14:
	leaq	40(%r13), %r12
	movl	$6000000, %r15d                 ## imm = 0x5B8D80
	jmp	LBB0_15
LBB0_6:
	leaq	28(%r13), %r12
	jmp	LBB0_15
LBB0_12:
	leaq	16(%r13), %r12
LBB0_15:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_17:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_tda18271_tune
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movl	(%r12), %eax
	movl	%eax, 8(%r13)
	movl	%r14d, (%r13)
	movl	%r15d, 4(%r13)
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_TDA18271_DIGITAL,4,2           ## @TDA18271_DIGITAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modulation type not supported!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tda18271_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_set_params
_tda18271_set_params:                   ; @tda18271_set_params
	.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
	ldp	w9, w8, [x0, #16]
	ldr	w19, [x0, #24]
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x10, _TDA18271_DIGITAL@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TDA18271_DIGITAL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	str	w10, [x23, #12]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hi	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w21, #36224
	movk	w21, #91, lsl #16
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	add	w9, w21, #1
	mov	w10, #53185
	movk	w10, #106, lsl #16
	cmp	w8, w10
	add	x10, x23, #28
	add	x11, x23, #32
	csel	x10, x10, x11, hs
	add	x11, x23, #36
	cmp	w8, w9
	csel	x22, x10, x11, ge
	b	LBB0_9
LBB0_3:
	add	w9, w21, #1
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.4:
	mov	x21, x8
LBB0_5:
	add	x22, x23, #24
	ldr	x8, [x20]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tda_warn
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_7:
	add	x22, x23, #40
	ldr	x8, [x20]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_8:
	mov	w9, #53185
	movk	w9, #106, lsl #16
	cmp	w8, w9
	add	x9, x23, #16
	add	x10, x23, #20
	csel	x22, x9, x10, hs
LBB0_9:
	mov	x21, x8
	ldr	x8, [x20]
	cbz	x8, LBB0_11
LBB0_10:
	mov	x0, x20
	blr	x8
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x21
	bl	_tda18271_tune
	mov	x20, x0
	bl	_tda_fail
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w8, [x22]
	stp	w21, w8, [x23, #4]
	str	w19, [x23]
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_TDA18271_DIGITAL,4,2           ; @TDA18271_DIGITAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modulation type not supported!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tda18271_set_params
.subsections_via_symbols
