	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_adapter_dvb_init       ## -- Begin function dvb_usb_adapter_dvb_init
	.p2align	4, 0x90
_dvb_usb_adapter_dvb_init:              ## @dvb_usb_adapter_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	%rsi, %r8
	movq	%rdi, %r14
	movq	112(%rdi), %rax
	movq	24(%rax), %rcx
	movl	(%rcx), %esi
	movl	16(%rax), %edx
	movq	8(%rax), %rcx
	callq	_dvb_register_adapter
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, 8(%r14)
	movq	%r14, %rdi
	callq	_dvb_usb_media_device_init
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	112(%r14), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	(%r14), %esi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_deb_info
	jmp	LBB0_36
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_deb_info
	jmp	LBB0_35
LBB0_6:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_info
LBB0_8:
	movq	_DMX_TS_FILTERING@GOTPCREL(%rip), %rax
	movq	_DMX_SECTION_FILTERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	16(%r14), %r15
	movl	%ecx, 32(%r14)
	movq	%r14, 56(%r14)
	movq	$0, 16(%r14)
	movl	104(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.10:
	movq	96(%r14), %rdx
	leaq	-1(%rsi), %rcx
	movl	%esi, %eax
	andl	$3, %eax
	cmpq	$3, %rcx
	jae	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
LBB0_22:
	testq	%rax, %rax
	je	LBB0_27
## %bb.23:
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%rcx, (%r15)
	movq	%rcx, %rbx
	jmp	LBB0_26
LBB0_9:
	xorl	%ebx, %ebx
LBB0_27:
	movq	%rbx, 24(%r14)
	movq	_dvb_usb_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_dvb_usb_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	$0, 40(%r14)
	movq	%r15, %rdi
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_28
## %bb.29:
	leaq	32(%r14), %r13
	movq	16(%r14), %rax
	leaq	64(%r14), %r12
	movq	%rax, 64(%r14)
	movq	%r13, 80(%r14)
	movq	$0, 72(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_30
## %bb.31:
	leaq	92(%r14), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_dvb_net_init
	testl	%eax, %eax
	js	LBB0_32
## %bb.37:
	movq	_DVB_USB_ADAP_STATE_DVB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 88(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_36
LBB0_28:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_34
LBB0_12:
	andl	$-4, %esi
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_22
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, (%r15)
	movq	%rcx, %rbx
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rdx,%rdi,8), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, (%r15)
	movq	%rcx, %rbx
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	16(%rdx,%rdi,8), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, (%r15)
	movq	%rcx, %rbx
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%rdx,%rdi,8), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, (%r15)
	movq	%rcx, %rbx
	jmp	LBB0_21
LBB0_30:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_33
LBB0_32:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	movq	%r12, %rdi
	callq	_dvb_dmxdev_release
LBB0_33:
	movq	%r15, %rdi
	callq	_dvb_dmx_release
LBB0_34:
	movq	%r14, %rdi
	callq	_dvb_usb_media_device_unregister
LBB0_35:
	movq	%r14, %rdi
	callq	_dvb_unregister_adapter
LBB0_36:
	movl	%ebx, %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	"dvb_register_adapter failed: error %d"

L_.str.1:                               ## @.str.1
	.asciz	"dvb_usb_media_device_init failed: error %d"

L_.str.2:                               ## @.str.2
	.asciz	"MAC address: %pM"

L_.str.3:                               ## @.str.3
	.asciz	"MAC address reading failed."

	.comm	_DMX_TS_FILTERING,4,2           ## @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ## @DMX_SECTION_FILTERING
	.comm	_dvb_usb_start_feed,4,2         ## @dvb_usb_start_feed
	.comm	_dvb_usb_stop_feed,4,2          ## @dvb_usb_stop_feed
L_.str.4:                               ## @.str.4
	.asciz	"dvb_dmx_init failed: error %d"

L_.str.5:                               ## @.str.5
	.asciz	"dvb_dmxdev_init failed: error %d"

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

	.comm	_DVB_USB_ADAP_STATE_DVB,4,2     ## @DVB_USB_ADAP_STATE_DVB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_adapter_dvb_init       ; -- Begin function dvb_usb_adapter_dvb_init
	.p2align	2
_dvb_usb_adapter_dvb_init:              ; @dvb_usb_adapter_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	x4, x1
	mov	x19, x0
	ldr	x8, [x0, #112]
	ldr	x9, [x8, #24]
	ldr	w1, [x9]
	ldr	w2, [x8, #16]
	ldr	x3, [x8, #8]
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_5
; %bb.1:
	str	x19, [x19, #8]
	mov	x0, x19
	bl	_dvb_usb_media_device_init
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x0, [x19, #112]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w1, [x19]
	blr	x8
	cbz	x0, LBB0_7
; %bb.4:
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
	b	LBB0_8
LBB0_5:
	mov	x22, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_deb_info
	b	LBB0_24
LBB0_6:
	mov	x22, x0
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_deb_info
	b	LBB0_23
LBB0_7:
	ldr	w1, [x19]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
LBB0_8:
Lloh8:
	adrp	x8, _DMX_TS_FILTERING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMX_TS_FILTERING@GOTPAGEOFF]
Lloh10:
	adrp	x9, _DMX_SECTION_FILTERING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DMX_SECTION_FILTERING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x20, x19
	str	xzr, [x20, #16]!
	mov	x21, x19
	str	w8, [x21, #32]!
	str	x19, [x19, #56]
	ldr	w8, [x19, #104]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x9, #0
	ldr	x10, [x19, #96]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x9, x11
	b.ge	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x11, [x20]
	mov	x9, x11
	b	LBB0_10
LBB0_13:
	mov	x9, #0
LBB0_14:
	str	x9, [x19, #24]
Lloh14:
	adrp	x8, _dvb_usb_start_feed@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dvb_usb_start_feed@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _dvb_usb_stop_feed@GOTPAGE
Lloh18:
	ldr	x9, [x9, _dvb_usb_stop_feed@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	str	xzr, [x19, #40]
	mov	x0, x20
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_18
; %bb.15:
	ldr	x8, [x19, #16]
	mov	x22, x19
	str	x8, [x22, #64]!
	stp	xzr, x21, [x19, #72]
	mov	x0, x22
	mov	x1, x19
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_19
; %bb.16:
	add	x1, x19, #92
	mov	x0, x19
	mov	x2, x21
	bl	_dvb_net_init
	tbnz	w0, #31, LBB0_20
; %bb.17:
	mov	w22, #0
Lloh20:
	adrp	x8, _DVB_USB_ADAP_STATE_DVB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DVB_USB_ADAP_STATE_DVB@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #88]
	orr	w8, w9, w8
	str	w8, [x19, #88]
	b	LBB0_24
LBB0_18:
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
	b	LBB0_22
LBB0_19:
	mov	x23, x0
	str	x23, [sp]
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_err
	mov	x22, x23
	b	LBB0_21
LBB0_20:
	mov	x21, x0
	str	x21, [sp]
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_err
	mov	x0, x22
	bl	_dvb_dmxdev_release
	mov	x22, x21
LBB0_21:
	mov	x0, x20
	bl	_dvb_dmx_release
LBB0_22:
	mov	x0, x19
	bl	_dvb_usb_media_device_unregister
LBB0_23:
	mov	x0, x19
	bl	_dvb_unregister_adapter
LBB0_24:
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dvb_register_adapter failed: error %d"

l_.str.1:                               ; @.str.1
	.asciz	"dvb_usb_media_device_init failed: error %d"

l_.str.2:                               ; @.str.2
	.asciz	"MAC address: %pM"

l_.str.3:                               ; @.str.3
	.asciz	"MAC address reading failed."

	.comm	_DMX_TS_FILTERING,4,2           ; @DMX_TS_FILTERING
	.comm	_DMX_SECTION_FILTERING,4,2      ; @DMX_SECTION_FILTERING
	.comm	_dvb_usb_start_feed,4,2         ; @dvb_usb_start_feed
	.comm	_dvb_usb_stop_feed,4,2          ; @dvb_usb_stop_feed
l_.str.4:                               ; @.str.4
	.asciz	"dvb_dmx_init failed: error %d"

l_.str.5:                               ; @.str.5
	.asciz	"dvb_dmxdev_init failed: error %d"

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

	.comm	_DVB_USB_ADAP_STATE_DVB,4,2     ; @DVB_USB_ADAP_STATE_DVB
.subsections_via_symbols
