	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_dvb_init
_flexcop_dvb_init:                      ## @flexcop_dvb_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	128(%rdi), %ecx
	movl	132(%rdi), %edx
	movq	_adapter_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dvb_register_adapter
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, (%rbx)
	movq	_DMX_TS_FILTERING@GOTPCREL(%rip), %rax
	movq	_DMX_SECTION_FILTERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DMX_MEMORY_BASED_FILTERING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	8(%rbx), %r14
	movl	%ecx, 8(%rbx)
	movq	%rbx, 80(%rbx)
	movq	_FC_MAX_FEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	%eax, 72(%rbx)
	movq	_flexcop_dvb_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_flexcop_dvb_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	%r14, %rdi
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_DMX_FRONTEND_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movl	48(%rbx), %eax
	leaq	88(%rbx), %r12
	movl	%eax, 104(%rbx)
	movq	%r14, 96(%rbx)
	movq	$0, 88(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	leaq	112(%rbx), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*16(%rbx)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	116(%rbx), %rsi
	movl	%eax, 116(%rbx)
	movq	%r14, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	*16(%rbx)
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*24(%rbx)
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	leaq	124(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_dvb_net_init
	testl	%eax, %eax
	js	LBB0_13
## %bb.20:
	movq	_FC_STATE_DVB_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 120(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_19
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_18
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_16
LBB0_9:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	movq	%r14, %rdi
	callq	*40(%rbx)
LBB0_14:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*32(%rbx)
LBB0_15:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*32(%rbx)
LBB0_16:
	movq	%r12, %rdi
	callq	_dvb_dmxdev_release
LBB0_17:
	movq	%r14, %rdi
	callq	_dvb_dmx_release
LBB0_18:
	movq	%rbx, %rdi
	callq	_dvb_unregister_adapter
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FlexCop Digital TV device"

	.comm	_adapter_nr,4,2                 ## @adapter_nr
L_.str.1:                               ## @.str.1
	.asciz	"error registering DVB adapter"

	.comm	_DMX_TS_FILTERING,4,2           ## @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ## @DMX_SECTION_FILTERING
	.comm	_DMX_MEMORY_BASED_FILTERING,4,2 ## @DMX_MEMORY_BASED_FILTERING
	.comm	_FC_MAX_FEED,4,2                ## @FC_MAX_FEED
	.comm	_flexcop_dvb_start_feed,4,2     ## @flexcop_dvb_start_feed
	.comm	_flexcop_dvb_stop_feed,4,2      ## @flexcop_dvb_stop_feed
L_.str.2:                               ## @.str.2
	.asciz	"dvb_dmx failed: error %d"

	.comm	_DMX_FRONTEND_0,4,2             ## @DMX_FRONTEND_0
L_.str.3:                               ## @.str.3
	.asciz	"dvb_dmxdev_init failed: error %d"

L_.str.4:                               ## @.str.4
	.asciz	"adding hw_frontend to dmx failed: error %d"

	.comm	_DMX_MEMORY_FE,4,2              ## @DMX_MEMORY_FE
L_.str.5:                               ## @.str.5
	.asciz	"adding mem_frontend to dmx failed: error %d"

L_.str.6:                               ## @.str.6
	.asciz	"connect frontend failed: error %d"

L_.str.7:                               ## @.str.7
	.asciz	"dvb_net_init failed: error %d"

	.comm	_FC_STATE_DVB_INIT,4,2          ## @FC_STATE_DVB_INIT
	.no_dead_strip	_flexcop_dvb_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_dvb_init
_flexcop_dvb_init:                      ; @flexcop_dvb_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	w3, w2, [x0, #128]
Lloh0:
	adrp	x8, _adapter_nr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adapter_nr@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_8
; %bb.1:
	str	x19, [x19]
Lloh5:
	adrp	x8, _DMX_TS_FILTERING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMX_TS_FILTERING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DMX_SECTION_FILTERING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMX_SECTION_FILTERING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _DMX_MEMORY_BASED_FILTERING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DMX_MEMORY_BASED_FILTERING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	x20, x19
	str	w8, [x20, #8]!
	str	x19, [x19, #80]
Lloh14:
	adrp	x8, _FC_MAX_FEED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FC_MAX_FEED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	str	w8, [x19, #72]
Lloh17:
	adrp	x8, _flexcop_dvb_start_feed@GOTPAGE
Lloh18:
	ldr	x8, [x8, _flexcop_dvb_start_feed@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _flexcop_dvb_stop_feed@GOTPAGE
Lloh21:
	ldr	x9, [x9, _flexcop_dvb_stop_feed@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
	str	xzr, [x19, #56]
	mov	x0, x20
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh23:
	adrp	x8, _DMX_FRONTEND_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMX_FRONTEND_0@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #112]!
	ldr	w8, [x19, #48]
	mov	x21, x19
	str	xzr, [x21, #88]!
	str	w8, [x19, #104]
	str	x20, [x19, #96]
	mov	x0, x21
	mov	x1, x19
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x8, [x19, #16]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	tbnz	w0, #31, LBB0_11
; %bb.4:
Lloh26:
	adrp	x8, _DMX_MEMORY_FE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	mov	x24, x19
	str	w8, [x24, #116]!
	ldur	x8, [x24, #-100]
	mov	x0, x20
	mov	x1, x24
	blr	x8
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	x8, [x19, #24]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	tbnz	w0, #31, LBB0_13
; %bb.6:
	add	x1, x19, #124
	mov	x0, x19
	mov	x2, x20
	bl	_dvb_net_init
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	w23, #0
Lloh29:
	adrp	x8, _FC_STATE_DVB_INIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FC_STATE_DVB_INIT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19, #120]
	orr	w8, w9, w8
	str	w8, [x19, #120]
	b	LBB0_20
LBB0_8:
	mov	x23, x0
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	b	LBB0_20
LBB0_9:
	mov	x23, x0
	str	x23, [sp]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
	b	LBB0_19
LBB0_10:
	mov	x23, x0
	str	x23, [sp]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_18
LBB0_11:
	mov	x23, x0
	str	x23, [sp]
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_17
LBB0_12:
	mov	x23, x0
	str	x23, [sp]
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_16
LBB0_13:
	mov	x23, x0
	str	x23, [sp]
Lloh42:
	adrp	x0, l_.str.6@PAGE
Lloh43:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_err
	b	LBB0_15
LBB0_14:
	mov	x23, x0
	str	x23, [sp]
Lloh44:
	adrp	x0, l_.str.7@PAGE
Lloh45:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_err
	ldr	x8, [x19, #40]
	mov	x0, x20
	blr	x8
LBB0_15:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	ldr	x8, [x19, #32]
	mov	x0, x20
	mov	x1, x24
	blr	x8
LBB0_16:
	ldr	x8, [x19, #32]
	mov	x0, x20
	mov	x1, x22
	blr	x8
LBB0_17:
	mov	x0, x21
	bl	_dvb_dmxdev_release
LBB0_18:
	mov	x0, x20
	bl	_dvb_dmx_release
LBB0_19:
	mov	x0, x19
	bl	_dvb_unregister_adapter
LBB0_20:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FlexCop Digital TV device"

	.comm	_adapter_nr,4,2                 ; @adapter_nr
l_.str.1:                               ; @.str.1
	.asciz	"error registering DVB adapter"

	.comm	_DMX_TS_FILTERING,4,2           ; @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ; @DMX_SECTION_FILTERING
	.comm	_DMX_MEMORY_BASED_FILTERING,4,2 ; @DMX_MEMORY_BASED_FILTERING
	.comm	_FC_MAX_FEED,4,2                ; @FC_MAX_FEED
	.comm	_flexcop_dvb_start_feed,4,2     ; @flexcop_dvb_start_feed
	.comm	_flexcop_dvb_stop_feed,4,2      ; @flexcop_dvb_stop_feed
l_.str.2:                               ; @.str.2
	.asciz	"dvb_dmx failed: error %d"

	.comm	_DMX_FRONTEND_0,4,2             ; @DMX_FRONTEND_0
l_.str.3:                               ; @.str.3
	.asciz	"dvb_dmxdev_init failed: error %d"

l_.str.4:                               ; @.str.4
	.asciz	"adding hw_frontend to dmx failed: error %d"

	.comm	_DMX_MEMORY_FE,4,2              ; @DMX_MEMORY_FE
l_.str.5:                               ; @.str.5
	.asciz	"adding mem_frontend to dmx failed: error %d"

l_.str.6:                               ; @.str.6
	.asciz	"connect frontend failed: error %d"

l_.str.7:                               ; @.str.7
	.asciz	"dvb_net_init failed: error %d"

	.comm	_FC_STATE_DVB_INIT,4,2          ; @FC_STATE_DVB_INIT
	.no_dead_strip	_flexcop_dvb_init
.subsections_via_symbols
