	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function av7110_dvb_c_switch
_av7110_dvb_c_switch:                   ## @av7110_dvb_c_switch
	.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	(%rdi), %r14
	movq	(%r14), %rbx
	movq	8(%r14), %r15
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_STATUS_OVERLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	16(%r15), %rdi
	movq	%rdi, 8(%r15)
	callq	_saa7146_stop_preview
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	$0, 8(%r15)
LBB0_3:
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_SAA7146_HPS_SOURCE_PORT_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_SAA7146_HPS_SYNC_PORT_B@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_standard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_analog_standard@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	cmpl	$3, %eax
	je	LBB0_13
## %bb.5:
	cmpl	$2, %eax
	je	LBB0_15
## %bb.6:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_msp_writereg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	xorl	%ecx, %ecx
	callq	_msp_writereg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	xorl	%ecx, %ecx
	callq	_msp_writereg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$14, %edx
	movl	$12288, %ecx                    ## imm = 0x3000
	callq	_msp_writereg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$20224, %ecx                    ## imm = 0x4F00
	callq	_msp_writereg
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	movl	$20224, %ecx                    ## imm = 0x4F00
	callq	_msp_writereg
	movl	4(%rbx), %eax
	movq	_ANALOG_TUNER_VES1820@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.8:
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$15, %edx
	movl	$96, %ecx
	callq	_ves1820_writereg
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_22
LBB0_10:
	movq	_SAA7146_HPS_SOURCE_PORT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SAA7146_HPS_SYNC_PORT_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_standard@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dvb_standard@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	leaq	L_.str.9(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_MSP_WR_DSP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	movl	$544, %ecx                      ## imm = 0x220
	callq	_msp_writereg
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	movl	$544, %ecx                      ## imm = 0x220
	callq	_msp_writereg
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$544, %ecx                      ## imm = 0x220
	callq	_msp_writereg
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$14, %edx
	movl	$12288, %ecx                    ## imm = 0x3000
	callq	_msp_writereg
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$32512, %ecx                    ## imm = 0x7F00
	callq	_msp_writereg
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	movl	$32512, %ecx                    ## imm = 0x7F00
	callq	_msp_writereg
	movl	4(%rbx), %eax
	movq	_ANALOG_TUNER_VES1820@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.11:
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$15, %edx
	movl	$32, %ecx
	callq	_ves1820_writereg
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$72, %esi
	movl	$2, %edx
	movl	$217, %ecx
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$72, %esi
	movl	$2, %edx
	movl	$210, %ecx
LBB0_14:
	callq	_i2c_writereg
	cmpl	$1, %eax
	jne	LBB0_23
	jmp	LBB0_24
LBB0_16:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_24
LBB0_17:
	movq	_ANALOG_TUNER_STV0297@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	_SAA7146_GPIO_OUTLO@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_saa7146_setgpio
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_saa7146_setgpio
LBB0_19:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_24
LBB0_20:
	movq	_ANALOG_TUNER_STV0297@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
## %bb.21:
	movl	%r12d, %r13d
	movq	_SAA7146_GPIO_OUTHI@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_saa7146_setgpio
	movl	(%r12), %edx
	movl	%r13d, %r12d
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_saa7146_setgpio
LBB0_22:
	movq	%rbx, %rdi
	movl	$72, %esi
	movl	$2, %edx
	movl	$208, %ecx
	callq	_i2c_writereg
	movl	$1, %r13d
	cmpl	$1, %eax
	je	LBB0_24
LBB0_23:
	movl	8(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_24:
	movq	_COMTYPE_AUDIODAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADSwitch@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	%r13d, %r8d
	callq	_av7110_fw_cmd
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_26:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_saa7146_set_hps_source_and_sync
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.27:
	callq	_saa7146_start_preview
	movq	$0, 8(%r15)
LBB0_28:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p\n"

	.comm	_STATUS_OVERLAY,4,2             ## @STATUS_OVERLAY
L_.str.1:                               ## @.str.1
	.asciz	"suspending video failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"switching to analog TV:\n"

	.comm	_SAA7146_HPS_SOURCE_PORT_B,4,2  ## @SAA7146_HPS_SOURCE_PORT_B
	.comm	_SAA7146_HPS_SYNC_PORT_B,4,2    ## @SAA7146_HPS_SYNC_PORT_B
	.comm	_standard,4,2                   ## @standard
	.comm	_analog_standard,4,2            ## @analog_standard
L_.str.3:                               ## @.str.3
	.asciz	"switching SAA7113 to Analog Tuner Input\n"

	.comm	_MSP_WR_DSP,4,2                 ## @MSP_WR_DSP
	.comm	_ANALOG_TUNER_VES1820,4,2       ## @ANALOG_TUNER_VES1820
L_.str.4:                               ## @.str.4
	.asciz	"setting band in demodulator failed\n"

	.comm	_ANALOG_TUNER_STV0297,4,2       ## @ANALOG_TUNER_STV0297
	.comm	_SAA7146_GPIO_OUTHI,4,2         ## @SAA7146_GPIO_OUTHI
L_.str.5:                               ## @.str.5
	.asciz	"saa7113 write failed @ card %d"

L_.str.6:                               ## @.str.6
	.asciz	"switching SAA7113 to Video AV CVBS Input\n"

L_.str.7:                               ## @.str.7
	.asciz	"switching SAA7113 to Video AV Y/C Input\n"

L_.str.8:                               ## @.str.8
	.asciz	"switching SAA7113 to Input: AV7110: SAA7113: invalid input\n"

	.comm	_SAA7146_HPS_SOURCE_PORT_A,4,2  ## @SAA7146_HPS_SOURCE_PORT_A
	.comm	_SAA7146_HPS_SYNC_PORT_A,4,2    ## @SAA7146_HPS_SYNC_PORT_A
	.comm	_dvb_standard,4,2               ## @dvb_standard
L_.str.9:                               ## @.str.9
	.asciz	"switching DVB mode\n"

	.comm	_SAA7146_GPIO_OUTLO,4,2         ## @SAA7146_GPIO_OUTLO
	.comm	_COMTYPE_AUDIODAC,4,2           ## @COMTYPE_AUDIODAC
	.comm	_ADSwitch,4,2                   ## @ADSwitch
L_.str.10:                              ## @.str.10
	.asciz	"ADSwitch error\n"

	.no_dead_strip	_av7110_dvb_c_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function av7110_dvb_c_switch
_av7110_dvb_c_switch:                   ; @av7110_dvb_c_switch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0]
	ldp	x20, x24, [x19]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	bl	_dprintk
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _STATUS_OVERLAY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STATUS_OVERLAY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x24, #16]
	str	x0, [x24, #8]
	bl	_saa7146_stop_preview
	cbz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
	str	xzr, [x24, #8]
LBB0_3:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh9:
	adrp	x8, _SAA7146_HPS_SOURCE_PORT_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SAA7146_HPS_SOURCE_PORT_B@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _SAA7146_HPS_SYNC_PORT_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAA7146_HPS_SYNC_PORT_B@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _standard@GOTPAGE
Lloh16:
	ldr	x8, [x8, _standard@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _analog_standard@GOTPAGE
Lloh19:
	ldr	x8, [x8, _analog_standard@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
	ldr	w8, [x20]
	cmp	w8, #3
	b.eq	LBB0_13
; %bb.5:
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.6:
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.7:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh23:
	adrp	x23, _MSP_WR_DSP@GOTPAGE
Lloh24:
	ldr	x23, [x23, _MSP_WR_DSP@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #8
	mov	w3, #0
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #0
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #10
	mov	w3, #0
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #14
	mov	w3, #12288
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #20224
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #7
	mov	w3, #20224
	bl	_msp_writereg
	ldr	w8, [x20, #4]
Lloh25:
	adrp	x9, _ANALOG_TUNER_VES1820@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ANALOG_TUNER_VES1820@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.8:
	mov	x0, x19
	mov	w1, #9
	mov	w2, #15
	mov	w3, #96
	bl	_ves1820_writereg
	cbz	x0, LBB0_22
; %bb.9:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	b	LBB0_22
LBB0_10:
Lloh30:
	adrp	x8, _SAA7146_HPS_SOURCE_PORT_A@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SAA7146_HPS_SOURCE_PORT_A@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
Lloh33:
	adrp	x8, _SAA7146_HPS_SYNC_PORT_A@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SAA7146_HPS_SYNC_PORT_A@GOTPAGEOFF]
Lloh35:
	ldr	w22, [x8]
Lloh36:
	adrp	x8, _standard@GOTPAGE
Lloh37:
	ldr	x8, [x8, _standard@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _dvb_standard@GOTPAGE
Lloh40:
	ldr	x8, [x8, _dvb_standard@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh44:
	adrp	x23, _MSP_WR_DSP@GOTPAGE
Lloh45:
	ldr	x23, [x23, _MSP_WR_DSP@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #8
	mov	w3, #544
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #544
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #10
	mov	w3, #544
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #14
	mov	w3, #12288
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #32512
	bl	_msp_writereg
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #7
	mov	w3, #32512
	bl	_msp_writereg
	ldr	w8, [x20, #4]
Lloh46:
	adrp	x9, _ANALOG_TUNER_VES1820@GOTPAGE
Lloh47:
	ldr	x9, [x9, _ANALOG_TUNER_VES1820@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.11:
	mov	x0, x19
	mov	w1, #9
	mov	w2, #15
	mov	w3, #32
	bl	_ves1820_writereg
	cbz	x0, LBB0_19
; %bb.12:
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	b	LBB0_19
LBB0_13:
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w23, #1
	mov	w0, #1
	bl	_dprintk
	mov	x0, x20
	mov	w1, #72
	mov	w2, #2
	mov	w3, #217
	b	LBB0_15
LBB0_14:
Lloh53:
	adrp	x1, l_.str.6@PAGE
Lloh54:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w23, #1
	mov	w0, #1
	bl	_dprintk
	mov	x0, x20
	mov	w1, #72
	mov	w2, #2
	mov	w3, #210
LBB0_15:
	bl	_i2c_writereg
	cmp	w0, #1
	b.ne	LBB0_24
	b	LBB0_26
LBB0_16:
Lloh55:
	adrp	x1, l_.str.8@PAGE
Lloh56:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_25
LBB0_17:
Lloh57:
	adrp	x9, _ANALOG_TUNER_STV0297@GOTPAGE
Lloh58:
	ldr	x9, [x9, _ANALOG_TUNER_STV0297@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
Lloh60:
	adrp	x23, _SAA7146_GPIO_OUTLO@GOTPAGE
Lloh61:
	ldr	x23, [x23, _SAA7146_GPIO_OUTLO@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #1
	bl	_saa7146_setgpio
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #3
	bl	_saa7146_setgpio
LBB0_19:
	mov	w23, #0
	b	LBB0_26
LBB0_20:
Lloh62:
	adrp	x9, _ANALOG_TUNER_STV0297@GOTPAGE
Lloh63:
	ldr	x9, [x9, _ANALOG_TUNER_STV0297@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
Lloh65:
	adrp	x23, _SAA7146_GPIO_OUTHI@GOTPAGE
Lloh66:
	ldr	x23, [x23, _SAA7146_GPIO_OUTHI@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #1
	bl	_saa7146_setgpio
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #3
	bl	_saa7146_setgpio
LBB0_22:
	mov	x0, x20
	mov	w1, #72
	mov	w2, #2
	mov	w3, #208
	bl	_i2c_writereg
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.23:
	mov	w23, #1
	b	LBB0_26
LBB0_24:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh67:
	adrp	x1, l_.str.5@PAGE
Lloh68:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_25:
	mov	w23, #1
	mov	w0, #1
	bl	_dprintk
LBB0_26:
Lloh69:
	adrp	x8, _COMTYPE_AUDIODAC@GOTPAGE
Lloh70:
	ldr	x8, [x8, _COMTYPE_AUDIODAC@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _ADSwitch@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ADSwitch@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	mov	x4, x23
	bl	_av7110_fw_cmd
	cbz	x0, LBB0_28
; %bb.27:
Lloh75:
	adrp	x1, l_.str.10@PAGE
Lloh76:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_dprintk
LBB0_28:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_saa7146_set_hps_source_and_sync
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_30
; %bb.29:
	bl	_saa7146_start_preview
	str	xzr, [x24, #8]
LBB0_30:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p\n"

	.comm	_STATUS_OVERLAY,4,2             ; @STATUS_OVERLAY
l_.str.1:                               ; @.str.1
	.asciz	"suspending video failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"switching to analog TV:\n"

	.comm	_SAA7146_HPS_SOURCE_PORT_B,4,2  ; @SAA7146_HPS_SOURCE_PORT_B
	.comm	_SAA7146_HPS_SYNC_PORT_B,4,2    ; @SAA7146_HPS_SYNC_PORT_B
	.comm	_standard,4,2                   ; @standard
	.comm	_analog_standard,4,2            ; @analog_standard
l_.str.3:                               ; @.str.3
	.asciz	"switching SAA7113 to Analog Tuner Input\n"

	.comm	_MSP_WR_DSP,4,2                 ; @MSP_WR_DSP
	.comm	_ANALOG_TUNER_VES1820,4,2       ; @ANALOG_TUNER_VES1820
l_.str.4:                               ; @.str.4
	.asciz	"setting band in demodulator failed\n"

	.comm	_ANALOG_TUNER_STV0297,4,2       ; @ANALOG_TUNER_STV0297
	.comm	_SAA7146_GPIO_OUTHI,4,2         ; @SAA7146_GPIO_OUTHI
l_.str.5:                               ; @.str.5
	.asciz	"saa7113 write failed @ card %d"

l_.str.6:                               ; @.str.6
	.asciz	"switching SAA7113 to Video AV CVBS Input\n"

l_.str.7:                               ; @.str.7
	.asciz	"switching SAA7113 to Video AV Y/C Input\n"

l_.str.8:                               ; @.str.8
	.asciz	"switching SAA7113 to Input: AV7110: SAA7113: invalid input\n"

	.comm	_SAA7146_HPS_SOURCE_PORT_A,4,2  ; @SAA7146_HPS_SOURCE_PORT_A
	.comm	_SAA7146_HPS_SYNC_PORT_A,4,2    ; @SAA7146_HPS_SYNC_PORT_A
	.comm	_dvb_standard,4,2               ; @dvb_standard
l_.str.9:                               ; @.str.9
	.asciz	"switching DVB mode\n"

	.comm	_SAA7146_GPIO_OUTLO,4,2         ; @SAA7146_GPIO_OUTLO
	.comm	_COMTYPE_AUDIODAC,4,2           ; @COMTYPE_AUDIODAC
	.comm	_ADSwitch,4,2                   ; @ADSwitch
l_.str.10:                              ; @.str.10
	.asciz	"ADSwitch error\n"

	.no_dead_strip	_av7110_dvb_c_switch
.subsections_via_symbols
