	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gather_heap_insert
_gather_heap_insert:                    ## @gather_heap_insert
	.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	%rdi, %r15
	movq	_GH_N@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_CLUSTER_SERVERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setb	%dil
	callq	_assert
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	jle	LBB0_19
## %bb.1:
	movl	8(%r15), %r14d
	cmpl	$8, %r14d
	jl	LBB0_19
## %bb.2:
	cmpq	$0, 16(%r15)
	je	LBB0_19
## %bb.3:
	shrl	$2, %r14d
	decl	%r14d
	movq	_SEARCH_EXTENSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SEARCHX_EXTENSION@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	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_9
LBB0_5:
	movq	_TARG_EXTENSION@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	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_9
LBB0_7:
	movq	_HINTS_MERGE_EXTENSION@GOTPCREL(%rip), %rcx
	movl	$3, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	callq	_assert
                                        ## implicit-def: $eax
LBB0_9:
	movq	_GH_mode@GOTPCREL(%rip), %rcx
	movq	_g_hash@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	2(%rax), %r13d
	testl	%edx, (%rcx)
	cmovel	%eax, %r13d
	xorl	%ebx, %ebx
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %r12d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_11
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15), %ecx
	sarl	$2, %ecx
	decl	%ecx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_fprintf
LBB0_11:
	cmpl	%r14d, %r13d
	ja	LBB0_19
## %bb.12:
	movq	_GH_total@GOTPCREL(%rip), %rax
	addl	%r12d, (%rax)
	movq	_GH_E@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_GH_N@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	shlq	$5, %rbx
	leaq	(%rbx,%r13), %rdx
	movl	%r12d, (%r13,%rbx)
	movq	16(%r15), %rax
	movq	%rax, 24(%r13,%rbx)
	movl	12(%r15), %ecx
	movq	%rdx, %r15
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edx, %rcx
	addq	%rcx, %rax
	incq	%rax
	movq	%rax, 16(%r13,%rbx)
	movq	%r15, %rdi
	callq	_load_heap_v
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r14)
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.13:
	movq	8(%r13,%rbx), %rdx
	movq	_GH@GOTPCREL(%rip), %r8
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	shrl	%ecx
	movq	(%r8), %rdi
	movq	(%rdi,%rcx,8), %rbx
	cmpq	%rdx, 8(%rbx)
	jbe	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %esi
	movq	%rbx, (%rdi,%rsi,8)
	cmpl	$3, %eax
	movl	%ecx, %eax
	ja	LBB0_14
	jmp	LBB0_18
LBB0_17:
	movl	%eax, %ecx
LBB0_18:
	movq	_GH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rcx
	movq	%r15, (%rax,%rcx,8)
	movl	$1, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GH_N,8,3                       ## @GH_N
	.comm	_MAX_CLUSTER_SERVERS,8,3        ## @MAX_CLUSTER_SERVERS
	.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	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gather_heap_insert: %d elements (size %d)\n"

	.comm	_GH_total,4,2                   ## @GH_total
	.comm	_GH_E,8,3                       ## @GH_E
	.comm	_GH,8,3                         ## @GH
	.no_dead_strip	_gather_heap_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gather_heap_insert
_gather_heap_insert:                    ; @gather_heap_insert
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _GH_N@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GH_N@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _MAX_CLUSTER_SERVERS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_CLUSTER_SERVERS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #8
	b.lt	LBB0_13
; %bb.2:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_13
; %bb.3:
	lsr	w8, w8, #2
	sub	w20, w8, #1
Lloh5:
	adrp	x8, _SEARCH_EXTENSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEARCH_EXTENSION@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _SEARCHX_EXTENSION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEARCHX_EXTENSION@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x21, _GH_mode@GOTPAGE
Lloh12:
	ldr	x21, [x21, _GH_mode@GOTPAGEOFF]
	orr	x8, x8, x9
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh13:
	adrp	x9, _g_double@GOTPAGE
Lloh14:
	ldr	x9, [x9, _g_double@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #2
	cinc	w8, w8, ne
	b	LBB0_10
LBB0_5:
Lloh16:
	adrp	x8, _TARG_EXTENSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TARG_EXTENSION@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _g_double@GOTPAGE
Lloh20:
	ldr	x9, [x9, _g_double@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #1
	cinc	w8, w8, ne
	b	LBB0_10
LBB0_7:
Lloh22:
	adrp	x8, _HINTS_MERGE_EXTENSION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HINTS_MERGE_EXTENSION@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	w8, #3
	b	LBB0_10
LBB0_9:
	mov	w0, #0
	bl	_assert
                                        ; implicit-def: $w8
LBB0_10:
	ldr	w9, [x21]
Lloh25:
	adrp	x10, _g_hash@GOTPAGE
Lloh26:
	ldr	x10, [x10, _g_hash@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	add	w11, w8, #2
	tst	w10, w9
	csel	w23, w8, w11, eq
	udiv	w21, w20, w23
Lloh28:
	adrp	x8, _verbosity@GOTPAGE
Lloh29:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	asr	w8, w8, #2
	sub	w3, w8, #1
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_fprintf
LBB0_12:
	cmp	w23, w20
	b.ls	LBB0_15
LBB0_13:
	mov	w0, #0
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
LBB0_15:
Lloh36:
	adrp	x8, _GH_total@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GH_total@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
Lloh38:
	adrp	x8, _GH_E@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GH_E@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x20, x8, x9, lsl #5
	str	w21, [x20]
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #12]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	add	x9, x8, w9, sxtw
	add	x9, x9, #1
	stp	x9, x8, [x20, #16]
	mov	x0, x20
	bl	_load_heap_v
	ldr	x8, [x22]
	add	x9, x8, #1
	str	x9, [x22]
Lloh41:
	adrp	x8, _GH@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GH@GOTPAGEOFF]
	cmp	w9, #2
	b.lt	LBB0_19
; %bb.16:
	ldr	x11, [x20, #8]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	lsr	w10, w9, #1
	ldr	x12, [x8]
	ldr	x13, [x12, w10, uxtw #3]
	ldr	x14, [x13, #8]
	cmp	x14, x11
	b.ls	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	str	x13, [x12, w9, uxtw #3]
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_17
	b	LBB0_20
LBB0_19:
	mov	x10, x9
LBB0_20:
	ldr	x8, [x8]
	str	x20, [x8, w10, sxtw #3]
	mov	w0, #1
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GH_N,8,3                       ; @GH_N
	.comm	_MAX_CLUSTER_SERVERS,8,3        ; @MAX_CLUSTER_SERVERS
	.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	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gather_heap_insert: %d elements (size %d)\n"

	.comm	_GH_total,4,2                   ; @GH_total
	.comm	_GH_E,8,3                       ; @GH_E
	.comm	_GH,8,3                         ; @GH
	.no_dead_strip	_gather_heap_insert
.subsections_via_symbols
