	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_adapter_dvb_exit       ## -- Begin function dvb_usb_adapter_dvb_exit
	.p2align	4, 0x90
_dvb_usb_adapter_dvb_exit:              ## @dvb_usb_adapter_dvb_exit
	.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	_DVB_USB_ADAP_STATE_DVB@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	leaq	20(%rbx), %rdi
	callq	_dvb_net_release
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	*8(%rbx)
	leaq	16(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r14, %rdi
	callq	_dvb_dmx_release
	movq	%rbx, %rdi
	callq	_dvb_usb_media_device_unregister
	leaq	4(%rbx), %rdi
	callq	_dvb_unregister_adapter
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVB_USB_ADAP_STATE_DVB,4,2     ## @DVB_USB_ADAP_STATE_DVB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unregistering DVB part\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_adapter_dvb_exit       ; -- Begin function dvb_usb_adapter_dvb_exit
	.p2align	2
_dvb_usb_adapter_dvb_exit:              ; @dvb_usb_adapter_dvb_exit
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _DVB_USB_ADAP_STATE_DVB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DVB_USB_ADAP_STATE_DVB@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	add	x0, x19, #20
	bl	_dvb_net_release
	mov	x20, x19
	ldr	x8, [x20, #8]!
	mov	x0, x20
	blr	x8
	add	x0, x19, #16
	bl	_dvb_dmxdev_release
	mov	x0, x20
	bl	_dvb_dmx_release
	mov	x0, x19
	bl	_dvb_usb_media_device_unregister
	add	x0, x19, #4
	bl	_dvb_unregister_adapter
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DVB_USB_ADAP_STATE_DVB,4,2     ; @DVB_USB_ADAP_STATE_DVB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unregistering DVB part\n"

.subsections_via_symbols
