	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entry_alloc
_entry_alloc:                           ## @entry_alloc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	_pgss_hash@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_hash_get_num_entries
	movq	_pgss_max@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jl	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_entry_dealloc
	movl	(%r14), %edi
	callq	_hash_get_num_entries
	cmpq	(%r15), %rax
	jge	LBB0_1
LBB0_3:
	movl	(%r14), %edi
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rsi
	callq	_hash_search
	movq	%rax, %rbx
	cmpl	$0, -52(%rbp)
	jne	LBB0_8
## %bb.4:
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.6:
	movq	_USAGE_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_pgss@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_SpinLockInit
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movl	%r12d, (%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
LBB0_8:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pgss_hash,4,2                  ## @pgss_hash
	.comm	_pgss_max,8,3                   ## @pgss_max
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_pgss,8,3                       ## @pgss
	.comm	_USAGE_INIT,4,2                 ## @USAGE_INIT
	.no_dead_strip	_entry_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entry_alloc
_entry_alloc:                           ; @entry_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _pgss_hash@GOTPAGE
Lloh1:
	ldr	x24, [x24, _pgss_hash@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_hash_get_num_entries
Lloh2:
	adrp	x25, _pgss_max@GOTPAGE
Lloh3:
	ldr	x25, [x25, _pgss_max@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cmp	x0, x8
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_entry_dealloc
	ldr	w0, [x24]
	bl	_hash_get_num_entries
	b	LBB0_1
LBB0_3:
	ldr	w0, [x24]
Lloh4:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x1, x23
	bl	_hash_search
	mov	x23, x0
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
; %bb.4:
	add	x0, x23, #16
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh7:
	adrp	x8, _pgss@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pgss@GOTPAGEOFF]
Lloh9:
	adrp	x9, _USAGE_INIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USAGE_INIT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x23, #16]
	add	x0, x23, #12
	bl	_SpinLockInit
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_Assert
	stp	w19, w21, [x23, #4]
	str	w20, [x23]
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pgss_hash,4,2                  ; @pgss_hash
	.comm	_pgss_max,8,3                   ; @pgss_max
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_pgss,8,3                       ; @pgss
	.comm	_USAGE_INIT,4,2                 ; @USAGE_INIT
	.no_dead_strip	_entry_alloc
.subsections_via_symbols
