	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_fix_down                  ## -- Begin function heap_fix_down
	.p2align	4, 0x90
_heap_fix_down:                         ## @heap_fix_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_heap_size@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$1, %esi
	movq	_heap@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rsi,%rsi), %edi
	movslq	%esi, %r11
	movl	%esi, %ecx
	cmpl	%r9d, %edi
	jg	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r8), %rcx
	movslq	%edi, %rax
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r10
	movq	(%rcx,%r11,8), %rax
	movl	%edi, %ecx
	cmpq	(%rax), %r10
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%esi, %ecx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	$1, %edi
	cmpl	%r9d, %edi
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r8), %rax
	movslq	%edi, %rdx
	movq	(%rax,%rdx,8), %rdx
	movq	(%rdx), %r10
	movslq	%ecx, %rdx
	movq	(%rax,%rdx,8), %rax
	cmpq	(%rax), %r10
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %edi
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%edi, %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, %ecx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r8), %rax
	movslq	%ecx, %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	(%rax,%r11,8), %rdi
	movq	%rdi, (%rax,%rdx,8)
	movq	(%r8), %rax
	movq	%rsi, (%rax,%r11,8)
	movl	%ecx, %esi
	jmp	LBB0_1
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_heap_size,4,2                  ## @heap_size
	.comm	_heap,8,3                       ## @heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_heap_fix_down                  ; -- Begin function heap_fix_down
	.p2align	2
_heap_fix_down:                         ; @heap_fix_down
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _heap_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _heap_size@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w10, #1
Lloh3:
	adrp	x9, _heap@GOTPAGE
Lloh4:
	ldr	x9, [x9, _heap@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x11, w10
	sbfiz	x13, x10, #1, #32
	mov	x12, x10
	cmp	w13, w8
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x12, [x9]
	ldr	x14, [x12, x13, lsl #3]
	ldr	x14, [x14]
	ldr	x12, [x12, x11, lsl #3]
	ldr	x12, [x12]
	cmp	x14, x12
	csel	w12, w13, w10, gt
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	orr	w13, w13, #0x1
	cmp	w13, w8
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x14, [x9]
	ldr	x15, [x14, w13, sxtw #3]
	ldr	x15, [x15]
	ldr	x14, [x14, w12, sxtw #3]
	ldr	x14, [x14]
	cmp	x15, x14
	csel	w12, w13, w12, gt
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w12, w10
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x10, [x9]
	sbfiz	x13, x12, #3, #32
	ldr	x14, [x10, x13]
	lsl	x11, x11, #3
	ldr	x15, [x10, x11]
	str	x15, [x10, x13]
	ldr	x10, [x9]
	str	x14, [x10, x11]
	mov	x10, x12
	b	LBB0_1
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_heap_size,4,2                  ; @heap_size
	.comm	_heap,8,3                       ; @heap
.subsections_via_symbols
