	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl330_release_channel
_pl330_release_channel:                 ## @pl330_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	__stop
	movq	16(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	$1, %edx
	subq	%rcx, %rdx
	movl	(%rax,%rdx,4), %edi
	movq	_PL330_ERR_ABORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_dma_pl330_rqcb
	movq	16(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	(%r14), %esi
	callq	_dma_pl330_rqcb
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	__free_event
	movl	$1, (%rbx)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PL330_ERR_ABORT,4,2            ## @PL330_ERR_ABORT
	.no_dead_strip	_pl330_release_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl330_release_channel
_pl330_release_channel:                 ; @pl330_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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	__stop
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	mov	w20, #1
	sub	x9, x20, x9
	ldr	w0, [x8, x9, lsl #2]
Lloh0:
	adrp	x21, _PL330_ERR_ABORT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PL330_ERR_ABORT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_dma_pl330_rqcb
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #4]
	ldr	w0, [x8, x9, lsl #2]
	ldr	w1, [x21]
	bl	_dma_pl330_rqcb
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	__free_event
	str	w20, [x19]
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PL330_ERR_ABORT,4,2            ; @PL330_ERR_ABORT
	.no_dead_strip	_pl330_release_channel
.subsections_via_symbols
