	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$4115, %eax                     ## imm = 0x1013
	jne	LBB0_2
LBB0_5:
	movq	_ves1x93_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %r14
	movq	_alps_bsrv2_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_alps_bsrv2_tuner_set_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	_budget_patch_set_tone@GOTPCREL(%rip), %rcx
	movq	_budget_patch_diseqc_send_burst@GOTPCREL(%rip), %rdx
	movq	_budget_patch_diseqc_send_master_cmd@GOTPCREL(%rip), %rsi
	jmp	LBB0_12
LBB0_2:
	movq	(%rbx), %rax
LBB0_3:
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	12(%rax), %esi
	movl	8(%rax), %edx
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_printk                         ## TAILCALL
LBB0_7:
	movq	_stv0299_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_alps_bsru6_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_alps_bsru6_tuner_set_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	movq	%r14, 32(%rax)
	jmp	LBB0_11
LBB0_9:
	movq	_tda8083_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_grundig_29504_451_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	_grundig_29504_451_tuner_set_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
LBB0_11:
	movq	_budget_set_tone@GOTPCREL(%rip), %rcx
	movq	_budget_diseqc_send_burst@GOTPCREL(%rip), %rdx
	movq	_budget_diseqc_send_master_cmd@GOTPCREL(%rip), %rsi
LBB0_12:
	movq	(%rsi), %rsi
	movq	%rsi, 16(%rax)
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax)
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_13:
	leaq	8(%rbx), %rdi
	movq	%rax, %rsi
	callq	_dvb_register_frontend
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	movq	(%rbx), %rdi
	callq	_dvb_frontend_detach
	movq	$0, (%rbx)
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ves1x93_attach,4,2             ## @ves1x93_attach
	.comm	_alps_bsrv2_config,4,2          ## @alps_bsrv2_config
	.comm	_alps_bsrv2_tuner_set_params,4,2 ## @alps_bsrv2_tuner_set_params
	.comm	_budget_patch_diseqc_send_master_cmd,8,3 ## @budget_patch_diseqc_send_master_cmd
	.comm	_budget_patch_diseqc_send_burst,8,3 ## @budget_patch_diseqc_send_burst
	.comm	_budget_patch_set_tone,8,3      ## @budget_patch_set_tone
	.comm	_stv0299_attach,4,2             ## @stv0299_attach
	.comm	_alps_bsru6_config,4,2          ## @alps_bsru6_config
	.comm	_alps_bsru6_tuner_set_params,4,2 ## @alps_bsru6_tuner_set_params
	.comm	_budget_diseqc_send_master_cmd,8,3 ## @budget_diseqc_send_master_cmd
	.comm	_budget_diseqc_send_burst,8,3   ## @budget_diseqc_send_burst
	.comm	_budget_set_tone,8,3            ## @budget_set_tone
	.comm	_tda8083_attach,4,2             ## @tda8083_attach
	.comm	_grundig_29504_451_config,4,2   ## @grundig_29504_451_config
	.comm	_grundig_29504_451_tuner_set_params,4,2 ## @grundig_29504_451_tuner_set_params
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb-ttpci: A frontend driver was not found for device [%04x:%04x] subsystem [%04x:%04x]\n"

L_.str.1:                               ## @.str.1
	.asciz	"budget-av: 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, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #0
	mov	w9, #4115
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ves1x93_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ves1x93_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #24
Lloh3:
	adrp	x1, _alps_bsrv2_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _alps_bsrv2_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
Lloh5:
	adrp	x8, _alps_bsrv2_tuner_set_params@GOTPAGE
Lloh6:
	ldr	x8, [x8, _alps_bsrv2_tuner_set_params@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh8:
	adrp	x8, _budget_patch_set_tone@GOTPAGE
Lloh9:
	ldr	x8, [x8, _budget_patch_set_tone@GOTPAGEOFF]
Lloh10:
	adrp	x9, _budget_patch_diseqc_send_burst@GOTPAGE
Lloh11:
	ldr	x9, [x9, _budget_patch_diseqc_send_burst@GOTPAGEOFF]
Lloh12:
	adrp	x10, _budget_patch_diseqc_send_master_cmd@GOTPAGE
Lloh13:
	ldr	x10, [x10, _budget_patch_diseqc_send_master_cmd@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	ldr	x1, [x19]
LBB0_4:
	cbnz	x1, LBB0_12
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldp	w10, w9, [x8, #8]
	ldp	w8, w11, [x8]
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	b	LBB0_14
LBB0_6:
Lloh16:
	adrp	x8, _stv0299_attach@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stv0299_attach@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, _alps_bsru6_config@GOTPAGE
Lloh20:
	ldr	x1, [x1, _alps_bsru6_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x0
Lloh21:
	adrp	x8, _alps_bsru6_tuner_set_params@GOTPAGE
Lloh22:
	ldr	x8, [x8, _alps_bsru6_tuner_set_params@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	str	x20, [x0, #32]
	b	LBB0_10
LBB0_8:
Lloh24:
	adrp	x8, _tda8083_attach@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tda8083_attach@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, _grundig_29504_451_config@GOTPAGE
Lloh28:
	ldr	x1, [x1, _grundig_29504_451_config@GOTPAGEOFF]
	mov	x2, x20
	bl	_dvb_attach
	mov	x1, x0
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.9:
Lloh29:
	adrp	x8, _grundig_29504_451_tuner_set_params@GOTPAGE
Lloh30:
	ldr	x8, [x8, _grundig_29504_451_tuner_set_params@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x1, #24]
LBB0_10:
Lloh32:
	adrp	x8, _budget_set_tone@GOTPAGE
Lloh33:
	ldr	x8, [x8, _budget_set_tone@GOTPAGEOFF]
Lloh34:
	adrp	x9, _budget_diseqc_send_burst@GOTPAGE
Lloh35:
	ldr	x9, [x9, _budget_diseqc_send_burst@GOTPAGEOFF]
Lloh36:
	adrp	x10, _budget_diseqc_send_master_cmd@GOTPAGE
Lloh37:
	ldr	x10, [x10, _budget_diseqc_send_master_cmd@GOTPAGEOFF]
LBB0_11:
	ldr	x10, [x10]
	ldr	x9, [x9]
	ldr	x8, [x8]
	stp	x9, x10, [x1, #8]
	str	x8, [x1]
LBB0_12:
	add	x0, x19, #8
	bl	_dvb_register_frontend
	cbz	x0, LBB0_14
; %bb.13:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	x0, [x19]
	bl	_dvb_frontend_detach
	str	xzr, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ves1x93_attach,4,2             ; @ves1x93_attach
	.comm	_alps_bsrv2_config,4,2          ; @alps_bsrv2_config
	.comm	_alps_bsrv2_tuner_set_params,4,2 ; @alps_bsrv2_tuner_set_params
	.comm	_budget_patch_diseqc_send_master_cmd,8,3 ; @budget_patch_diseqc_send_master_cmd
	.comm	_budget_patch_diseqc_send_burst,8,3 ; @budget_patch_diseqc_send_burst
	.comm	_budget_patch_set_tone,8,3      ; @budget_patch_set_tone
	.comm	_stv0299_attach,4,2             ; @stv0299_attach
	.comm	_alps_bsru6_config,4,2          ; @alps_bsru6_config
	.comm	_alps_bsru6_tuner_set_params,4,2 ; @alps_bsru6_tuner_set_params
	.comm	_budget_diseqc_send_master_cmd,8,3 ; @budget_diseqc_send_master_cmd
	.comm	_budget_diseqc_send_burst,8,3   ; @budget_diseqc_send_burst
	.comm	_budget_set_tone,8,3            ; @budget_set_tone
	.comm	_tda8083_attach,4,2             ; @tda8083_attach
	.comm	_grundig_29504_451_config,4,2   ; @grundig_29504_451_config
	.comm	_grundig_29504_451_tuner_set_params,4,2 ; @grundig_29504_451_tuner_set_params
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb-ttpci: A frontend driver was not found for device [%04x:%04x] subsystem [%04x:%04x]\n"

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

	.no_dead_strip	_frontend_init
.subsections_via_symbols
