	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24123_set_frontend
_cx24123_set_frontend:                  ## @cx24123_set_frontend
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_2:
	movl	20(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_cx24123_set_inversion
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_cx24123_set_fec
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_cx24123_set_symbolrate
	movq	(%rbx), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	*%rax
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_cx24123_pll_tune
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
LBB0_7:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_cx24123_readreg
	orl	$7, %eax
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	%eax, %edx
	callq	_cx24123_writereg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_cx24123_writereg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_cx24123_writereg
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	*%rax
LBB0_9:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"it seems I don't have a tuner..."

	.no_dead_strip	_cx24123_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24123_set_frontend
_cx24123_set_frontend:                  ; @cx24123_set_frontend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_2:
	ldr	w8, [x19, #8]
	ldp	w1, w9, [x19, #16]
	stp	w8, w9, [x20, #8]
	mov	x0, x20
	bl	_cx24123_set_inversion
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_cx24123_set_fec
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_cx24123_set_symbolrate
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	blr	x8
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_cx24123_pll_tune
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
LBB0_7:
	mov	x0, x20
	mov	w1, #3
	bl	_cx24123_readreg
	orr	w2, w0, #0x7
	mov	x0, x20
	mov	w1, #3
	bl	_cx24123_writereg
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_cx24123_writereg
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_cx24123_writereg
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"it seems I don't have a tuner..."

	.no_dead_strip	_cx24123_set_frontend
.subsections_via_symbols
