	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sink_down
_sink_down:                             ## @sink_down
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movl	%ebx, %eax
	shrl	%eax
	cmpl	%esi, %eax
	jae	LBB0_2
LBB0_10:
	movl	%r13d, %r12d
LBB0_11:
	movq	8(%r15), %rax
	movl	%r12d, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%rbx,8)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movl	%ebx, %esi
	callq	*%rax
LBB0_13:
	movl	%ebx, %edi
	callq	_HEAPCONDITION
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_INSIST                         ## TAILCALL
LBB0_2:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r12d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	ja	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_heap_left
	movl	%eax, %r12d
	cmpl	%ebx, %eax
	jae	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rsi
	movq	8(%rax,%rcx,8), %rdi
	callq	*24(%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r12d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movl	%r12d, %r14d
	movq	(%rax,%r14,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*24(%r15)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rdx
	movl	%r13d, %ecx
	movq	%rdx, (%rax,%rcx,8)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rdx
	movq	(%rdx,%rcx,8), %rdi
	movl	%r13d, %esi
	callq	*%rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sink_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sink_down
_sink_down:                             ; @sink_down
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w23, [x0]
	lsr	w24, w23, #1
	cmp	w24, w1
	b.hs	LBB0_6
LBB0_1:
	mov	x22, x21
LBB0_2:
	ldr	x8, [x19, #8]
	mov	w21, w22
	str	x20, [x8, w22, uxtw #3]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x21, lsl #3]
	mov	x1, x21
	blr	x8
LBB0_4:
	mov	x0, x21
	bl	_HEAPCONDITION
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_INSIST
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x22
	cmp	w22, w24
	b.hi	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_heap_left
	mov	x22, x0
	cmp	w0, w23
	b.hs	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	w10, w22, #1
	ldr	x0, [x9, w10, uxtw #3]
	ldr	x1, [x9, w22, uxtw #3]
	blr	x8
	cmp	x0, #0
	cinc	w22, w22, ne
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	ldr	x1, [x9, w22, uxtw #3]
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, w22
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x9, w21, uxtw #3]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w9, w21
	ldr	x10, [x19, #8]
	ldr	x0, [x10, x9, lsl #3]
	mov	x1, x21
	blr	x8
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sink_down
.subsections_via_symbols
