	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_get_entry
_heap_get_entry:                        ## @heap_get_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.3:
	movq	8(%rdi), %rdx
	movq	(%rdx), %rax
	leal	-1(%rcx), %r9d
	movl	%r9d, (%rdi)
	movq	(%rdx,%r9,8), %rsi
	movq	%rsi, (%rdx)
	cmpl	$3, %ecx
	jb	LBB0_2
## %bb.4:
	movq	8(%rdi), %r11
	movq	(%r11), %rcx
	movq	(%rcx), %r8
	xorl	%ecx, %ecx
	movl	$1, %edx
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rsi
	movq	(%r11,%rsi,8), %rsi
	movq	(%rsi), %rbx
	addl	$2, %ecx
	cmpl	%r9d, %ecx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ecx, %rsi
	movq	(%r11,%rsi,8), %rsi
	movq	(%rsi), %rsi
	cmpq	%rbx, %rsi
	cmovll	%ecx, %edx
	cmovlq	%rsi, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %esi
	cmpq	%rbx, %r8
	jle	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r10d, %rcx
	movq	(%r11,%rcx,8), %r10
	movslq	%esi, %rbx
	movq	(%r11,%rbx,8), %rdx
	movq	%rdx, (%r11,%rcx,8)
	movq	8(%rdi), %rcx
	movq	%r10, (%rcx,%rbx,8)
	leal	(%rsi,%rsi), %edx
	incl	%edx
	cmpl	%r9d, %edx
	jge	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	(%rsi,%rsi), %ecx
	movq	8(%rdi), %r11
	movl	%esi, %r10d
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_heap_get_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_get_entry
_heap_get_entry:                        ; @heap_get_entry
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	subs	w9, w10, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x8, x0
	ldr	x11, [x0, #8]
	ldr	x0, [x11]
	str	w9, [x8]
	ldr	x12, [x11, w9, uxtw #3]
	str	x12, [x11]
	cmp	w10, #3
	b.lo	LBB0_9
; %bb.2:
	mov	w15, #0
	mov	w12, #0
	ldr	x11, [x8, #8]
	ldr	x10, [x11]
	ldr	x10, [x10]
	mov	w13, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11, w13, sxtw #3]
	ldr	x16, [x14]
	add	w14, w15, #2
	cmp	w14, w9
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x11, w14, sxtw #3]
	ldr	x15, [x15]
	cmp	x15, x16
	csel	x16, x15, x16, lt
	csel	w14, w14, w13, lt
	cmp	x10, x16
	b.gt	LBB0_6
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, x13
	cmp	x10, x16
	b.le	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	sbfiz	x12, x12, #3, #32
	ldr	x13, [x11, x12]
	sbfiz	x15, x14, #3, #32
	ldr	x16, [x11, x15]
	str	x16, [x11, x12]
	ldr	x11, [x8, #8]
	str	x13, [x11, x15]
	mov	w13, #1
	bfi	w13, w14, #1, #31
	cmp	w13, w9
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w15, w14, #1
	ldr	x11, [x8, #8]
	mov	x12, x14
	b	LBB0_3
LBB0_8:
	mov	x0, #0
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_heap_get_entry
.subsections_via_symbols
