	.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	_SEARCH_EXTENSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SEARCHX_EXTENSION@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_GH_mode@GOTPCREL(%rip), %rax
	movq	_g_double@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$1, %ecx
	movl	$3, %eax
	sbbl	$0, %eax
	jmp	LBB0_6
LBB0_2:
	movq	_TARG_EXTENSION@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_GH_mode@GOTPCREL(%rip), %rax
	movq	_g_double@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	cmpl	$1, %ecx
	movl	$2, %eax
	sbbl	$0, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_HINTS_MERGE_EXTENSION@GOTPCREL(%rip), %rcx
	movl	$3, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_assert
                                        ## implicit-def: $eax
LBB0_6:
	movq	_GH_N@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_22
## %bb.7:
	movq	_GH_mode@GOTPCREL(%rip), %rcx
	movq	_g_hash@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	leal	2(%rax), %esi
	testl	%edx, %edx
	cmovel	%eax, %esi
	movq	_GH@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	8(%rcx), %r12
	movslq	(%r12), %rdx
	movslq	%esi, %rax
	addq	%rdx, %rax
	movl	%eax, (%r12)
	decl	24(%r12)
	je	LBB0_8
## %bb.10:
	cmpq	%rax, 8(%r12)
	jg	LBB0_12
## %bb.11:
	xorl	%edi, %edi
	callq	_assert
LBB0_12:
	movq	%r12, %rdi
	callq	_load_heap_v
	movl	(%r15), %r9d
	jmp	LBB0_13
LBB0_8:
	movslq	(%r15), %rdx
	movl	%edx, %r9d
	decl	%r9d
	movl	%r9d, (%r15)
	je	LBB0_22
## %bb.9:
	movq	(%rcx,%rdx,8), %r12
LBB0_13:
	movl	$1, %edx
	cmpl	$2, %r9d
	jl	LBB0_21
## %bb.14:
	movq	16(%r12), %r8
	movl	$1, %esi
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	cmpl	%r9d, %ebx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 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_18
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edx
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	%edx, %rax
	movq	(%rdi,%rax,8), %rbx
	cmpq	16(%rbx), %r8
	jbe	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	%esi, %rax
	movq	%rbx, (%rdi,%rax,8)
	leal	(%rdx,%rdx), %ebx
	movl	%edx, %esi
	cmpl	%r9d, %ebx
	jle	LBB0_15
	jmp	LBB0_21
LBB0_19:
	movl	%esi, %edx
LBB0_21:
	movq	(%r14), %rax
	movslq	%edx, %rcx
	movq	%r12, (%rax,%rcx,8)
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEARCH_EXTENSION,8,3           ## @SEARCH_EXTENSION
	.comm	_SEARCHX_EXTENSION,8,3          ## @SEARCHX_EXTENSION
	.comm	_GH_mode,4,2                    ## @GH_mode
	.comm	_g_double,4,2                   ## @g_double
	.comm	_TARG_EXTENSION,8,3             ## @TARG_EXTENSION
	.comm	_HINTS_MERGE_EXTENSION,8,3      ## @HINTS_MERGE_EXTENSION
	.comm	_g_hash,4,2                     ## @g_hash
	.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	x8, _SEARCH_EXTENSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEARCH_EXTENSION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SEARCHX_EXTENSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEARCHX_EXTENSION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _GH_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GH_mode@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _g_double@GOTPAGE
Lloh10:
	ldr	x9, [x9, _g_double@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #2
	cinc	w8, w8, ne
	b	LBB0_7
LBB0_2:
Lloh12:
	adrp	x8, _TARG_EXTENSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TARG_EXTENSION@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _GH_mode@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GH_mode@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _g_double@GOTPAGE
Lloh19:
	ldr	x9, [x9, _g_double@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1
	cinc	w8, w8, ne
	b	LBB0_7
LBB0_4:
Lloh21:
	adrp	x8, _HINTS_MERGE_EXTENSION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HINTS_MERGE_EXTENSION@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w8, #3
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	bl	_assert
                                        ; implicit-def: $w8
LBB0_7:
Lloh24:
	adrp	x21, _GH_N@GOTPAGE
Lloh25:
	ldr	x21, [x21, _GH_N@GOTPAGEOFF]
	ldr	w9, [x21]
	cbz	w9, LBB0_23
; %bb.8:
Lloh26:
	adrp	x9, _GH_mode@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GH_mode@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _g_hash@GOTPAGE
Lloh30:
	ldr	x10, [x10, _g_hash@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	add	w11, w8, #2
	tst	w10, w9
	csel	w8, w8, w11, eq
Lloh32:
	adrp	x20, _GH@GOTPAGE
Lloh33:
	ldr	x20, [x20, _GH@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	x19, [x9, #8]
	ldrsw	x10, [x19]
	add	x8, x10, w8, sxtw
	str	w8, [x19]
	ldr	w10, [x19, #24]
	subs	w10, w10, #1
	str	w10, [x19, #24]
	b.eq	LBB0_13
; %bb.9:
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.gt	LBB0_11
; %bb.10:
	mov	w0, #0
	bl	_assert
LBB0_11:
	mov	x0, x19
	bl	_load_heap_v
	ldr	w8, [x21]
	cmp	w8, #2
	b.ge	LBB0_15
LBB0_12:
	mov	w11, #1
	b	LBB0_22
LBB0_13:
	ldrsw	x10, [x21]
	subs	w8, w10, #1
	str	w8, [x21]
	b.eq	LBB0_23
; %bb.14:
	ldr	x19, [x9, x10, lsl #3]
	cmp	w8, #2
	b.lt	LBB0_12
LBB0_15:
	ldr	x9, [x19, #16]
	mov	w10, #1
	mov	w12, #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x20]
	cmp	w12, w8
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 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_19
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x11, x12
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x12, [x13, w11, sxtw #3]
	ldr	x14, [x12, #16]
	cmp	x9, x14
	b.ls	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	str	x12, [x13, w10, sxtw #3]
	lsl	w12, w11, #1
	mov	x10, x11
	cmp	w12, w8
	b.le	LBB0_16
	b	LBB0_22
LBB0_21:
	mov	x11, x10
LBB0_22:
	ldr	x8, [x20]
	str	x19, [x8, w11, sxtw #3]
LBB0_23:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SEARCH_EXTENSION,8,3           ; @SEARCH_EXTENSION
	.comm	_SEARCHX_EXTENSION,8,3          ; @SEARCHX_EXTENSION
	.comm	_GH_mode,4,2                    ; @GH_mode
	.comm	_g_double,4,2                   ; @g_double
	.comm	_TARG_EXTENSION,8,3             ; @TARG_EXTENSION
	.comm	_HINTS_MERGE_EXTENSION,8,3      ; @HINTS_MERGE_EXTENSION
	.comm	_g_hash,4,2                     ; @g_hash
	.comm	_GH_N,4,2                       ; @GH_N
	.comm	_GH,8,3                         ; @GH
	.no_dead_strip	_gather_heap_advance
.subsections_via_symbols
