	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_input_attach
_dvb_input_attach:                      ## @dvb_input_attach
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rsi
	movq	32(%rsi), %r15
	movl	(%rdi), %eax
	andl	$1, %eax
	imulq	$112, %rax, %r12
	leaq	(%r15,%r12), %rdi
	addq	$48, %rdi
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rsi)
	jne	LBB0_3
## %bb.1:
	movl	$-133, %eax
	addl	16(%rsi), %eax
	cmpl	$1, %eax
	ja	LBB0_3
## %bb.2:
	movq	(%rsi), %rax
	movq	24(%rsi), %rcx
	movq	8(%rcx), %rcx
	shlq	$4, %rax
	movl	$16777215, %edx                 ## imm = 0xFFFFFF
	andl	8(%rcx,%rax), %edx
	xorl	%ecx, %ecx
	cmpl	$65543, %edx                    ## imm = 0x10007
	setae	%cl
LBB0_3:
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	104(%r15,%r12), %r14
	movl	$1, (%r15,%r12)
	movq	%rbx, 88(%r15,%r12)
	movq	_DMX_TS_FILTERING@GOTPCREL(%rip), %rax
	movq	_DMX_SECTION_FILTERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DMX_MEMORY_BASED_FILTERING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 56(%r15,%r12)
	movq	_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r15,%r12)
	movq	_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15,%r12)
	movl	$256, (%rdi)                    ## imm = 0x100
	movl	$256, 52(%r15,%r12)             ## imm = 0x100
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r12), %rax
	leaq	(%r15,%r12), %rbx
	addq	$56, %rbx
	movq	%rax, %r13
	movl	$16, (%rax)
	leaq	24(%r15,%r12), %rdi
	movl	$256, 24(%r15,%r12)             ## imm = 0x100
	movq	%rbx, 32(%r15,%r12)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movq	%r13, %r14
	movl	$17, (%r13)
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r15,%r12), %rsi
	addq	$96, %rsi
	movl	%eax, 96(%r15,%r12)
	movq	%rbx, %rdi
	callq	*72(%r15,%r12)
	movq	_DMX_FRONTEND_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r15,%r12), %r13
	addq	$44, %r13
	movl	%eax, 44(%r15,%r12)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*72(%r15,%r12)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*64(%r15,%r12)
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	%r14, %rbx
	leaq	(%r15,%r12), %rax
	addq	$32, %rax
	movl	$18, (%r14)
	leaq	(%r15,%r12), %rsi
	addq	$40, %rsi
	movq	(%rax), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_net_init
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	js	LBB0_12
## %bb.7:
	movl	$32, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15,%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	xorl	%r13d, %r13d
	addl	$-128, %eax
	cmpl	$17, %eax
	ja	LBB0_50
## %bb.8:
	leaq	(%r15,%r12), %r14
	addq	$8, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmpq	*%rsi
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ddb_fe_attach_mxl5xx
	jmp	LBB0_41
LBB0_10:
	movl	%eax, %r13d
	jmp	LBB0_50
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	movl	%eax, %r13d
	callq	_dvb_input_detach
	jmp	LBB0_50
LBB0_13:
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_input_detach
	jmp	LBB0_50
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$129, %esi
	callq	_ddb_fe_attach_mci
	jmp	LBB0_41
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_demod_attach_stv0900
	testl	%eax, %eax
	js	LBB0_49
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	jmp	LBB0_25
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	jmp	LBB0_19
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
LBB0_19:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_demod_attach_stv0910
	testl	%eax, %eax
	js	LBB0_49
## %bb.20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	callq	_tuner_attach_stv6111
	jmp	LBB0_35
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_demod_attach_stv0910
	testl	%eax, %eax
	js	LBB0_49
## %bb.22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_tuner_attach_stv6111
	jmp	LBB0_35
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_demod_attach_stv0900
	testl	%eax, %eax
	js	LBB0_49
## %bb.24:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
LBB0_25:
	callq	_tuner_attach_stv6110
	jmp	LBB0_35
LBB0_26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_demod_attach_drxk
	testl	%eax, %eax
	js	LBB0_49
## %bb.27:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tuner_attach_tda18271
	jmp	LBB0_35
LBB0_28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_demod_attach_stv0367
	testl	%eax, %eax
	jns	LBB0_34
	jmp	LBB0_49
LBB0_29:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	24(%rax), %rax
	movq	8(%rax), %rax
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	_TS_QUIRK_ALT_OSC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%ecx, (%rax)
	sete	%dl
LBB0_30:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	24(%rax), %rax
	movq	8(%rax), %rax
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	_TS_QUIRK_SERIAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	andl	(%rax), %ecx
	sete	%sil
	jmp	LBB0_33
LBB0_31:
	movl	$1, %eax
LBB0_32:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
LBB0_33:
	callq	_demod_attach_cxd28xx
	testl	%eax, %eax
	js	LBB0_49
LBB0_34:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_tuner_attach_tda18212
LBB0_35:
	testl	%eax, %eax
	jns	LBB0_42
## %bb.36:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_38
## %bb.37:
	callq	_dvb_frontend_detach
LBB0_38:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_49
## %bb.39:
	callq	_dvb_frontend_detach
	jmp	LBB0_49
LBB0_40:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_demod_attach_dummy
LBB0_41:
	testl	%eax, %eax
	js	LBB0_49
LBB0_42:
	movl	$48, (%rbx)
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_47
## %bb.43:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_register_frontend
	testq	%rax, %rax
	js	LBB0_49
## %bb.44:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_47
## %bb.45:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_register_frontend
	movq	(%r14), %rsi
	testq	%rax, %rax
	js	LBB0_48
## %bb.46:
	movl	4(%rsi), %eax
	movq	8(%r14), %rdi
	movl	%eax, 4(%rdi)
	movl	$4, %edx
	callq	_memcpy
LBB0_47:
	movl	$49, (%rbx)
	jmp	LBB0_50
LBB0_48:
	movq	%rsi, %rdi
	callq	_dvb_unregister_frontend
LBB0_49:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dvb_input_detach
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_50:
	movl	%r13d, %eax
	addq	$40, %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_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_26
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_29
	.long	L0_0_set_31
	.long	L0_0_set_40
	.end_data_region
                                        ## -- End function
	.comm	_DMX_TS_FILTERING,4,2           ## @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ## @DMX_SECTION_FILTERING
	.comm	_DMX_MEMORY_BASED_FILTERING,4,2 ## @DMX_MEMORY_BASED_FILTERING
	.comm	_start_feed,4,2                 ## @start_feed
	.comm	_stop_feed,4,2                  ## @stop_feed
	.comm	_DMX_MEMORY_FE,4,2              ## @DMX_MEMORY_FE
	.comm	_DMX_FRONTEND_0,4,2             ## @DMX_FRONTEND_0
	.comm	_TS_QUIRK_ALT_OSC,4,2           ## @TS_QUIRK_ALT_OSC
	.comm	_TS_QUIRK_SERIAL,4,2            ## @TS_QUIRK_SERIAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner attach failed!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_dvb_input_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_input_attach
_dvb_input_attach:                      ; @dvb_input_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x25, [x0, #8]
	ldr	x26, [x25, #32]
	ldr	w8, [x0]
	and	x27, x8, #0x1
	mov	w8, #112
	madd	x8, x27, x8, x26
	add	x0, x8, #48
	ldr	x9, [x25, #8]
	cbnz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x25, #16]
	sub	w9, w9, #133
	cmp	w9, #1
	b.hi	LBB0_3
; %bb.2:
	ldr	x9, [x25, #24]
	ldr	x9, [x9, #8]
	ldr	x10, [x25]
	add	x9, x9, x10, lsl #4
	ldr	w9, [x9, #8]
	and	w9, w9, #0xffffff
	mov	w10, #6
	movk	w10, #1, lsl #16
	cmp	w9, w10
	cset	w21, hi
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	ldr	x20, [x8, #104]
	mov	w8, #112
	madd	x24, x27, x8, x26
	mov	w8, #1
	str	w8, [x24]
	str	x19, [x24, #88]
Lloh0:
	adrp	x8, _DMX_TS_FILTERING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMX_TS_FILTERING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DMX_SECTION_FILTERING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMX_SECTION_FILTERING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DMX_MEMORY_BASED_FILTERING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMX_MEMORY_BASED_FILTERING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	x23, x24
	str	w8, [x23, #56]!
Lloh9:
	adrp	x8, _start_feed@GOTPAGE
Lloh10:
	ldr	x8, [x8, _start_feed@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x24, #84]
Lloh12:
	adrp	x8, _stop_feed@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stop_feed@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x24, #80]
	movi.2s	v0, #1, lsl #8
	str	d0, [x0]
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_12
; %bb.5:
	mov	w8, #16
	str	w8, [x24]
	mov	w8, #112
	madd	x0, x27, x8, x26
	mov	w8, #256
	str	w8, [x0, #24]!
	mov	x28, x0
	str	x23, [x28, #8]!
	mov	x1, x20
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_11
; %bb.6:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	x21, x20
	mov	w8, #17
	str	w8, [x24]
Lloh15:
	adrp	x8, _DMX_MEMORY_FE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #112
	madd	x20, x27, x9, x26
	mov	x1, x20
	str	w8, [x1, #96]!
	ldr	x8, [x20, #72]
	mov	x0, x23
	blr	x8
Lloh18:
	adrp	x8, _DMX_FRONTEND_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMX_FRONTEND_0@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	x22, x20
	str	w8, [x22, #44]!
	ldr	x8, [x20, #72]
	mov	x0, x23
	mov	x1, x22
	blr	x8
	ldur	x8, [x22, #20]
	mov	x0, x23
	mov	x1, x22
	blr	x8
	tbnz	w0, #31, LBB0_11
; %bb.7:
	mov	w8, #18
	str	w8, [x24]
	mov	w8, #112
	madd	x8, x27, x8, x26
	add	x1, x8, #40
	ldr	x2, [x28]
	mov	x0, x21
	bl	_dvb_net_init
	tbnz	w0, #31, LBB0_11
; %bb.8:
	mov	w22, #0
	mov	w8, #32
	str	w8, [x24]
	mov	w8, #112
	madd	x23, x27, x8, x26
	str	xzr, [x23, #8]!
	mov	x26, x23
	str	xzr, [x26, #8]!
	ldr	w8, [x25, #16]
	sub	w8, w8, #128
	cmp	w8, #17
	b.hi	LBB0_48
; %bb.9:
Lloh21:
	adrp	x9, lJTI0_0@PAGE
Lloh22:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	x0, x19
	bl	_ddb_fe_attach_mxl5xx
	tbz	w0, #31, LBB0_35
	b	LBB0_47
LBB0_11:
	mov	x22, x0
	mov	x0, x19
	bl	_dvb_input_detach
	b	LBB0_48
LBB0_12:
	mov	x22, x0
	b	LBB0_48
LBB0_13:
	mov	x0, x19
	mov	w1, #129
	bl	_ddb_fe_attach_mci
	tbz	w0, #31, LBB0_35
	b	LBB0_47
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	bl	_demod_attach_stv0900
	tbnz	w0, #31, LBB0_47
; %bb.15:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_25
LBB0_16:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	mov	w1, #0
LBB0_18:
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_demod_attach_stv0910
	tbnz	w0, #31, LBB0_47
; %bb.19:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_22
LBB0_20:
	mov	x0, x19
	mov	w1, #0
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_demod_attach_stv0910
	tbnz	w0, #31, LBB0_47
; %bb.21:
	mov	x0, x19
	mov	w1, #0
LBB0_22:
	bl	_tuner_attach_stv6111
	tbz	w0, #31, LBB0_35
	b	LBB0_41
LBB0_23:
	mov	x0, x19
	mov	w1, #0
	bl	_demod_attach_stv0900
	tbnz	w0, #31, LBB0_47
; %bb.24:
	mov	x0, x19
	mov	w1, #0
LBB0_25:
	bl	_tuner_attach_stv6110
	tbz	w0, #31, LBB0_35
	b	LBB0_41
LBB0_26:
	mov	x0, x19
	bl	_demod_attach_drxk
	tbnz	w0, #31, LBB0_47
; %bb.27:
	mov	x0, x19
	bl	_tuner_attach_tda18271
	tbz	w0, #31, LBB0_35
	b	LBB0_41
LBB0_28:
	mov	x0, x19
	bl	_demod_attach_stv0367
	tbz	w0, #31, LBB0_34
	b	LBB0_47
LBB0_29:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	ldr	x9, [x9, #8]
	ldr	x8, [x8]
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _TS_QUIRK_ALT_OSC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TS_QUIRK_ALT_OSC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w22, eq
LBB0_30:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #24]
	ldr	x9, [x9, #8]
	ldr	x8, [x8]
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _TS_QUIRK_SERIAL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _TS_QUIRK_SERIAL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, eq
	mov	x0, x19
	b	LBB0_33
LBB0_31:
	mov	w22, #1
LBB0_32:
	mov	x0, x19
	mov	w1, #0
LBB0_33:
	mov	x2, x22
	bl	_demod_attach_cxd28xx
	tbnz	w0, #31, LBB0_47
LBB0_34:
	ldr	w1, [x25, #16]
	mov	x0, x19
	bl	_tuner_attach_tda18212
	tbnz	w0, #31, LBB0_41
LBB0_35:
	mov	w8, #48
	str	w8, [x24]
	ldr	x1, [x23]
	cbz	x1, LBB0_40
; %bb.36:
	mov	x0, x21
	bl	_dvb_register_frontend
	tbnz	x0, #63, LBB0_47
; %bb.37:
	ldr	x1, [x26]
	cbz	x1, LBB0_40
; %bb.38:
	mov	x0, x21
	bl	_dvb_register_frontend
	ldr	x1, [x23]
	tbnz	x0, #63, LBB0_46
; %bb.39:
	ldr	w8, [x1, #4]
	ldr	x0, [x26]
	str	w8, [x0, #4]
	mov	w2, #4
	bl	_memcpy
LBB0_40:
	mov	w22, #0
	mov	w8, #49
	str	w8, [x24]
	b	LBB0_48
LBB0_41:
	ldr	x8, [x25, #24]
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x0, [x26]
	cbz	x0, LBB0_43
; %bb.42:
	bl	_dvb_frontend_detach
LBB0_43:
	ldr	x0, [x23]
	cbz	x0, LBB0_47
; %bb.44:
	bl	_dvb_frontend_detach
	b	LBB0_47
LBB0_45:
	mov	x0, x19
	bl	_demod_attach_dummy
	tbz	w0, #31, LBB0_35
	b	LBB0_47
LBB0_46:
	mov	x0, x1
	bl	_dvb_unregister_frontend
LBB0_47:
	mov	x0, x19
	bl	_dvb_input_detach
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_48:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_30-LBB0_10)>>2
	.byte	(LBB0_32-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_20-LBB0_10)>>2
	.byte	(LBB0_23-LBB0_10)>>2
	.byte	(LBB0_26-LBB0_10)>>2
	.byte	(LBB0_28-LBB0_10)>>2
	.byte	(LBB0_30-LBB0_10)>>2
	.byte	(LBB0_32-LBB0_10)>>2
	.byte	(LBB0_30-LBB0_10)>>2
	.byte	(LBB0_32-LBB0_10)>>2
	.byte	(LBB0_29-LBB0_10)>>2
	.byte	(LBB0_31-LBB0_10)>>2
	.byte	(LBB0_45-LBB0_10)>>2
                                        ; -- End function
	.comm	_DMX_TS_FILTERING,4,2           ; @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ; @DMX_SECTION_FILTERING
	.comm	_DMX_MEMORY_BASED_FILTERING,4,2 ; @DMX_MEMORY_BASED_FILTERING
	.comm	_start_feed,4,2                 ; @start_feed
	.comm	_stop_feed,4,2                  ; @stop_feed
	.comm	_DMX_MEMORY_FE,4,2              ; @DMX_MEMORY_FE
	.comm	_DMX_FRONTEND_0,4,2             ; @DMX_FRONTEND_0
	.comm	_TS_QUIRK_ALT_OSC,4,2           ; @TS_QUIRK_ALT_OSC
	.comm	_TS_QUIRK_SERIAL,4,2            ; @TS_QUIRK_SERIAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner attach failed!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dvb_input_attach
.subsections_via_symbols
