	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vb2_dvb_register_frontend
_vb2_dvb_register_frontend:             ## @vb2_dvb_register_frontend
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %rsi
	callq	_dvb_register_frontend
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	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, 16(%rbx)
	movq	%rbx, 56(%rbx)
	movabsq	$1099511628032, %rax            ## imm = 0x10000000100
	movq	%rax, 8(%rbx)
	movq	_vb2_dvb_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_vb2_dvb_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%r14, %rdi
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	16(%rbx), %r13
	leaq	64(%rbx), %rdi
	movl	$256, 64(%rbx)                  ## imm = 0x100
	movq	%r13, 80(%rbx)
	movq	$0, 72(%rbx)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_DMX_FRONTEND_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	88(%rbx), %rsi
	movl	%eax, 88(%rbx)
	movq	%r13, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	*24(%rbx)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_DMX_MEMORY_FE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	92(%rbx), %rsi
	movl	%eax, 92(%rbx)
	movq	%r13, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	*24(%rbx)
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*32(%rbx)
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	leaq	100(%rbx), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_dvb_net_init
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_20
## %bb.13:
	movl	%eax, %r12d
	movl	96(%rbx), %esi
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
	movl	%r12d, %r15d
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %r15d
	movl	96(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
	jmp	LBB0_19
LBB0_3:
	movl	%eax, %r15d
	movl	96(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
	jmp	LBB0_18
LBB0_5:
	movl	%eax, %r15d
	movl	96(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %r15d
	movl	96(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_9:
	movl	%eax, %r15d
	movl	96(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %r15d
	movl	96(%rbx), %esi
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
LBB0_14:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	*40(%rbx)
LBB0_15:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*40(%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_frontend
LBB0_19:
	movq	(%rbx), %rdi
	callq	_dvb_frontend_detach
	movq	$0, (%rbx)
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %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	"%s: dvb_register_frontend failed (errno = %d)\n"

	.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	_vb2_dvb_start_feed,4,2         ## @vb2_dvb_start_feed
	.comm	_vb2_dvb_stop_feed,4,2          ## @vb2_dvb_stop_feed
L_.str.1:                               ## @.str.1
	.asciz	"%s: dvb_dmx_init failed (errno = %d)\n"

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

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

	.comm	_DMX_MEMORY_FE,4,2              ## @DMX_MEMORY_FE
L_.str.4:                               ## @.str.4
	.asciz	"%s: add_frontend failed (DMX_MEMORY_FE, errno = %d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: connect_frontend failed (errno = %d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s: dvb_net_init failed (errno = %d)\n"

	.no_dead_strip	_vb2_dvb_register_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vb2_dvb_register_frontend
_vb2_dvb_register_frontend:             ; @vb2_dvb_register_frontend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x24, x0
	ldr	x1, [x1]
	bl	_dvb_register_frontend
	tbnz	w0, #31, LBB0_8
; %bb.1:
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]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DMX_MEMORY_BASED_FILTERING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMX_MEMORY_BASED_FILTERING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	movi.2s	v0, #1, lsl #8
	mov	x20, x19
	str	d0, [x20, #8]!
	mov	x23, x19
	str	w8, [x23, #16]!
	str	x19, [x19, #56]
Lloh9:
	adrp	x8, _vb2_dvb_start_feed@GOTPAGE
Lloh10:
	ldr	x8, [x8, _vb2_dvb_start_feed@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _vb2_dvb_stop_feed@GOTPAGE
Lloh13:
	ldr	x9, [x9, _vb2_dvb_stop_feed@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	mov	x0, x20
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	w8, #256
	mov	x22, x19
	str	w8, [x22, #64]!
	stp	xzr, x23, [x22, #8]
	mov	x0, x22
	mov	x1, x24
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh15:
	adrp	x8, _DMX_FRONTEND_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMX_FRONTEND_0@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x25, x19
	str	w8, [x25, #88]!
	ldur	x8, [x25, #-64]
	mov	x0, x23
	mov	x1, x25
	blr	x8
	tbnz	w0, #31, LBB0_11
; %bb.4:
Lloh18:
	adrp	x8, _DMX_MEMORY_FE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DMX_MEMORY_FE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	x26, x19
	str	w8, [x26, #92]!
	ldur	x8, [x26, #-68]
	mov	x0, x23
	mov	x1, x26
	blr	x8
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	x8, [x19, #32]
	mov	x0, x23
	mov	x1, x25
	blr	x8
	tbnz	w0, #31, LBB0_13
; %bb.6:
	add	x1, x19, #100
	mov	x0, x24
	mov	x2, x23
	bl	_dvb_net_init
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	w21, #0
	b	LBB0_21
LBB0_8:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
	b	LBB0_20
LBB0_9:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
	b	LBB0_19
LBB0_10:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
	b	LBB0_18
LBB0_11:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
	b	LBB0_17
LBB0_12:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
	b	LBB0_16
LBB0_13:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	x21, x0
	ldr	w1, [x19, #96]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_15:
	mov	x2, x21
	bl	_pr_warn
	ldr	x8, [x19, #40]
	mov	x0, x23
	mov	x1, x26
	blr	x8
LBB0_16:
	ldr	x8, [x19, #40]
	mov	x0, x23
	mov	x1, x25
	blr	x8
LBB0_17:
	mov	x0, x22
	bl	_dvb_dmxdev_release
LBB0_18:
	mov	x0, x20
	bl	_dvb_dmx_release
LBB0_19:
	ldr	x0, [x19]
	bl	_dvb_unregister_frontend
LBB0_20:
	ldr	x0, [x19]
	bl	_dvb_frontend_detach
	str	xzr, [x19]
LBB0_21:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: dvb_register_frontend failed (errno = %d)\n"

	.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	_vb2_dvb_start_feed,4,2         ; @vb2_dvb_start_feed
	.comm	_vb2_dvb_stop_feed,4,2          ; @vb2_dvb_stop_feed
l_.str.1:                               ; @.str.1
	.asciz	"%s: dvb_dmx_init failed (errno = %d)\n"

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

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

	.comm	_DMX_MEMORY_FE,4,2              ; @DMX_MEMORY_FE
l_.str.4:                               ; @.str.4
	.asciz	"%s: add_frontend failed (DMX_MEMORY_FE, errno = %d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: connect_frontend failed (errno = %d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s: dvb_net_init failed (errno = %d)\n"

	.no_dead_strip	_vb2_dvb_register_frontend
.subsections_via_symbols
