	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fibheap_consolidate
_fibheap_consolidate:                   ## @fibheap_consolidate
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-576(%rbp), %rdi
	xorl	%esi, %esi
	movl	$520, %edx                      ## imm = 0x208
	callq	_memset
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %r15
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, (%r13)
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fibheap_rem_root
	movslq	(%r15), %rax
	movq	-576(%rbp,%rax,8), %rbx
	leaq	-576(,%rax,8), %r13
	addq	%rbp, %r13
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_fibheap_link
	movq	$0, (%r13)
	movq	8(%r13), %rbx
	addq	$8, %r13
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_fibheap_compare
	testq	%rax, %rax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %r12
	movq	%r15, %rbx
	movq	%r12, %r15
	jmp	LBB0_6
LBB0_9:
	movq	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-576(%rbp,%rbx,8), %rax
	movq	%rax, (%r14)
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	$65, %rbx
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-576(%rbp,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	callq	_fibheap_ins_root
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-576(%rbp,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_fibheap_compare
	testq	%rax, %rax
	jns	LBB0_14
	jmp	LBB0_13
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fibheap_consolidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fibheap_consolidate
_fibheap_consolidate:                   ; @fibheap_consolidate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #528
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x23, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #520
	bl	_memset
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x20, [x24]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_fibheap_rem_root
	ldrsw	x8, [x20]
	add	x24, x23, x8, lsl #3
	ldr	x21, [x24]
	cbz	x21, LBB0_1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x20
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_fibheap_compare
	cmp	x0, #0
	csel	x20, x21, x20, gt
	csel	x1, x22, x21, gt
	mov	x0, x19
	mov	x2, x20
	bl	_fibheap_link
	str	xzr, [x24]
	ldr	x21, [x24, #8]!
	cbnz	x21, LBB0_4
	b	LBB0_1
LBB0_5:
	mov	x20, #0
	str	xzr, [x19]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x23, x20]
	str	x8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #8
	cmp	x20, #520
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23, x20]
	cbz	x1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_fibheap_ins_root
	ldr	x2, [x19]
	cbz	x2, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x23, x20]
	mov	x0, x19
	bl	_fibheap_compare
	tbz	x0, #63, LBB0_7
	b	LBB0_6
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #528
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fibheap_consolidate
.subsections_via_symbols
