	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GH_N@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_16
## %bb.1:
	movq	_Q_order@GOTPCREL(%rip), %rax
	movq	_Q_DOUBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$1, %ecx
	movl	$2, %eax
	sbbl	$0, %eax
	movq	_GH@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	8(%rcx), %r12
	movslq	(%r12), %rdx
	addq	%rdx, %rax
	movl	%eax, (%r12)
	decl	24(%r12)
	je	LBB0_2
## %bb.4:
	cmpq	%rax, 8(%r12)
	jg	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_assert
LBB0_6:
	movq	%r12, %rdi
	callq	_load_heap_v
	movl	(%r15), %r9d
	jmp	LBB0_7
LBB0_2:
	movslq	(%r15), %rdx
	movl	%edx, %r9d
	decl	%r9d
	movl	%r9d, (%r15)
	je	LBB0_16
## %bb.3:
	movq	(%rcx,%rdx,8), %r12
LBB0_7:
	movl	$1, %edx
	cmpl	$2, %r9d
	jl	LBB0_15
## %bb.8:
	movq	16(%r12), %r8
	movl	$1, %esi
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	cmpl	%r9d, %ebx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edx
	orl	$1, %edx
	movslq	%edx, %rcx
	movq	(%rdi,%rcx,8), %rcx
	movq	16(%rcx), %rcx
	movslq	%ebx, %rax
	movq	(%rdi,%rax,8), %rax
	cmpq	16(%rax), %rcx
	jb	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	%edx, %rax
	movq	(%rdi,%rax,8), %rbx
	cmpq	16(%rbx), %r8
	jbe	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%esi, %rax
	movq	%rbx, (%rdi,%rax,8)
	leal	(%rdx,%rdx), %ebx
	movl	%edx, %esi
	cmpl	%r9d, %ebx
	jle	LBB0_9
	jmp	LBB0_15
LBB0_13:
	movl	%esi, %edx
LBB0_15:
	movq	(%r14), %rax
	movslq	%edx, %rcx
	movq	%r12, (%rax,%rcx,8)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_order,4,2                    ## @Q_order
	.comm	_Q_DOUBLE,4,2                   ## @Q_DOUBLE
	.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	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
Lloh0:
	adrp	x21, _GH_N@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GH_N@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_16
; %bb.1:
Lloh2:
	adrp	x8, _Q_order@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Q_order@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _Q_DOUBLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _Q_DOUBLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1
	cinc	w8, w8, ne
Lloh8:
	adrp	x20, _GH@GOTPAGE
Lloh9:
	ldr	x20, [x20, _GH@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x19, [x9, #8]
	ldrsw	x10, [x19]
	add	x8, x10, x8
	str	w8, [x19]
	ldr	w10, [x19, #24]
	subs	w10, w10, #1
	str	w10, [x19, #24]
	b.eq	LBB0_6
; %bb.2:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.gt	LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_assert
LBB0_4:
	mov	x0, x19
	bl	_load_heap_v
	ldr	w8, [x21]
	cmp	w8, #2
	b.ge	LBB0_8
LBB0_5:
	mov	w11, #1
	b	LBB0_15
LBB0_6:
	ldrsw	x10, [x21]
	subs	w8, w10, #1
	str	w8, [x21]
	b.eq	LBB0_16
; %bb.7:
	ldr	x19, [x9, x10, lsl #3]
	cmp	w8, #2
	b.lt	LBB0_5
LBB0_8:
	ldr	x9, [x19, #16]
	mov	w10, #1
	mov	w12, #2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x20]
	cmp	w12, w8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x11, w12
	orr	x11, x11, #0x1
	ldr	x14, [x13, x11, lsl #3]
	ldr	x14, [x14, #16]
	ldr	x15, [x13, w12, sxtw #3]
	ldr	x15, [x15, #16]
	cmp	x14, x15
	csel	w11, w11, w12, lo
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x11, x12
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x12, [x13, w11, sxtw #3]
	ldr	x14, [x12, #16]
	cmp	x9, x14
	b.ls	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x12, [x13, w10, sxtw #3]
	lsl	w12, w11, #1
	mov	x10, x11
	cmp	w12, w8
	b.le	LBB0_9
	b	LBB0_15
LBB0_14:
	mov	x11, x10
LBB0_15:
	ldr	x8, [x20]
	str	x19, [x8, w11, sxtw #3]
LBB0_16:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_order,4,2                    ; @Q_order
	.comm	_Q_DOUBLE,4,2                   ; @Q_DOUBLE
	.comm	_GH_N,4,2                       ; @GH_N
	.comm	_GH,8,3                         ; @GH
	.no_dead_strip	_gather_heap_advance
.subsections_via_symbols
