	.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
	leaq	24(%rdi), %rsi
	movq	_pluto2_fe_config@GOTPCREL(%rip), %rdi
	callq	_tda10046_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_lg_tdtpe001p_tuner_set_params@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	leaq	8(%rbx), %rdi
	movq	%rax, %rsi
	callq	_dvb_register_frontend
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_6
## %bb.3:
	movq	(%rbx), %rdi
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	callq	*%rcx
LBB0_5:
	movl	%r14d, %eax
	jmp	LBB0_6
LBB0_1:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pluto2_fe_config,4,2           ## @pluto2_fe_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not attach frontend\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_lg_tdtpe001p_tuner_set_params,4,2 ## @lg_tdtpe001p_tuner_set_params
	.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x1, x0, #24
Lloh0:
	adrp	x0, _pluto2_fe_config@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pluto2_fe_config@GOTPAGEOFF]
	bl	_tda10046_attach
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh2:
	adrp	x8, _lg_tdtpe001p_tuner_set_params@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lg_tdtpe001p_tuner_set_params@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	add	x0, x19, #8
	bl	_dvb_register_frontend
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	ldr	x0, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	blr	x8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pluto2_fe_config,4,2           ; @pluto2_fe_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not attach frontend\n"

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