	.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
	cmpl	$0, (%rax)
	je	LBB0_16
## %bb.1:
	movq	_GH@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	8(%rcx), %rbx
	movslq	(%rbx), %rax
	addq	$6, %rax
	movl	%eax, (%rbx)
	decl	20(%rbx)
	je	LBB0_2
## %bb.4:
	cmpq	%rax, 8(%rbx)
	jg	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_assert
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_load_heap_v
	movq	_GH_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_GH_N@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rdx
	movl	%edx, %eax
	decl	%eax
	movl	%eax, (%rsi)
	je	LBB0_16
## %bb.3:
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_7:
	movl	$1, %ebx
	cmpl	$2, %eax
	jl	LBB0_15
## %bb.8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %r13d
	movl	$1, %r12d
	movl	$2, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %r14d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rax
	movl	%r14d, %ebx
	orl	$1, %ebx
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rcx
	movslq	%r14d, %rdx
	movq	(%rax,%rdx,8), %rax
	movl	16(%rcx), %edi
	movl	16(%rax), %esi
	callq	_news_id_compare
	testq	%rax, %rax
	js	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%r14d, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rax
	movslq	%ebx, %r14
	movq	(%rax,%r14,8), %rax
	movl	16(%rax), %esi
	movl	%r13d, %edi
	callq	_news_id_compare
	testq	%rax, %rax
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r14,8), %rcx
	movslq	%r12d, %rdx
	movq	%rcx, (%rax,%rdx,8)
	addl	%r14d, %r14d
	movq	_GH_N@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, %r12d
	cmpl	%eax, %r14d
	jle	LBB0_9
	jmp	LBB0_15
LBB0_13:
	movl	%r12d, %ebx
LBB0_15:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
LBB0_16:
	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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x22, _GH_N@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GH_N@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_16
; %bb.1:
Lloh2:
	adrp	x21, _GH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GH@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x19, [x9, #8]
	ldrsw	x8, [x19]
	add	x8, x8, #6
	str	w8, [x19]
	ldr	w10, [x19, #20]
	subs	w10, w10, #1
	str	w10, [x19, #20]
	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, [x22]
	cmp	w8, #2
	b.ge	LBB0_8
LBB0_5:
	mov	w24, #1
	b	LBB0_15
LBB0_6:
	ldrsw	x10, [x22]
	subs	w8, w10, #1
	str	w8, [x22]
	b.eq	LBB0_16
; %bb.7:
	ldr	x19, [x9, x10, lsl #3]
	cmp	w8, #2
	b.lt	LBB0_5
LBB0_8:
	ldr	w20, [x19, #16]
	mov	w23, #1
	mov	w25, #2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, w8
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	sxtw	x9, w25
	orr	x24, x9, #0x1
	ldr	x9, [x8, x24, lsl #3]
	ldr	x8, [x8, w25, sxtw #3]
	ldr	w0, [x9, #16]
	ldr	w1, [x8, #16]
	bl	_news_id_compare
	cmp	x0, #0
	csel	w24, w24, w25, lt
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x25
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, w24, sxtw #3]
	ldr	w1, [x8, #16]
	mov	x0, x20
	bl	_news_id_compare
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x8, w24
	ldr	x9, [x21]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x9, w23, sxtw #3]
	lsl	w25, w24, #1
	ldr	w8, [x22]
	mov	x23, x24
	cmp	w25, w8
	b.le	LBB0_9
	b	LBB0_15
LBB0_14:
	mov	x24, x23
LBB0_15:
	ldr	x8, [x21]
	str	x19, [x8, w24, sxtw #3]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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
