	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_heap_delete                ## -- Begin function isc_heap_delete
	.p2align	4, 0x90
_isc_heap_delete:                       ## @isc_heap_delete
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_VALID_HEAP
	movl	%eax, %edi
	callq	_REQUIRE
	xorl	%edi, %edi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	cmpl	%r14d, (%rbx)
	setae	%dil
LBB0_2:
	callq	_REQUIRE
	movl	(%rbx), %eax
	movq	8(%rbx), %rcx
	cmpl	%r14d, %eax
	jne	LBB0_3
## %bb.5:
	movl	%r14d, %eax
	movq	$0, (%rcx,%rax,8)
	decl	%r14d
	movl	%r14d, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rcx,%rax,8), %r15
	movq	$0, (%rcx,%rax,8)
	decl	%eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movl	%r14d, %r12d
	movq	(%rax,%r12,8), %rsi
	movq	%r15, %rdi
	callq	*16(%rbx)
	movq	8(%rbx), %rcx
	movq	%r15, (%rcx,%r12,8)
	movq	8(%rbx), %rcx
	movq	(%rcx,%r12,8), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_float_up                       ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sink_down                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_heap_delete                ; -- Begin function isc_heap_delete
	.p2align	2
_isc_heap_delete:                       ; @isc_heap_delete
	.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	x19, x1
	mov	x20, x0
	bl	_VALID_HEAP
	bl	_REQUIRE
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, hs
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_REQUIRE
	ldr	w8, [x20]
	ldr	x9, [x20, #8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.4:
	str	xzr, [x9, w19, uxtw #3]
	sub	w8, w19, #1
	str	w8, [x20]
	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
LBB0_5:
	lsl	x10, x8, #3
	ldr	x21, [x9, x10]
	str	xzr, [x9, x10]
	sub	w8, w8, #1
	str	w8, [x20]
	ldp	x9, x8, [x20, #8]
	mov	w10, w19
	lsl	x22, x10, #3
	ldr	x1, [x9, x22]
	mov	x0, x21
	blr	x8
	ldr	x8, [x20, #8]
	str	x21, [x8, x22]
	ldr	x8, [x20, #8]
	ldr	x2, [x8, x22]
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, 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
	b	_float_up
LBB0_7:
	mov	x0, x20
	mov	x1, 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
	b	_sink_down
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
