	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gather_readnext
_gather_readnext:                       ## @gather_readnext
	.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, %rbx
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %r14
	movq	_MyLatch@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setb	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%rax,8), %rdi
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_TupleQueueReaderNext
	cmpl	$0, -44(%rbp)
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rdx
	decq	%rdx
	movq	%rdx, 8(%rbx)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	leaq	(%rcx,%rax,8), %rdi
	leaq	(%rcx,%rax,8), %rsi
	addq	$8, %rsi
	subl	%eax, %edx
	shll	$3, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jb	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rbx)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rax, %rax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	incq	%rax
	cmpq	%rcx, %rax
	cmovaeq	%r15, %rax
	movq	%rax, (%rbx)
	incl	%r13d
	movslq	%r13d, %rax
	cmpq	%rax, %rcx
	ja	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_WAIT_EVENT_EXECUTE_GATHER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_WaitLatch
	movl	(%r12), %edi
	callq	_ResetLatch
	jmp	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_ExecShutdownGatherWorkers
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ## @WL_EXIT_ON_PM_DEATH
	.comm	_WAIT_EVENT_EXECUTE_GATHER,4,2  ## @WAIT_EVENT_EXECUTE_GATHER
	.no_dead_strip	_gather_readnext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gather_readnext
_gather_readnext:                       ; @gather_readnext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	mov	w24, #0
Lloh0:
	adrp	x20, _MyLatch@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MyLatch@GOTPAGEOFF]
Lloh2:
	adrp	x21, _WL_LATCH_SET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _WL_LATCH_SET@GOTPAGEOFF]
Lloh4:
	adrp	x22, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh5:
	ldr	x22, [x22, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
Lloh6:
	adrp	x23, _WAIT_EVENT_EXECUTE_GATHER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _WAIT_EVENT_EXECUTE_GATHER@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldp	x8, x9, [x19]
	cmp	x8, x9
	cset	w0, lo
	bl	_Assert
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	add	x2, sp, #12
	mov	w1, #1
	bl	_TupleQueueReaderNext
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x19, #24]
	ldr	x10, [x19]
	add	x0, x9, x10, lsl #3
	add	x1, x0, #8
	sub	w8, w8, w10
	lsl	w2, w8, #3
	bl	_memmove
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.lo	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x19]
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x8, x9, [x19]
	add	x10, x8, #1
	cmp	x10, x9
	csinc	x8, xzr, x8, hs
	str	x8, [x19]
	add	w24, w24, #1
	cmp	x9, w24, sxtw
	b.hi	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w1, w9, w8
	ldr	w3, [x23]
	mov	w2, #0
	bl	_WaitLatch
	ldr	w0, [x20]
	bl	_ResetLatch
	mov	w24, #0
	b	LBB0_1
LBB0_9:
	mov	x0, x19
	bl	_ExecShutdownGatherWorkers
LBB0_10:
	mov	x0, #0
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ; @WL_EXIT_ON_PM_DEATH
	.comm	_WAIT_EVENT_EXECUTE_GATHER,4,2  ; @WAIT_EVENT_EXECUTE_GATHER
	.no_dead_strip	_gather_readnext
.subsections_via_symbols
