	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_alloc_read_pointer  ## -- Begin function tuplestore_alloc_read_pointer
	.p2align	4, 0x90
_tuplestore_alloc_read_pointer:         ## @tuplestore_alloc_read_pointer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_TSS_INMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
LBB0_2:
	movl	16(%rbx), %eax
	notl	%eax
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	24(%rbx), %rax
	movq	32(%rbx), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_6
## %bb.5:
	movq	40(%rbx), %rcx
	jmp	LBB0_7
LBB0_6:
	leal	(%rsi,%rsi), %eax
	movq	40(%rbx), %rdi
	movslq	%eax, %r15
	shll	$3, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc
	movq	%rax, %rcx
	movq	%rax, 40(%rbx)
	movq	%r15, 32(%rbx)
	movq	24(%rbx), %rax
LBB0_7:
	movl	%r14d, (%rcx,%rax,4)
	orl	%r14d, 16(%rbx)
	leaq	1(%rax), %rcx
	movq	%rcx, 24(%rbx)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSS_INMEM,8,3                  ## @TSS_INMEM
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too late to require new tuplestore eflags"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_alloc_read_pointer  ; -- Begin function tuplestore_alloc_read_pointer
	.p2align	2
_tuplestore_alloc_read_pointer:         ; @tuplestore_alloc_read_pointer
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TSS_INMEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSS_INMEM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
LBB0_2:
	ldr	w8, [x19, #16]
	orr	w9, w8, w20
	cmp	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_4:
	ldp	x0, x8, [x19, #24]
	cmp	x0, x8
	b.hs	LBB0_6
; %bb.5:
	ldr	x8, [x19, #40]
	b	LBB0_7
LBB0_6:
	lsl	w9, w8, #1
	ldr	x0, [x19, #40]
	sxtw	x21, w9
	lsl	w1, w8, #3
	bl	_repalloc
	mov	x8, x0
	stp	x21, x0, [x19, #32]
	ldr	x0, [x19, #24]
LBB0_7:
	str	w20, [x8, x0, lsl #2]
	ldr	w8, [x19, #16]
	orr	w8, w8, w20
	str	w8, [x19, #16]
	add	x8, x0, #1
	str	x8, [x19, #24]
                                        ; kill: def $w0 killed $w0 killed $x0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TSS_INMEM,8,3                  ; @TSS_INMEM
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too late to require new tuplestore eflags"

.subsections_via_symbols
