	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gather_heap_advance
_gather_heap_advance:                   ## @gather_heap_advance
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GH_N@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.1:
	movq	_GH@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	8(%rdx), %r12
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	callq	_load_heap_v
	movq	_GH_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	movl	%ecx, %eax
	decl	%eax
	movq	_GH_N@GOTPCREL(%rip), %rsi
	movl	%eax, (%rsi)
	je	LBB0_14
## %bb.3:
	movq	(%rdx,%rcx,8), %r12
LBB0_5:
	movl	$1, %r13d
	cmpl	$2, %eax
	jl	LBB0_13
## %bb.6:
	movl	$1, %r14d
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %ebx
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movl	%ebx, %r13d
	orl	$1, %r13d
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %rdi
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rsi
	callq	_gh_entry_less
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %ebx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r13d
	movq	(%r15), %rax
	movslq	%ebx, %rbx
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_gh_entry_less
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rcx
	movslq	%r14d, %rdx
	movq	%rcx, (%rax,%rdx,8)
	addl	%ebx, %ebx
	movq	_GH_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r13d, %r14d
	cmpl	%eax, %ebx
	jle	LBB0_7
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, %r13d
LBB0_13:
	movq	(%r15), %rax
	movslq	%r13d, %rcx
	movq	%r12, (%rax,%rcx,8)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GH_N,4,2                       ## @GH_N
	.comm	_GH,8,3                         ## @GH
	.no_dead_strip	_gather_heap_advance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gather_heap_advance
_gather_heap_advance:                   ; @gather_heap_advance
	.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
Lloh0:
	adrp	x21, _GH_N@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GH_N@GOTPAGEOFF]
	ldrsw	x9, [x21]
	cbz	w9, LBB0_14
; %bb.1:
Lloh2:
	adrp	x20, _GH@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GH@GOTPAGEOFF]
	ldr	x10, [x20]
	ldr	x19, [x10, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_load_heap_v
	ldr	w8, [x21]
	cmp	w8, #2
	b.ge	LBB0_6
LBB0_3:
	mov	w23, #1
	b	LBB0_13
LBB0_4:
	subs	w8, w9, #1
	str	w8, [x21]
	b.eq	LBB0_14
; %bb.5:
	ldr	x19, [x10, x9, lsl #3]
	cmp	w8, #2
	b.lt	LBB0_3
LBB0_6:
	mov	w22, #1
	mov	w24, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, w8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	sxtw	x9, w24
	orr	x23, x9, #0x1
	ldr	x0, [x8, x23, lsl #3]
	ldr	x1, [x8, w24, sxtw #3]
	bl	_gh_entry_less
	cmp	x0, #0
	csel	w23, w24, w23, eq
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x24
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, w23, sxtw #3]
	mov	x1, x19
	bl	_gh_entry_less
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	sxtw	x8, w23
	ldr	x9, [x20]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x9, w22, sxtw #3]
	lsl	w24, w23, #1
	ldr	w8, [x21]
	mov	x22, x23
	cmp	w24, w8
	b.le	LBB0_7
	b	LBB0_13
LBB0_12:
	mov	x23, x22
LBB0_13:
	ldr	x8, [x20]
	str	x19, [x8, w23, sxtw #3]
LBB0_14:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GH_N,4,2                       ; @GH_N
	.comm	_GH,8,3                         ; @GH
	.no_dead_strip	_gather_heap_advance
.subsections_via_symbols
