	.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, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	cmpl	$4101, %eax                     ## imm = 0x1005
	je	LBB0_13
## %bb.1:
	cmpl	$4100, %eax                     ## imm = 0x1004
	je	LBB0_9
## %bb.2:
	cmpl	$4099, %eax                     ## imm = 0x1003
	jne	LBB0_18
## %bb.3:
	movq	_stv0299_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %r14
	movq	_alps_stv0299_config@GOTPCREL(%rip), %r15
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_philips_tsa5059_tuner_set_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	28(%rbx), %ecx
	movq	_TTUSB_REV_2_2@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.5:
	movq	_alps_bsbe1_inittab@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
	movq	_lnbp21_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_dvb_attach
	jmp	LBB0_18
LBB0_13:
	movq	_cx22700_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %r14
	movq	_alps_tdmb7_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_alps_tdmb7_tuner_set_params@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_9:
	movq	_ves1820_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	24(%rbx), %r14
	movq	%rbx, %rdi
	callq	_read_pwm
	movq	_alps_tdbe2_config@GOTPCREL(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_alps_tdbe2_tuner_set_params@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_6:
	movq	_tda8083_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ttusb_novas_grundig_29504_491_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	_ttusb_novas_grundig_29504_491_tuner_set_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_8:
	movq	_ttusb_set_voltage@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	jmp	LBB0_18
LBB0_15:
	movq	_tda10046_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_philips_tdm1316l_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	_philips_tdm1316l_tuner_init@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_philips_tdm1316l_tuner_set_params@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_11:
	movq	_stv0297_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dvbc_philips_tdm1316l_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movq	_dvbc_philips_tdm1316l_tuner_set_params@GOTPCREL(%rip), %rcx
LBB0_17:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_18:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.19:
	leaq	8(%rbx), %rdi
	callq	_dvb_register_frontend
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	(%rbx), %rdi
	callq	_dvb_frontend_detach
	movq	$0, (%rbx)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printk                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stv0299_attach,4,2             ## @stv0299_attach
	.comm	_alps_stv0299_config,4,2        ## @alps_stv0299_config
	.comm	_philips_tsa5059_tuner_set_params,4,2 ## @philips_tsa5059_tuner_set_params
	.comm	_TTUSB_REV_2_2,4,2              ## @TTUSB_REV_2_2
	.comm	_alps_bsbe1_inittab,4,2         ## @alps_bsbe1_inittab
	.comm	_lnbp21_attach,4,2              ## @lnbp21_attach
	.comm	_ttusb_set_voltage,8,3          ## @ttusb_set_voltage
	.comm	_tda8083_attach,4,2             ## @tda8083_attach
	.comm	_ttusb_novas_grundig_29504_491_config,4,2 ## @ttusb_novas_grundig_29504_491_config
	.comm	_ttusb_novas_grundig_29504_491_tuner_set_params,4,2 ## @ttusb_novas_grundig_29504_491_tuner_set_params
	.comm	_ves1820_attach,4,2             ## @ves1820_attach
	.comm	_alps_tdbe2_config,4,2          ## @alps_tdbe2_config
	.comm	_alps_tdbe2_tuner_set_params,4,2 ## @alps_tdbe2_tuner_set_params
	.comm	_stv0297_attach,4,2             ## @stv0297_attach
	.comm	_dvbc_philips_tdm1316l_config,4,2 ## @dvbc_philips_tdm1316l_config
	.comm	_dvbc_philips_tdm1316l_tuner_set_params,4,2 ## @dvbc_philips_tdm1316l_tuner_set_params
	.comm	_cx22700_attach,4,2             ## @cx22700_attach
	.comm	_alps_tdmb7_config,4,2          ## @alps_tdmb7_config
	.comm	_alps_tdmb7_tuner_set_params,4,2 ## @alps_tdmb7_tuner_set_params
	.comm	_tda10046_attach,4,2            ## @tda10046_attach
	.comm	_philips_tdm1316l_config,4,2    ## @philips_tdm1316l_config
	.comm	_philips_tdm1316l_tuner_init,4,2 ## @philips_tdm1316l_tuner_init
	.comm	_philips_tdm1316l_tuner_set_params,4,2 ## @philips_tdm1316l_tuner_set_params
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb-ttusb-budget: A frontend driver was not found for device [%04x:%04x]\n"

L_.str.1:                               ## @.str.1
	.asciz	"dvb-ttusb-budget: Frontend registration failed!\n"

	.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, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	mov	w8, #4101
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.1:
	mov	w8, #4100
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.2:
	mov	w8, #4099
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.3:
Lloh0:
	adrp	x8, _stv0299_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stv0299_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #24
Lloh3:
	adrp	x21, _alps_stv0299_config@GOTPAGE
Lloh4:
	ldr	x21, [x21, _alps_stv0299_config@GOTPAGEOFF]
	stp	x21, x20, [sp]
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _philips_tsa5059_tuner_set_params@GOTPAGE
Lloh6:
	ldr	x8, [x8, _philips_tsa5059_tuner_set_params@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w8, [x19, #28]
Lloh8:
	adrp	x9, _TTUSB_REV_2_2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TTUSB_REV_2_2@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.5:
Lloh11:
	adrp	x8, _alps_bsbe1_inittab@GOTPAGE
Lloh12:
	ldr	x8, [x8, _alps_bsbe1_inittab@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh14:
	adrp	x8, _lnbp21_attach@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lnbp21_attach@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp, #16]
	stp	x0, x20, [sp]
	mov	x0, x8
	bl	_dvb_attach
	b	LBB0_18
LBB0_6:
Lloh17:
	adrp	x8, _cx22700_attach@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cx22700_attach@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x20, x19, #24
Lloh20:
	adrp	x8, _alps_tdmb7_config@GOTPAGE
Lloh21:
	ldr	x8, [x8, _alps_tdmb7_config@GOTPAGEOFF]
	stp	x8, x20, [sp]
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.7:
Lloh22:
	adrp	x8, _alps_tdmb7_tuner_set_params@GOTPAGE
Lloh23:
	ldr	x8, [x8, _alps_tdmb7_tuner_set_params@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
Lloh24:
	adrp	x8, _ves1820_attach@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ves1820_attach@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	add	x21, x19, #24
	mov	x0, x19
	bl	_read_pwm
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #16]
Lloh27:
	adrp	x8, _alps_tdbe2_config@GOTPAGE
Lloh28:
	ldr	x8, [x8, _alps_tdbe2_config@GOTPAGEOFF]
	stp	x8, x21, [sp]
	mov	x0, x20
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_15
; %bb.9:
Lloh29:
	adrp	x8, _alps_tdbe2_tuner_set_params@GOTPAGE
Lloh30:
	ldr	x8, [x8, _alps_tdbe2_tuner_set_params@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
Lloh31:
	adrp	x8, _tda8083_attach@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tda8083_attach@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x8, _ttusb_novas_grundig_29504_491_config@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ttusb_novas_grundig_29504_491_config@GOTPAGEOFF]
	stp	x8, x20, [sp]
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.11:
Lloh36:
	adrp	x8, _ttusb_novas_grundig_29504_491_tuner_set_params@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ttusb_novas_grundig_29504_491_tuner_set_params@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_12:
Lloh39:
	adrp	x8, _ttusb_set_voltage@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ttusb_set_voltage@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	b	LBB0_18
LBB0_13:
Lloh42:
	adrp	x8, _tda10046_attach@GOTPAGE
Lloh43:
	ldr	x8, [x8, _tda10046_attach@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _philips_tdm1316l_config@GOTPAGE
Lloh46:
	ldr	x8, [x8, _philips_tdm1316l_config@GOTPAGEOFF]
	stp	x8, x20, [sp]
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.14:
Lloh47:
	adrp	x8, _philips_tdm1316l_tuner_init@GOTPAGE
Lloh48:
	ldr	x8, [x8, _philips_tdm1316l_tuner_init@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _philips_tdm1316l_tuner_set_params@GOTPAGE
Lloh51:
	ldr	x9, [x9, _philips_tdm1316l_tuner_set_params@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	b	LBB0_18
LBB0_15:
Lloh53:
	adrp	x8, _stv0297_attach@GOTPAGE
Lloh54:
	ldr	x8, [x8, _stv0297_attach@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
Lloh56:
	adrp	x8, _dvbc_philips_tdm1316l_config@GOTPAGE
Lloh57:
	ldr	x8, [x8, _dvbc_philips_tdm1316l_config@GOTPAGEOFF]
	stp	x8, x21, [sp]
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.16:
Lloh58:
	adrp	x8, _dvbc_philips_tdm1316l_tuner_set_params@GOTPAGE
Lloh59:
	ldr	x8, [x8, _dvbc_philips_tdm1316l_tuner_set_params@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_18:
	ldr	x1, [x19]
	cbz	x1, LBB0_21
; %bb.19:
	add	x0, x19, #8
	bl	_dvb_register_frontend
	cbz	x0, LBB0_22
; %bb.20:
Lloh60:
	adrp	x0, l_.str.1@PAGE
Lloh61:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	x0, [x19]
	bl	_dvb_frontend_detach
	str	xzr, [x19]
	b	LBB0_22
LBB0_21:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh62:
	adrp	x0, l_.str@PAGE
Lloh63:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_22:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_stv0299_attach,4,2             ; @stv0299_attach
	.comm	_alps_stv0299_config,4,2        ; @alps_stv0299_config
	.comm	_philips_tsa5059_tuner_set_params,4,2 ; @philips_tsa5059_tuner_set_params
	.comm	_TTUSB_REV_2_2,4,2              ; @TTUSB_REV_2_2
	.comm	_alps_bsbe1_inittab,4,2         ; @alps_bsbe1_inittab
	.comm	_lnbp21_attach,4,2              ; @lnbp21_attach
	.comm	_ttusb_set_voltage,8,3          ; @ttusb_set_voltage
	.comm	_tda8083_attach,4,2             ; @tda8083_attach
	.comm	_ttusb_novas_grundig_29504_491_config,4,2 ; @ttusb_novas_grundig_29504_491_config
	.comm	_ttusb_novas_grundig_29504_491_tuner_set_params,4,2 ; @ttusb_novas_grundig_29504_491_tuner_set_params
	.comm	_ves1820_attach,4,2             ; @ves1820_attach
	.comm	_alps_tdbe2_config,4,2          ; @alps_tdbe2_config
	.comm	_alps_tdbe2_tuner_set_params,4,2 ; @alps_tdbe2_tuner_set_params
	.comm	_stv0297_attach,4,2             ; @stv0297_attach
	.comm	_dvbc_philips_tdm1316l_config,4,2 ; @dvbc_philips_tdm1316l_config
	.comm	_dvbc_philips_tdm1316l_tuner_set_params,4,2 ; @dvbc_philips_tdm1316l_tuner_set_params
	.comm	_cx22700_attach,4,2             ; @cx22700_attach
	.comm	_alps_tdmb7_config,4,2          ; @alps_tdmb7_config
	.comm	_alps_tdmb7_tuner_set_params,4,2 ; @alps_tdmb7_tuner_set_params
	.comm	_tda10046_attach,4,2            ; @tda10046_attach
	.comm	_philips_tdm1316l_config,4,2    ; @philips_tdm1316l_config
	.comm	_philips_tdm1316l_tuner_init,4,2 ; @philips_tdm1316l_tuner_init
	.comm	_philips_tdm1316l_tuner_set_params,4,2 ; @philips_tdm1316l_tuner_set_params
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb-ttusb-budget: A frontend driver was not found for device [%04x:%04x]\n"

l_.str.1:                               ; @.str.1
	.asciz	"dvb-ttusb-budget: Frontend registration failed!\n"

	.no_dead_strip	_frontend_init
.subsections_via_symbols
