	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw2104_frontend_attach
_dw2104_frontend_attach:                ## @dw2104_frontend_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_demod_probe@GOTPCREL(%rip), %r15
	testb	$4, (%r15)
	je	LBB0_4
## %bb.1:
	movq	_stv0900_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_dw2104a_stv0900_config@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_stb6100_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rcx
	movq	_dw2104a_stb6100_config@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_dvb_attach
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_stb6100_set_freq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	_stb6100_get_freq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_stb6100_set_bandw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_stb6100_get_bandw@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_dw210x_set_voltage@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_info
	jmp	LBB0_14
LBB0_4:
	testb	$2, (%r15)
	je	LBB0_8
## %bb.5:
	movq	_stv0900_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_dw2104_stv0900_config@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_stv6110_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rcx
	movq	_dw2104_stv6110_config@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_dvb_attach
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_dw210x_set_voltage@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	jmp	LBB0_14
LBB0_8:
	testb	$1, (%r15)
	je	LBB0_11
## %bb.9:
	movq	_cx24116_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_dw2104_config@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_dw210x_set_voltage@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	leaq	L_.str.2(%rip), %rdi
	callq	_info
	jmp	LBB0_14
LBB0_11:
	movq	_ds3000_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rdx
	movq	_dw2104_ds3000_config@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ts2020_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%rbx), %rcx
	movq	_dw2104_ts2020_config@GOTPCREL(%rip), %rdx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	_dw210x_set_voltage@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.3(%rip), %rdi
	callq	_info
	jmp	LBB0_14
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_demod_probe,4,2                ## @demod_probe
	.comm	_stv0900_attach,4,2             ## @stv0900_attach
	.comm	_dw2104a_stv0900_config,24,3    ## @dw2104a_stv0900_config
	.comm	_stb6100_attach,4,2             ## @stb6100_attach
	.comm	_dw2104a_stb6100_config,4,2     ## @dw2104a_stb6100_config
	.comm	_stb6100_set_freq,4,2           ## @stb6100_set_freq
	.comm	_stb6100_get_freq,4,2           ## @stb6100_get_freq
	.comm	_stb6100_set_bandw,4,2          ## @stb6100_set_bandw
	.comm	_stb6100_get_bandw,4,2          ## @stb6100_get_bandw
	.comm	_dw210x_set_voltage,8,3         ## @dw210x_set_voltage
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attached STV0900+STB6100!"

	.comm	_dw2104_stv0900_config,24,3     ## @dw2104_stv0900_config
	.comm	_stv6110_attach,4,2             ## @stv6110_attach
	.comm	_dw2104_stv6110_config,4,2      ## @dw2104_stv6110_config
L_.str.1:                               ## @.str.1
	.asciz	"Attached STV0900+STV6110A!"

	.comm	_cx24116_attach,4,2             ## @cx24116_attach
	.comm	_dw2104_config,4,2              ## @dw2104_config
L_.str.2:                               ## @.str.2
	.asciz	"Attached cx24116!"

	.comm	_ds3000_attach,4,2              ## @ds3000_attach
	.comm	_dw2104_ds3000_config,4,2       ## @dw2104_ds3000_config
	.comm	_ts2020_attach,4,2              ## @ts2020_attach
	.comm	_dw2104_ts2020_config,4,2       ## @dw2104_ts2020_config
L_.str.3:                               ## @.str.3
	.asciz	"Attached DS3000!"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dw2104_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw2104_frontend_attach
_dw2104_frontend_attach:                ; @dw2104_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _demod_probe@GOTPAGE
Lloh1:
	ldr	x20, [x20, _demod_probe@GOTPAGEOFF]
	ldrb	w8, [x20]
	tbz	w8, #2, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _stv0900_attach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stv0900_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
	str	xzr, [sp]
Lloh5:
	adrp	x1, _dw2104a_stv0900_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _dw2104a_stv0900_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
Lloh7:
	adrp	x8, _stb6100_attach@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stb6100_attach@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh10:
	adrp	x2, _dw2104a_stb6100_config@GOTPAGE
Lloh11:
	ldr	x2, [x2, _dw2104a_stb6100_config@GOTPAGEOFF]
	bl	_dvb_attach
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _stb6100_set_freq@GOTPAGE
Lloh13:
	ldr	x9, [x9, _stb6100_set_freq@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _stb6100_get_freq@GOTPAGE
Lloh16:
	ldr	x10, [x10, _stb6100_get_freq@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #16]
Lloh18:
	adrp	x9, _stb6100_set_bandw@GOTPAGE
Lloh19:
	ldr	x9, [x9, _stb6100_set_bandw@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _stb6100_get_bandw@GOTPAGE
Lloh22:
	ldr	x10, [x10, _stb6100_get_bandw@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
Lloh24:
	adrp	x9, _dw210x_set_voltage@GOTPAGE
Lloh25:
	ldr	x9, [x9, _dw210x_set_voltage@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	str	x9, [x8]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_4:
	ldrb	w8, [x20]
	tbz	w8, #1, LBB0_8
; %bb.5:
Lloh29:
	adrp	x8, _stv0900_attach@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stv0900_attach@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
	str	xzr, [sp]
Lloh32:
	adrp	x1, _dw2104_stv0900_config@GOTPAGE
Lloh33:
	ldr	x1, [x1, _dw2104_stv0900_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x0
Lloh34:
	adrp	x8, _stv6110_attach@GOTPAGE
Lloh35:
	ldr	x8, [x8, _stv6110_attach@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh37:
	adrp	x2, _dw2104_stv6110_config@GOTPAGE
Lloh38:
	ldr	x2, [x2, _dw2104_stv6110_config@GOTPAGEOFF]
	bl	_dvb_attach
	cbz	x0, LBB0_8
; %bb.7:
Lloh39:
	adrp	x8, _dw210x_set_voltage@GOTPAGE
Lloh40:
	ldr	x8, [x8, _dw210x_set_voltage@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	x8, [x9]
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_8:
	ldrb	w8, [x20]
	tbz	w8, #0, LBB0_11
; %bb.9:
Lloh44:
	adrp	x8, _cx24116_attach@GOTPAGE
Lloh45:
	ldr	x8, [x8, _cx24116_attach@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh47:
	adrp	x1, _dw2104_config@GOTPAGE
Lloh48:
	ldr	x1, [x1, _dw2104_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_11
; %bb.10:
Lloh49:
	adrp	x8, _dw210x_set_voltage@GOTPAGE
Lloh50:
	ldr	x8, [x8, _dw210x_set_voltage@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	str	x8, [x0]
Lloh52:
	adrp	x0, l_.str.2@PAGE
Lloh53:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh54:
	adrp	x8, _ds3000_attach@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ds3000_attach@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	x2, [x19, #8]
Lloh57:
	adrp	x1, _dw2104_ds3000_config@GOTPAGE
Lloh58:
	ldr	x1, [x1, _dw2104_ds3000_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_15
; %bb.12:
	mov	x1, x0
Lloh59:
	adrp	x8, _ts2020_attach@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ts2020_attach@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh62:
	adrp	x2, _dw2104_ts2020_config@GOTPAGE
Lloh63:
	ldr	x2, [x2, _dw2104_ts2020_config@GOTPAGEOFF]
	bl	_dvb_attach
Lloh64:
	adrp	x8, _dw210x_set_voltage@GOTPAGE
Lloh65:
	ldr	x8, [x8, _dw210x_set_voltage@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9]
	str	x8, [x9]
Lloh67:
	adrp	x0, l_.str.3@PAGE
Lloh68:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_13:
	bl	_info
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
Lloh69:
	adrp	x8, _EIO@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_demod_probe,4,2                ; @demod_probe
	.comm	_stv0900_attach,4,2             ; @stv0900_attach
	.comm	_dw2104a_stv0900_config,24,3    ; @dw2104a_stv0900_config
	.comm	_stb6100_attach,4,2             ; @stb6100_attach
	.comm	_dw2104a_stb6100_config,4,2     ; @dw2104a_stb6100_config
	.comm	_stb6100_set_freq,4,2           ; @stb6100_set_freq
	.comm	_stb6100_get_freq,4,2           ; @stb6100_get_freq
	.comm	_stb6100_set_bandw,4,2          ; @stb6100_set_bandw
	.comm	_stb6100_get_bandw,4,2          ; @stb6100_get_bandw
	.comm	_dw210x_set_voltage,8,3         ; @dw210x_set_voltage
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attached STV0900+STB6100!"

	.comm	_dw2104_stv0900_config,24,3     ; @dw2104_stv0900_config
	.comm	_stv6110_attach,4,2             ; @stv6110_attach
	.comm	_dw2104_stv6110_config,4,2      ; @dw2104_stv6110_config
l_.str.1:                               ; @.str.1
	.asciz	"Attached STV0900+STV6110A!"

	.comm	_cx24116_attach,4,2             ; @cx24116_attach
	.comm	_dw2104_config,4,2              ; @dw2104_config
l_.str.2:                               ; @.str.2
	.asciz	"Attached cx24116!"

	.comm	_ds3000_attach,4,2              ; @ds3000_attach
	.comm	_dw2104_ds3000_config,4,2       ; @dw2104_ds3000_config
	.comm	_ts2020_attach,4,2              ; @ts2020_attach
	.comm	_dw2104_ts2020_config,4,2       ; @dw2104_ts2020_config
l_.str.3:                               ; @.str.3
	.asciz	"Attached DS3000!"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dw2104_frontend_attach
.subsections_via_symbols
