	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_pcl
_alloc_pcl:                             ## @alloc_pcl
	.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
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_LOCALRAM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$1024, %edx                     ## imm = 0x400
	jl	LBB0_20
## %bb.1:
	shrq	$7, %rdx
	andl	$-8, %edx
	movq	(%rbx), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	testb	$1, %cl
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$2, %cl
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$4, %cl
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$8, %cl
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$16, %cl
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$32, %cl
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$64, %cl
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	testb	$-128, %cl
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	addq	$4, %rax
	cmpq	%rbx, %rdx
	jne	LBB0_2
LBB0_20:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	$-1, %ebx
	jmp	LBB0_21
LBB0_3:
	movl	$1, %edx
	jmp	LBB0_4
LBB0_6:
	movl	$2, %edx
	movl	$1, %r15d
	jmp	LBB0_4
LBB0_8:
	movl	$4, %edx
	movl	$2, %r15d
	jmp	LBB0_4
LBB0_10:
	movl	$8, %edx
	movl	$3, %r15d
	jmp	LBB0_4
LBB0_12:
	movl	$16, %edx
	movl	$4, %r15d
	jmp	LBB0_4
LBB0_14:
	movl	$32, %edx
	movl	$5, %r15d
	jmp	LBB0_4
LBB0_16:
	movl	$64, %edx
	movl	$6, %r15d
	jmp	LBB0_4
LBB0_18:
	movl	$128, %edx
	movl	$7, %r15d
LBB0_4:
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	%r14, %rdi
	callq	_spin_unlock
	orl	%r15d, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCALRAM_SIZE,4,2              ## @LOCALRAM_SIZE
	.no_dead_strip	_alloc_pcl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_pcl
_alloc_pcl:                             ; @alloc_pcl
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _LOCALRAM_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCALRAM_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1024
	b.lt	LBB0_11
; %bb.1:
	mov	x21, #0
	lsr	x8, x8, #7
	and	x10, x8, #0x1fffff8
	ldr	x8, [x20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8]
	tbz	w9, #0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #1, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #2, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #3, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #4, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #5, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #6, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w9, #7, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #8
	add	x8, x8, #4
	cmp	x10, x21
	b.ne	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #-1
	b	LBB0_21
LBB0_12:
	mov	w20, #0
	mov	w10, #1
	b	LBB0_20
LBB0_13:
	mov	w10, #2
	mov	w20, #1
	b	LBB0_20
LBB0_14:
	mov	w10, #4
	mov	w20, #2
	b	LBB0_20
LBB0_15:
	mov	w10, #8
	mov	w20, #3
	b	LBB0_20
LBB0_16:
	mov	w10, #16
	mov	w20, #4
	b	LBB0_20
LBB0_17:
	mov	w10, #32
	mov	w20, #5
	b	LBB0_20
LBB0_18:
	mov	w10, #64
	mov	w20, #6
	b	LBB0_20
LBB0_19:
	mov	w10, #128
	mov	w20, #7
LBB0_20:
	orr	w9, w10, w9
	str	w9, [x8]
	mov	x0, x19
	bl	_spin_unlock
	orr	w0, w20, w21
LBB0_21:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCALRAM_SIZE,4,2              ; @LOCALRAM_SIZE
	.no_dead_strip	_alloc_pcl
.subsections_via_symbols
