	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_frontend_init          ## -- Begin function flexcop_frontend_init
	.p2align	4, 0x90
_flexcop_frontend_init:                 ## @flexcop_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_flexcop_frontends@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	-8(%rcx,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx,%rbx), %ecx
	movl	%ecx, 20(%r15)
	movq	24(%r15), %rsi
	movq	%r15, %rdi
	callq	*%rax
	movq	8(%r15), %rdi
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_dvb_frontend_detach
	movq	$0, 8(%r15)
	jmp	LBB0_6
LBB0_7:
	movq	_FC_UNK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rdi), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	leaq	16(%r15), %rdi
	movq	8(%r15), %rsi
	callq	_dvb_register_frontend
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_err
	movq	8(%r15), %rdi
	callq	_dvb_frontend_detach
	movq	$0, 8(%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_11:
	movq	_FC_STATE_FE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_flexcop_frontends,8,3          ## @flexcop_frontends
	.comm	_FC_UNK,4,2                     ## @FC_UNK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no frontend driver found for this B2C2/FlexCop adapter"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"found '%s' ."

L_.str.2:                               ## @.str.2
	.asciz	"frontend registration failed!"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FC_STATE_FE_INIT,4,2           ## @FC_STATE_FE_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_frontend_init          ; -- Begin function flexcop_frontend_init
	.p2align	2
_flexcop_frontend_init:                 ; @flexcop_frontend_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _flexcop_frontends@GOTPAGE
Lloh1:
	ldr	x20, [x20, _flexcop_frontends@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x8, [x9, x21]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x21
	ldr	w9, [x9, #8]
	str	w9, [x19, #20]
	ldr	x1, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbnz	x8, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dvb_frontend_detach
	str	xzr, [x19, #8]
	b	LBB0_2
LBB0_7:
Lloh2:
	adrp	x8, _FC_UNK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FC_UNK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w1, [x0]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
	add	x0, x19, #16
	ldr	x1, [x19, #8]
	bl	_dvb_register_frontend
	cbz	x0, LBB0_12
; %bb.11:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
	ldr	x0, [x19, #8]
	bl	_dvb_frontend_detach
	str	xzr, [x19, #8]
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
Lloh15:
	adrp	x8, _FC_STATE_FE_INIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FC_STATE_FE_INIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_flexcop_frontends,8,3          ; @flexcop_frontends
	.comm	_FC_UNK,4,2                     ; @FC_UNK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no frontend driver found for this B2C2/FlexCop adapter"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"found '%s' ."

l_.str.2:                               ; @.str.2
	.asciz	"frontend registration failed!"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FC_STATE_FE_INIT,4,2           ; @FC_STATE_FE_INIT
.subsections_via_symbols
