	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10023_set_parameters
_tda10023_set_parameters:               ## @tda10023_set_parameters
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r12d
	cmpq	$6, %r12
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_5:
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_tda10023_set_symbolrate
	leaq	(%r12,%r12,2), %rbx
	leaq	_tda10023_set_parameters.qamvals(%rip), %r12
	movl	(%r12,%rbx,8), %r14d
	movl	4(%r12,%rbx,8), %edx
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_tda10023_writereg
	movl	8(%r12,%rbx,8), %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_tda10023_writereg
	movl	12(%r12,%rbx,8), %edx
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_tda10023_writereg
	movl	16(%r12,%rbx,8), %edx
	movq	%r15, %rdi
	movl	$180, %esi
	callq	_tda10023_writereg
	movl	20(%r12,%rbx,8), %edx
	movq	%r15, %rdi
	movl	$182, %esi
	callq	_tda10023_writereg
	movq	%r15, %rdi
	movl	$4, %esi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_tda10023_writebit
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_tda10023_setup_reg0
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @tda10023_set_parameters.qamvals
_tda10023_set_parameters.qamvals:
	.long	20                              ## 0x14
	.long	120                             ## 0x78
	.long	140                             ## 0x8c
	.long	150                             ## 0x96
	.long	120                             ## 0x78
	.long	76                              ## 0x4c
	.long	0                               ## 0x0
	.long	135                             ## 0x87
	.long	162                             ## 0xa2
	.long	145                             ## 0x91
	.long	140                             ## 0x8c
	.long	87                              ## 0x57
	.long	4                               ## 0x4
	.long	100                             ## 0x64
	.long	116                             ## 0x74
	.long	150                             ## 0x96
	.long	140                             ## 0x8c
	.long	87                              ## 0x57
	.long	8                               ## 0x8
	.long	70                              ## 0x46
	.long	67                              ## 0x43
	.long	106                             ## 0x6a
	.long	106                             ## 0x6a
	.long	68                              ## 0x44
	.long	12                              ## 0xc
	.long	54                              ## 0x36
	.long	52                              ## 0x34
	.long	126                             ## 0x7e
	.long	120                             ## 0x78
	.long	76                              ## 0x4c
	.long	16                              ## 0x10
	.long	38                              ## 0x26
	.long	35                              ## 0x23
	.long	108                             ## 0x6c
	.long	92                              ## 0x5c
	.long	60                              ## 0x3c

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10023_set_parameters
_tda10023_set_parameters:               ; @tda10023_set_parameters
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w22, [x1]
	cmp	w22, #6
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x19, [x0, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	blr	x8
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	w1, #0
	blr	x8
LBB0_5:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_tda10023_set_symbolrate
	mov	w8, #24
Lloh3:
	adrp	x9, _tda10023_set_parameters.qamvals@PAGE
Lloh4:
	add	x9, x9, _tda10023_set_parameters.qamvals@PAGEOFF
	madd	x20, x22, x8, x9
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #5
	bl	_tda10023_writereg
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #8
	bl	_tda10023_writereg
	ldr	w2, [x20, #12]
	mov	x0, x19
	mov	w1, #9
	bl	_tda10023_writereg
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	w1, #180
	bl	_tda10023_writereg
	ldr	w2, [x20, #20]
	mov	x0, x19
	mov	w1, #182
	bl	_tda10023_writereg
	mov	x0, x19
	mov	w1, #4
	mov	w2, #64
	mov	w3, #64
	bl	_tda10023_writebit
	ldr	w1, [x20]
	mov	x0, x19
	bl	_tda10023_setup_reg0
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @tda10023_set_parameters.qamvals
_tda10023_set_parameters.qamvals:
	.long	20                              ; 0x14
	.long	120                             ; 0x78
	.long	140                             ; 0x8c
	.long	150                             ; 0x96
	.long	120                             ; 0x78
	.long	76                              ; 0x4c
	.long	0                               ; 0x0
	.long	135                             ; 0x87
	.long	162                             ; 0xa2
	.long	145                             ; 0x91
	.long	140                             ; 0x8c
	.long	87                              ; 0x57
	.long	4                               ; 0x4
	.long	100                             ; 0x64
	.long	116                             ; 0x74
	.long	150                             ; 0x96
	.long	140                             ; 0x8c
	.long	87                              ; 0x57
	.long	8                               ; 0x8
	.long	70                              ; 0x46
	.long	67                              ; 0x43
	.long	106                             ; 0x6a
	.long	106                             ; 0x6a
	.long	68                              ; 0x44
	.long	12                              ; 0xc
	.long	54                              ; 0x36
	.long	52                              ; 0x34
	.long	126                             ; 0x7e
	.long	120                             ; 0x78
	.long	76                              ; 0x4c
	.long	16                              ; 0x10
	.long	38                              ; 0x26
	.long	35                              ; 0x23
	.long	108                             ; 0x6c
	.long	92                              ; 0x5c
	.long	60                              ; 0x3c

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