	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function entry_dealloc
_entry_dealloc:                         ## @entry_dealloc
	.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	_pgss_hash@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_hash_get_num_entries
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,8), %edi
	callq	_palloc
	movq	%rax, %r14
	movl	(%r13), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_hash_seq_init
	movq	%rbx, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	leaq	-44(%rbp), %r12
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movl	24(%rax), %edx
	imull	(%rcx), %edx
	movl	%edx, 24(%rax)
	movq	(%rax), %rax
	leal	1(%rax), %ecx
	testq	%rax, %rax
	movl	$0, %edx
	cmovsl	%edx, %ecx
	addl	%ecx, %ebx
	shrq	$63, %rax
	xorl	$1, %eax
	addl	%eax, %r13d
	movq	%r12, %rdi
	callq	_hash_seq_search
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%r14,%r15,8)
	cmpq	$0, 16(%rax)
	movq	_USAGE_DECREASE_FACTOR@GOTPCREL(%rip), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_STICKY_DECREASE_FACTOR@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	_entry_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$8, %edx
	callq	_qsort
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:
	movl	%r15d, %eax
	andl	$-2, %eax
	movq	(%r14,%rax,4), %rax
	movl	24(%rax), %eax
	movq	_pgss@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	testl	%r13d, %r13d
	je	LBB0_9
LBB0_10:
	movl	%ebx, %eax
	cltd
	idivl	%r13d
	movq	_pgss_hash@GOTPCREL(%rip), %r13
	jmp	LBB0_13
LBB0_11:
	movq	_entry_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_qsort
	jmp	LBB0_12
LBB0_6:
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	jne	LBB0_10
LBB0_9:
	movq	_pgss_hash@GOTPCREL(%rip), %r13
LBB0_12:
	movq	_ASSUMED_LENGTH_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movq	_pgss@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	movq	_USAGE_DEALLOC_PERCENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r15d, %eax
	cltq
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$37, %rsi
	addl	%eax, %esi
	movl	$10, %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_Max
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_Min
	testl	%eax, %eax
	jle	LBB0_16
## %bb.14:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	_HASH_REMOVE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r14,%rbx,8), %rsi
	addq	$8, %rsi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_hash_search
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_pfree
	addq	$8, %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	_STICKY_DECREASE_FACTOR,4,2     ## @STICKY_DECREASE_FACTOR
	.comm	_USAGE_DECREASE_FACTOR,4,2      ## @USAGE_DECREASE_FACTOR
	.comm	_entry_cmp,4,2                  ## @entry_cmp
	.comm	_pgss,8,3                       ## @pgss
	.comm	_ASSUMED_LENGTH_INIT,4,2        ## @ASSUMED_LENGTH_INIT
	.comm	_USAGE_DEALLOC_PERCENT,4,2      ## @USAGE_DEALLOC_PERCENT
	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
	.no_dead_strip	_entry_dealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function entry_dealloc
_entry_dealloc:                         ; @entry_dealloc
	.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
Lloh0:
	adrp	x21, _pgss_hash@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pgss_hash@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_hash_get_num_entries
	lsl	w0, w0, #3
	bl	_palloc
	mov	x19, x0
	ldr	w1, [x21]
	add	x0, sp, #12
	bl	_hash_seq_init
	add	x0, sp, #12
	bl	_hash_seq_search
Lloh2:
	adrp	x22, _pgss@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pgss@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, #0
	mov	w23, #0
	mov	w24, #0
Lloh4:
	adrp	x25, _STICKY_DECREASE_FACTOR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _STICKY_DECREASE_FACTOR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _USAGE_DECREASE_FACTOR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _USAGE_DECREASE_FACTOR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x0, [x19, x20, lsl #3]
	add	x20, x20, #1
	ldr	x8, [x0, #16]
	cmp	x8, #0
	csel	x8, x25, x26, eq
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	mul	w8, w9, w8
	str	w8, [x0, #24]
	ldr	x8, [x0]
	add	w9, w8, #1
	asr	x10, x8, #63
	bic	w9, w9, w10
	add	w24, w9, w24
	lsr	x8, x8, #63
	eor	w8, w8, #0x1
	add	w23, w8, w23
	add	x0, sp, #12
	bl	_hash_seq_search
	cbnz	x0, LBB0_2
; %bb.3:
Lloh8:
	adrp	x8, _entry_cmp@GOTPAGE
Lloh9:
	ldr	x8, [x8, _entry_cmp@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	_qsort
	cbz	w20, LBB0_5
; %bb.4:
	ubfx	x8, x20, #1, #31
	ldr	x8, [x19, x8, lsl #3]
	ldr	w8, [x8, #24]
	ldr	x9, [x22]
	str	w8, [x9, #4]
LBB0_5:
	cbz	w23, LBB0_8
; %bb.6:
	sdiv	w8, w24, w23
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _entry_cmp@GOTPAGE
Lloh12:
	ldr	x8, [x8, _entry_cmp@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_qsort
	mov	w20, #0
LBB0_8:
Lloh14:
	adrp	x8, _ASSUMED_LENGTH_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ASSUMED_LENGTH_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_9:
	ldr	x9, [x22]
	str	w8, [x9]
Lloh17:
	adrp	x8, _USAGE_DEALLOC_PERCENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USAGE_DEALLOC_PERCENT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mul	w8, w8, w20
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w1, w8, w9
	mov	w0, #10
	bl	_Max
	mov	x1, x20
	bl	_Min
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w20, w0
Lloh20:
	adrp	x22, _HASH_REMOVE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _HASH_REMOVE@GOTPAGEOFF]
	mov	x23, x19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	x8, [x23], #8
	add	x1, x8, #8
	ldr	w2, [x22]
	mov	x3, #0
	bl	_hash_search
	subs	x20, x20, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x19
	bl	_pfree
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_pgss_hash,4,2                  ; @pgss_hash
	.comm	_STICKY_DECREASE_FACTOR,4,2     ; @STICKY_DECREASE_FACTOR
	.comm	_USAGE_DECREASE_FACTOR,4,2      ; @USAGE_DECREASE_FACTOR
	.comm	_entry_cmp,4,2                  ; @entry_cmp
	.comm	_pgss,8,3                       ; @pgss
	.comm	_ASSUMED_LENGTH_INIT,4,2        ; @ASSUMED_LENGTH_INIT
	.comm	_USAGE_DEALLOC_PERCENT,4,2      ; @USAGE_DEALLOC_PERCENT
	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
	.no_dead_strip	_entry_dealloc
.subsections_via_symbols
