	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt3_cleanup_adapter
_pt3_cleanup_adapter:                   ## @pt3_cleanup_adapter
	.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	(%rdi), %rax
	movslq	%esi, %r13
	movq	(%rax,%r13,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpq	$0, 40(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_pt3_stop_streaming
LBB0_3:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	*8(%rbx)
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	movq	$0, 8(%rdi)
	cmpq	$0, (%rdi)
	je	LBB0_6
## %bb.5:
	callq	_dvb_unregister_frontend
LBB0_6:
	movl	24(%rbx), %edi
	callq	_dvb_module_release
	movl	20(%rbx), %edi
	callq	_dvb_module_release
LBB0_7:
	movq	%rbx, %rdi
	callq	_pt3_free_dmabuf
	leaq	16(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r12, %rdi
	callq	_dvb_dmx_release
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	_one_adapter@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_dvb_unregister_adapter
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	movq	(%r14), %rax
	movq	$0, (%rax,%r13,8)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_one_adapter,4,2                ## @one_adapter
	.no_dead_strip	_pt3_cleanup_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt3_cleanup_adapter
_pt3_cleanup_adapter:                   ; @pt3_cleanup_adapter
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, w1, sxtw #3]
	cbz	x20, LBB0_11
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_pt3_stop_streaming
LBB0_3:
	mov	x22, x20
	ldr	x8, [x22, #8]!
	mov	x0, x22
	blr	x8
	ldr	x0, [x22, #24]
	cbz	x0, LBB0_7
; %bb.4:
	str	xzr, [x0, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_dvb_unregister_frontend
LBB0_6:
	ldr	w0, [x20, #24]
	bl	_dvb_module_release
	ldr	w0, [x20, #20]
	bl	_dvb_module_release
LBB0_7:
	sxtw	x23, w21
	mov	x0, x20
	bl	_pt3_free_dmabuf
	add	x0, x20, #16
	bl	_dvb_dmxdev_release
	mov	x0, x22
	bl	_dvb_dmx_release
	cbz	w21, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _one_adapter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _one_adapter@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_dvb_unregister_adapter
LBB0_10:
	mov	x0, x20
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, x23, lsl #3]
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_one_adapter,4,2                ; @one_adapter
	.no_dead_strip	_pt3_cleanup_adapter
.subsections_via_symbols
