	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frontend_init
_frontend_init:                         ## @frontend_init
	.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, %r15
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.2:
	movq	_GPIO15@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_dm1105_gpio_enable
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_dm1105_gpio_clear
	movl	$100, %edi
	callq	_msleep
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_dm1105_gpio_set
	movl	$200, %edi
	callq	_msleep
	movq	_stv0299_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%r15), %r14
	jmp	LBB0_3
LBB0_7:
	movq	_cx24116_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %r14
	movq	_serit_sp2633_config@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	movq	_dm1105_set_voltage@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_13
LBB0_10:
	movq	_stv0299_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%r15), %r14
LBB0_3:
	movq	_sharp_z0194a_config@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_dm1105_set_voltage@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movq	_dvb_pll_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_DVB_PLL_OPERA1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rax, %rsi
	movl	$96, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dvb_attach
	jmp	LBB0_13
LBB0_5:
	movq	_stv0288_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_earda_config@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	_dm1105_set_voltage@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movq	_stb6000_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	movl	$97, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dvb_attach
	jmp	LBB0_13
LBB0_8:
	movq	_ds3000_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dvbworld_ds3000_config@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	_ts2020_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	_dvbworld_ts2020_config@GOTPCREL(%rip), %edx
	movq	%rax, %rsi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	_dm1105_set_voltage@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_13
LBB0_11:
	movq	_si21xx_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_serit_config@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_12
LBB0_13:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.15:
	leaq	16(%r15), %rdi
	callq	_dvb_register_frontend
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_19
## %bb.16:
	movq	8(%r15), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	callq	*%rax
LBB0_18:
	movq	$0, 8(%r15)
	movl	%ebx, %eax
	jmp	LBB0_19
LBB0_14:
	movq	24(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO15,4,2                     ## @GPIO15
	.comm	_stv0299_attach,4,2             ## @stv0299_attach
	.comm	_sharp_z0194a_config,4,2        ## @sharp_z0194a_config
	.comm	_dm1105_set_voltage,8,3         ## @dm1105_set_voltage
	.comm	_dvb_pll_attach,4,2             ## @dvb_pll_attach
	.comm	_DVB_PLL_OPERA1,4,2             ## @DVB_PLL_OPERA1
	.comm	_stv0288_attach,4,2             ## @stv0288_attach
	.comm	_earda_config,4,2               ## @earda_config
	.comm	_stb6000_attach,4,2             ## @stb6000_attach
	.comm	_si21xx_attach,4,2              ## @si21xx_attach
	.comm	_serit_config,4,2               ## @serit_config
	.comm	_cx24116_attach,4,2             ## @cx24116_attach
	.comm	_serit_sp2633_config,4,2        ## @serit_sp2633_config
	.comm	_ds3000_attach,4,2              ## @ds3000_attach
	.comm	_dvbworld_ds3000_config,4,2     ## @dvbworld_ds3000_config
	.comm	_ts2020_attach,4,2              ## @ts2020_attach
	.comm	_dvbworld_ts2020_config,4,2     ## @dvbworld_ts2020_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not attach frontend\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frontend_init
_frontend_init:                         ; @frontend_init
	.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
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, _GPIO15@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GPIO15@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_dm1105_gpio_enable
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dm1105_gpio_clear
	mov	w0, #100
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dm1105_gpio_set
	mov	w0, #200
	bl	_msleep
Lloh2:
	adrp	x8, _stv0299_attach@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stv0299_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x20, x19, #36
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _cx24116_attach@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cx24116_attach@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x20, x19, #32
Lloh8:
	adrp	x1, _serit_sp2633_config@GOTPAGE
Lloh9:
	ldr	x1, [x1, _serit_sp2633_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
LBB0_4:
Lloh10:
	adrp	x8, _dm1105_set_voltage@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dm1105_set_voltage@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	b	LBB0_13
LBB0_5:
Lloh13:
	adrp	x8, _stv0299_attach@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stv0299_attach@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x20, x19, #32
LBB0_6:
Lloh16:
	adrp	x1, _sharp_z0194a_config@GOTPAGE
Lloh17:
	ldr	x1, [x1, _sharp_z0194a_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x0
Lloh18:
	adrp	x8, _dm1105_set_voltage@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dm1105_set_voltage@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x0, #8]
Lloh21:
	adrp	x8, _dvb_pll_attach@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dvb_pll_attach@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _DVB_PLL_OPERA1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DVB_PLL_OPERA1@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	x20, x8, [sp]
	mov	w2, #96
	bl	_dvb_attach
	b	LBB0_13
LBB0_8:
Lloh27:
	adrp	x8, _stv0288_attach@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stv0288_attach@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, _earda_config@GOTPAGE
Lloh31:
	ldr	x1, [x1, _earda_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x1, x0
Lloh32:
	adrp	x8, _dm1105_set_voltage@GOTPAGE
Lloh33:
	ldr	x8, [x8, _dm1105_set_voltage@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x0, #8]
Lloh35:
	adrp	x8, _stb6000_attach@GOTPAGE
Lloh36:
	ldr	x8, [x8, _stb6000_attach@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	str	x20, [sp]
	mov	w2, #97
	bl	_dvb_attach
	b	LBB0_13
LBB0_10:
Lloh38:
	adrp	x8, _ds3000_attach@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ds3000_attach@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, _dvbworld_ds3000_config@GOTPAGE
Lloh42:
	ldr	x1, [x1, _dvbworld_ds3000_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.11:
	mov	x1, x0
Lloh43:
	adrp	x8, _ts2020_attach@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ts2020_attach@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh46:
	adrp	x2, _dvbworld_ts2020_config@GOTPAGE
Lloh47:
	ldr	x2, [x2, _dvbworld_ts2020_config@GOTPAGEOFF]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dvb_attach
Lloh48:
	adrp	x8, _dm1105_set_voltage@GOTPAGE
Lloh49:
	ldr	x8, [x8, _dm1105_set_voltage@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
	b	LBB0_13
LBB0_12:
Lloh51:
	adrp	x8, _si21xx_attach@GOTPAGE
Lloh52:
	ldr	x8, [x8, _si21xx_attach@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x1, _serit_config@GOTPAGE
Lloh55:
	ldr	x1, [x1, _serit_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19, #8]
	cbnz	x0, LBB0_4
LBB0_13:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_16
; %bb.14:
	add	x0, x19, #16
	bl	_dvb_register_frontend
	tbnz	w0, #31, LBB0_17
; %bb.15:
	mov	w20, #0
	b	LBB0_20
LBB0_16:
	ldr	x0, [x19, #24]
Lloh56:
	adrp	x1, l_.str@PAGE
Lloh57:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh58:
	adrp	x8, _ENODEV@GOTPAGE
Lloh59:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_20
LBB0_17:
	mov	x20, x0
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.18:
	blr	x8
LBB0_19:
	str	xzr, [x19, #8]
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO15,4,2                     ; @GPIO15
	.comm	_stv0299_attach,4,2             ; @stv0299_attach
	.comm	_sharp_z0194a_config,4,2        ; @sharp_z0194a_config
	.comm	_dm1105_set_voltage,8,3         ; @dm1105_set_voltage
	.comm	_dvb_pll_attach,4,2             ; @dvb_pll_attach
	.comm	_DVB_PLL_OPERA1,4,2             ; @DVB_PLL_OPERA1
	.comm	_stv0288_attach,4,2             ; @stv0288_attach
	.comm	_earda_config,4,2               ; @earda_config
	.comm	_stb6000_attach,4,2             ; @stb6000_attach
	.comm	_si21xx_attach,4,2              ; @si21xx_attach
	.comm	_serit_config,4,2               ; @serit_config
	.comm	_cx24116_attach,4,2             ; @cx24116_attach
	.comm	_serit_sp2633_config,4,2        ; @serit_sp2633_config
	.comm	_ds3000_attach,4,2              ; @ds3000_attach
	.comm	_dvbworld_ds3000_config,4,2     ; @dvbworld_ds3000_config
	.comm	_ts2020_attach,4,2              ; @ts2020_attach
	.comm	_dvbworld_ts2020_config,4,2     ; @dvbworld_ts2020_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not attach frontend\n"

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