	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TupleQueueReaderNext           ## -- Begin function TupleQueueReaderNext
	.p2align	4, 0x90
_TupleQueueReaderNext:                  ## @TupleQueueReaderNext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, %ecx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	movl	(%rdi), %edi
	leaq	-12(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	callq	_shm_mq_receive
	movq	_SHM_MQ_DETACHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movl	$1, (%rbx)
	jmp	LBB0_8
LBB0_5:
	movq	_SHM_MQ_WOULD_BLOCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_SHM_MQ_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	leaq	-32(%rbp), %rdi
	callq	_ItemPointerSetInvalid
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -40(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_heap_copytuple
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHM_MQ_DETACHED,8,3            ## @SHM_MQ_DETACHED
	.comm	_SHM_MQ_WOULD_BLOCK,8,3         ## @SHM_MQ_WOULD_BLOCK
	.comm	_SHM_MQ_SUCCESS,8,3             ## @SHM_MQ_SUCCESS
	.comm	_InvalidOid,4,2                 ## @InvalidOid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TupleQueueReaderNext           ; -- Begin function TupleQueueReaderNext
	.p2align	2
_TupleQueueReaderNext:                  ; @TupleQueueReaderNext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x3, x1
	cbz	x2, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
	ldr	w0, [x0]
	add	x1, sp, #20
	add	x2, sp, #8
	bl	_shm_mq_receive
Lloh0:
	adrp	x8, _SHM_MQ_DETACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHM_MQ_DETACHED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, #0
	cbz	x19, LBB0_8
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _SHM_MQ_WOULD_BLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHM_MQ_WOULD_BLOCK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _SHM_MQ_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHM_MQ_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	add	x8, sp, #24
	add	x0, x8, #16
	bl	_ItemPointerSetInvalid
Lloh9:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #20]
	stp	w9, w8, [sp, #32]
	ldr	x8, [sp, #8]
	str	x8, [sp, #24]
	add	x0, sp, #24
	bl	_heap_copytuple
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SHM_MQ_DETACHED,8,3            ; @SHM_MQ_DETACHED
	.comm	_SHM_MQ_WOULD_BLOCK,8,3         ; @SHM_MQ_WOULD_BLOCK
	.comm	_SHM_MQ_SUCCESS,8,3             ; @SHM_MQ_SUCCESS
	.comm	_InvalidOid,4,2                 ; @InvalidOid
.subsections_via_symbols
