	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_dvb
_register_dvb:                          ## @register_dvb
	.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	%r8, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_DMX_TS_FILTERING@GOTPCREL(%rip), %rax
	movq	_DMX_SECTION_FILTERING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movq	_DMX_MEMORY_BASED_FILTERING@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%rdi)
	movq	%rdi, 72(%rdi)
	movq	_C8SECTPFE_MAXCHANNEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rdi)
	movq	%rax, 64(%rdi)
	movq	%rdx, 56(%rdi)
	movq	%rcx, 48(%rdi)
	movq	$0, 40(%rdi)
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	32(%rbx), %rax
	leaq	80(%rbx), %r14
	movq	%rax, 96(%rbx)
	movq	%rbx, 88(%rbx)
	movq	$0, 80(%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_DMX_FRONTEND_0@GOTPCREL(%rip), %rax
	movq	120(%rbx), %rcx
	addq	(%rax), %rcx
	leaq	104(%rbx), %r13
	movq	%rcx, 104(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*8(%rbx)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	112(%rbx), %rsi
	movq	%rax, 112(%rbx)
	movq	%rbx, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	*8(%rbx)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*16(%rbx)
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_13
## %bb.9:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	movl	%eax, %r12d
	callq	_dev_err
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	*24(%rbx)
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_5:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_10:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*24(%rbx)
LBB0_11:
	movq	%r14, %rdi
	callq	_dvb_dmxdev_release
LBB0_12:
	movq	%rbx, %rdi
	callq	_dvb_dmx_release
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_C8SECTPFE_MAXCHANNEL,8,3       ## @C8SECTPFE_MAXCHANNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dvb_dmx_init failed (errno = %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"dvb_dmxdev_init failed (errno = %d)\n"

	.comm	_DMX_FRONTEND_0,8,3             ## @DMX_FRONTEND_0
L_.str.2:                               ## @.str.2
	.asciz	"add_frontend failed (errno = %d)\n"

	.comm	_DMX_MEMORY_FE,8,3              ## @DMX_MEMORY_FE
L_.str.3:                               ## @.str.3
	.asciz	"add_frontend failed (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"connect_frontend (%d)\n"

	.no_dead_strip	_register_dvb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_dvb
_register_dvb:                          ; @register_dvb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x4
	mov	x23, x1
	mov	x19, x0
	str	x2, [x0, #56]
Lloh0:
	adrp	x8, _DMX_TS_FILTERING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMX_TS_FILTERING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DMX_SECTION_FILTERING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMX_SECTION_FILTERING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _DMX_MEMORY_BASED_FILTERING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DMX_MEMORY_BASED_FILTERING@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
	str	w8, [x0]
Lloh9:
	adrp	x8, _C8SECTPFE_MAXCHANNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _C8SECTPFE_MAXCHANNEL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x0, [x0, #64]
	stp	xzr, x3, [x0, #40]
	str	x8, [x0, #32]
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [x19, #32]
	mov	x21, x19
	str	xzr, [x21, #80]!
	stp	x19, x8, [x19, #88]
	mov	x0, x21
	mov	x1, x23
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _DMX_FRONTEND_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMX_FRONTEND_0@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x19, #120]
	add	x8, x9, x8
	mov	x23, x19
	str	x8, [x23, #104]!
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh15:
	adrp	x8, _DMX_MEMORY_FE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	mov	x24, x19
	str	x8, [x24, #112]!
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x24
	blr	x8
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	w20, #0
	b	LBB0_14
LBB0_6:
	mov	x20, x0
	ldr	w0, [x22]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_14
LBB0_7:
	mov	x20, x0
	ldr	w0, [x22]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_13
LBB0_8:
	mov	x20, x0
	ldr	w0, [x22]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_12
LBB0_9:
	mov	x20, x0
	ldr	w0, [x22]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_11
LBB0_10:
	mov	x20, x0
	ldr	w0, [x22]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x24
	blr	x8
LBB0_11:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x23
	blr	x8
LBB0_12:
	mov	x0, x21
	bl	_dvb_dmxdev_release
LBB0_13:
	mov	x0, x19
	bl	_dvb_dmx_release
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.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	_C8SECTPFE_MAXCHANNEL,8,3       ; @C8SECTPFE_MAXCHANNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb_dmx_init failed (errno = %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"dvb_dmxdev_init failed (errno = %d)\n"

	.comm	_DMX_FRONTEND_0,8,3             ; @DMX_FRONTEND_0
l_.str.2:                               ; @.str.2
	.asciz	"add_frontend failed (errno = %d)\n"

	.comm	_DMX_MEMORY_FE,8,3              ; @DMX_MEMORY_FE
l_.str.3:                               ; @.str.3
	.asciz	"add_frontend failed (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"connect_frontend (%d)\n"

	.no_dead_strip	_register_dvb
.subsections_via_symbols
