	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rdi), %r15
	movl	(%rsi), %edx
	movq	_TDA18271_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	(%rdi), %rax
	movq	_FE_ATSC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	8(%r14), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_15
## %bb.2:
	addl	$-128, %eax
	cmpl	$1, %eax
	ja	LBB0_4
## %bb.3:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	28(%r15), %r13
	jmp	LBB0_16
LBB0_6:
	movq	_FE_OFDM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.7:
	movl	4(%r14), %eax
	cmpl	$132, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$133, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$134, %eax
	jne	LBB0_13
## %bb.10:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	20(%r15), %r13
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_15:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	24(%r15), %r13
LBB0_16:
	movl	$6000000, %ebx                  ## imm = 0x5B8D80
LBB0_17:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	callq	*%rax
LBB0_19:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_tda18271_tune
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_23
## %bb.20:
	movl	%r13d, (%r15)
	movq	(%r12), %rcx
	movq	_FE_OFDM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_22
## %bb.21:
	movl	4(%r14), %eax
LBB0_22:
	movl	%eax, 4(%r15)
	jmp	LBB0_23
LBB0_4:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
LBB0_12:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	12(%r15), %r13
	movl	$8000000, %ebx                  ## imm = 0x7A1200
	jmp	LBB0_17
LBB0_11:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%r15), %r13
	movl	$7000000, %ebx                  ## imm = 0x6ACFC0
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_tda_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA18271_DIGITAL,4,2           ## @TDA18271_DIGITAL
	.comm	_FE_ATSC,8,3                    ## @FE_ATSC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modulation not set!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FE_OFDM,8,3                    ## @FE_OFDM
L_.str.1:                               ## @.str.1
	.asciz	"bandwidth not set!\n"

L_.str.2:                               ## @.str.2
	.asciz	"modulation type not supported!\n"

	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #16]
	ldr	w21, [x1]
Lloh0:
	adrp	x8, _TDA18271_DIGITAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDA18271_DIGITAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x24, #8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _FE_ATSC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FE_ATSC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_10
; %bb.2:
	sub	w8, w8, #128
	cmp	w8, #1
	b.hi	LBB0_11
; %bb.3:
	mov	w22, #36224
	movk	w22, #91, lsl #16
	add	x23, x24, #28
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_4:
Lloh6:
	adrp	x9, _FE_OFDM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FE_OFDM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x19, #4]
	cmp	w8, #132
	b.eq	LBB0_12
; %bb.6:
	cmp	w8, #133
	b.eq	LBB0_13
; %bb.7:
	cmp	w8, #134
	b.ne	LBB0_20
; %bb.8:
	mov	w22, #36224
	movk	w22, #91, lsl #16
	add	x23, x24, #20
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_9:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_10:
	mov	w22, #36224
	movk	w22, #91, lsl #16
	add	x23, x24, #24
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_11:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_21
LBB0_12:
	add	x23, x24, #12
	mov	w22, #4608
	movk	w22, #122, lsl #16
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_13:
	add	x23, x24, #16
	mov	w22, #53184
	movk	w22, #106, lsl #16
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
LBB0_14:
	mov	x0, x20
	blr	x8
LBB0_15:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_tda18271_tune
	mov	x22, x0
	bl	_tda_fail
	cbnz	x0, LBB0_22
; %bb.16:
	str	w21, [x24]
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _FE_OFDM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FE_OFDM@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x19, #4]
	b	LBB0_19
LBB0_18:
	mov	w8, #0
LBB0_19:
	str	w8, [x24, #4]
	b	LBB0_22
LBB0_20:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_21:
	bl	_tda_warn
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_22:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA18271_DIGITAL,4,2           ; @TDA18271_DIGITAL
	.comm	_FE_ATSC,8,3                    ; @FE_ATSC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modulation not set!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FE_OFDM,8,3                    ; @FE_OFDM
l_.str.1:                               ; @.str.1
	.asciz	"bandwidth not set!\n"

l_.str.2:                               ; @.str.2
	.asciz	"modulation type not supported!\n"

	.no_dead_strip	_tda18271_set_params
.subsections_via_symbols
