	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r8
	movq	%rdi, %rbx
	movq	96(%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	%rbx, 8(%rbx)
	movq	96(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%rbx), %esi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_deb_info
	jmp	LBB0_11
LBB0_4:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_info
LBB0_6:
	movq	_DMX_TS_FILTERING@GOTPCREL(%rip), %rax
	movq	_DMX_SECTION_FILTERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	16(%rbx), %r15
	movl	%ecx, 16(%rbx)
	movq	%rbx, 48(%rbx)
	movl	88(%rbx), %eax
	movl	%eax, 20(%rbx)
	movl	%eax, 40(%rbx)
	movq	_dvb_usb_start_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_dvb_usb_stop_feed@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	%r15, %rdi
	callq	_dvb_dmx_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	20(%rbx), %eax
	leaq	64(%rbx), %rdi
	movl	%eax, 80(%rbx)
	movq	%r15, 72(%rbx)
	movq	$0, 64(%rbx)
	movq	%rbx, %rsi
	callq	_dvb_dmxdev_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.12:
	leaq	60(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_dvb_net_init
	movq	_DVB_USB_ADAP_STATE_DVB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	movq	%r15, %rdi
	callq	_dvb_dmx_release
LBB0_10:
	movq	%rbx, %rdi
	callq	_dvb_unregister_adapter
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"MAC address: %pM"

L_.str.2:                               ## @.str.2
	.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.3:                               ## @.str.3
	.asciz	"dvb_dmx_init failed: error %d"

L_.str.4:                               ## @.str.4
	.asciz	"dvb_dmxdev_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, #64
	.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
	mov	x4, x1
	mov	x19, x0
	ldr	x8, [x0, #96]
	ldr	x9, [x8, #24]
	ldr	w1, [x9]
	ldr	w2, [x8, #16]
	ldr	x3, [x8, #8]
	bl	_dvb_register_adapter
	tbnz	w0, #31, LBB0_4
; %bb.1:
	str	x19, [x19, #8]
	ldr	x0, [x19, #96]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w1, [x19]
	blr	x8
	cbz	x0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
	b	LBB0_6
LBB0_4:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_deb_info
	b	LBB0_12
LBB0_5:
	ldr	w1, [x19]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
LBB0_6:
Lloh6:
	adrp	x8, _DMX_TS_FILTERING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMX_TS_FILTERING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _DMX_SECTION_FILTERING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMX_SECTION_FILTERING@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x20, x19
	str	w8, [x20, #16]!
	str	x19, [x19, #48]
	ldr	w8, [x19, #88]
	str	w8, [x19, #20]
	str	w8, [x19, #40]
Lloh12:
	adrp	x8, _dvb_usb_start_feed@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dvb_usb_start_feed@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _dvb_usb_stop_feed@GOTPAGE
Lloh16:
	ldr	x9, [x9, _dvb_usb_stop_feed@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_dvb_dmx_init
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w8, [x19, #20]
	str	w8, [x19, #80]
	str	x20, [x19, #72]
	mov	x0, x19
	str	xzr, [x0, #64]!
	mov	x1, x19
	bl	_dvb_dmxdev_init
	tbnz	w0, #31, LBB0_10
; %bb.8:
	add	x1, x19, #60
	mov	x0, x19
	mov	x2, x20
	bl	_dvb_net_init
	mov	w21, #0
Lloh18:
	adrp	x8, _DVB_USB_ADAP_STATE_DVB@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVB_USB_ADAP_STATE_DVB@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
	b	LBB0_12
LBB0_9:
	mov	x21, x0
	str	x21, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_err
	b	LBB0_11
LBB0_10:
	mov	x21, x0
	str	x21, [sp]
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_err
	mov	x0, x20
	bl	_dvb_dmx_release
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_11:
	mov	x0, x19
	bl	_dvb_unregister_adapter
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.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	"MAC address: %pM"

l_.str.2:                               ; @.str.2
	.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.3:                               ; @.str.3
	.asciz	"dvb_dmx_init failed: error %d"

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

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