	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_channel
_release_channel:                       ## @release_channel
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	64(%rdi), %r15
	movq	16(%r15), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r14d
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 56(%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_transfer
LBB0_3:
	leaq	48(%rbx), %rdi
	callq	_tasklet_kill
	movq	_NGENE_IO_TSIN@GOTPCREL(%rip), %rax
	movq	_NGENE_IO_TSOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_8
## %bb.4:
	leaq	8(%rbx), %r14
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_dvb_unregister_frontend
	movq	40(%rbx), %rdi
	callq	_dvb_frontend_detach
	movq	$0, 40(%rbx)
LBB0_6:
	movq	%r14, %rdi
	callq	*16(%rbx)
	leaq	32(%rbx), %rsi
	movq	%r14, %rdi
	callq	*8(%rbx)
	leaq	28(%rbx), %rsi
	movq	%r14, %rdi
	callq	*8(%rbx)
	leaq	24(%rbx), %rdi
	callq	_dvb_dmxdev_release
	movq	%r14, %rdi
	callq	_dvb_dmx_release
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	movq	_one_adapter@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	shlq	$2, %rdi
	addq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dvb_unregister_adapter         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NGENE_IO_TSIN,4,2              ## @NGENE_IO_TSIN
	.comm	_NGENE_IO_TSOUT,4,2             ## @NGENE_IO_TSOUT
	.comm	_one_adapter,4,2                ## @one_adapter
	.no_dead_strip	_release_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_channel
_release_channel:                       ; @release_channel
	.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
	mov	x19, x0
	ldr	x21, [x0, #64]
	ldp	x9, x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x10, [x0]
	ldr	w20, [x8, x10, lsl #2]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_set_transfer
LBB0_3:
	add	x0, x19, #48
	bl	_tasklet_kill
Lloh0:
	adrp	x8, _NGENE_IO_TSIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NGENE_IO_TSIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NGENE_IO_TSOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NGENE_IO_TSOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_8
; %bb.4:
	add	x20, x19, #8
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_dvb_unregister_frontend
	ldr	x0, [x19, #40]
	bl	_dvb_frontend_detach
	str	xzr, [x19, #40]
LBB0_6:
	ldr	x8, [x19, #16]
	mov	x0, x20
	blr	x8
	ldr	x8, [x19, #8]
	add	x1, x19, #32
	mov	x0, x20
	blr	x8
	ldr	x8, [x19, #8]
	add	x1, x19, #28
	mov	x0, x20
	blr	x8
	add	x0, x19, #24
	bl	_dvb_dmxdev_release
	mov	x0, x20
	bl	_dvb_dmx_release
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.7:
Lloh6:
	adrp	x9, _one_adapter@GOTPAGE
Lloh7:
	ldr	x9, [x9, _one_adapter@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbz	w9, LBB0_9
LBB0_8:
	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
LBB0_9:
	ldr	x9, [x21]
	add	x0, x9, x8, lsl #2
	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
	b	_dvb_unregister_adapter
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NGENE_IO_TSIN,4,2              ; @NGENE_IO_TSIN
	.comm	_NGENE_IO_TSOUT,4,2             ; @NGENE_IO_TSOUT
	.comm	_one_adapter,4,2                ; @one_adapter
	.no_dead_strip	_release_channel
.subsections_via_symbols
