	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl330_request_channel
_pl330_request_channel:                 ## @pl330_request_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	%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
	movq	_DYING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.1:
	movl	16(%rdi), %r14d
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.2:
	shlq	$5, %r14
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	__alloc_event
	movq	%rax, 8(%r12,%rbx)
	testq	%rax, %rax
	jns	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rbx
	incl	%r13d
	cmpq	%rbx, %r14
	movq	%r15, %rdi
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	cmpl	$0, (%r12,%rbx)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	__manager_ns
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	__chan_ns
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	$0, (%r12,%rbx)
	movl	$1, 16(%r12,%rbx)
	movq	24(%r12,%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	$-1, 20(%r12,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DYING,8,3                      ## @DYING
	.no_dead_strip	_pl330_request_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl330_request_channel
_pl330_request_channel:                 ; @pl330_request_channel
	.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]
Lloh0:
	adrp	x9, _DYING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DYING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w20, #0
	mov	x22, #0
	lsl	x23, x8, #5
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	__alloc_event
	mov	x8, x0
	add	x0, x24, x22
	str	x8, [x0, #8]
	tbz	x8, #63, LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #32
	add	w20, w20, #1
	cmp	x23, x22
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #8]
	add	x21, x24, x22
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	__manager_ns
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	__chan_ns
	cbnz	x0, LBB0_3
	b	LBB0_4
LBB0_8:
	mov	x0, #0
LBB0_9:
	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
LBB0_10:
	str	wzr, [x0]
	mov	w8, #1
	str	w8, [x0, #16]
	ldr	x8, [x0, #24]
	stp	xzr, xzr, [x8]
	mov	w8, #-1
	str	w8, [x0, #20]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DYING,8,3                      ; @DYING
	.no_dead_strip	_pl330_request_channel
.subsections_via_symbols
