	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_l2e
_alloc_l2e:                             ## @alloc_l2e
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	16(%rdi), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	24(%r14), %rbx
	movq	(%r14), %rcx
	movq	8(%r14), %rax
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rax,%rcx,8), %r12
	cmpq	%r12, %rbx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	32(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$40, %rbx
	cmpq	%r12, %rbx
	jne	LBB0_3
## %bb.5:
	movq	8(%r14), %rax
LBB0_6:
	addq	$-40, %rax
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	72(%rbx), %rdi
	callq	_atomic_read
	addq	$40, %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:
	leaq	40(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	%r15, %rdi
	callq	_atomic_dec
	movq	(%rbx), %rax
	movq	_L2T_STATE_SWITCHING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.9:
	movq	8(%r14), %rax
	movq	8(%rbx), %rcx
	leaq	(%rcx,%rcx,4), %rdx
	movq	24(%rax,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.10:
	cmpq	%rbx, %rcx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rbx, %rcx
	jne	LBB0_12
## %bb.14:
	addq	$16, %rax
	jmp	LBB0_15
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_11:
	leaq	(%rax,%rdx,8), %rax
	addq	$24, %rax
LBB0_15:
	movq	16(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	$0, 16(%rbx)
LBB0_16:
	movq	_L2T_STATE_UNUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_17:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2T_STATE_SWITCHING,8,3        ## @L2T_STATE_SWITCHING
	.comm	_L2T_STATE_UNUSED,8,3           ## @L2T_STATE_UNUSED
	.no_dead_strip	_alloc_l2e
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_l2e
_alloc_l2e:                             ; @alloc_l2e
	.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	x21, x0, #16
	mov	x0, x21
	bl	_atomic_read
	cbz	x0, LBB0_15
; %bb.1:
	ldr	x19, [x20, #24]
	ldp	x9, x8, [x20]
	mov	w10, #40
	madd	x22, x9, x10, x8
	cmp	x19, x22
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #32
	bl	_atomic_read
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #40
	cmp	x19, x22
	b.ne	LBB0_2
; %bb.4:
	ldr	x8, [x20, #8]
LBB0_5:
	sub	x19, x8, #40
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #72
	bl	_atomic_read
	add	x19, x19, #40
	cbnz	x0, LBB0_6
LBB0_7:
	add	x8, x19, #40
	str	x8, [x20, #24]
	mov	x0, x21
	bl	_atomic_dec
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _L2T_STATE_SWITCHING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _L2T_STATE_SWITCHING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_14
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	mov	w10, #40
	madd	x9, x9, x10, x8
	ldr	x8, [x9, #24]!
	cbz	x8, LBB0_14
; %bb.9:
	cmp	x8, x19
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.12:
	add	x9, x9, #16
LBB0_13:
	ldr	x8, [x19, #16]
	str	x8, [x9]
	str	xzr, [x19, #16]
LBB0_14:
Lloh3:
	adrp	x8, _L2T_STATE_UNUSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _L2T_STATE_UNUSED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_16
LBB0_15:
	mov	x19, #0
LBB0_16:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_L2T_STATE_SWITCHING,8,3        ; @L2T_STATE_SWITCHING
	.comm	_L2T_STATE_UNUSED,8,3           ; @L2T_STATE_UNUSED
	.no_dead_strip	_alloc_l2e
.subsections_via_symbols
