	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_select_read_pointer ## -- Begin function tuplestore_select_read_pointer
	.p2align	4, 0x90
_tuplestore_select_read_pointer:        ## @tuplestore_select_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r14)
	setg	%dil
LBB0_2:
	callq	_Assert
	movslq	4(%r14), %rax
	cmpl	%ebx, %eax
	je	LBB0_15
## %bb.3:
	movl	8(%r14), %ecx
	cmpl	$128, %ecx
	je	LBB0_14
## %bb.4:
	cmpl	$130, %ecx
	je	LBB0_14
## %bb.5:
	cmpl	$129, %ecx
	jne	LBB0_13
## %bb.6:
	movq	24(%r14), %r15
	movslq	%ebx, %r12
	leaq	(%rax,%rax,2), %rax
	cmpl	$0, 8(%r15,%rax,4)
	jne	LBB0_8
## %bb.7:
	movl	12(%r14), %edi
	leaq	(%r15,%rax,4), %rsi
	addq	$4, %rsi
	leaq	(%r15,%rax,4), %rdx
	callq	_BufFileTell
LBB0_8:
	leaq	(%r12,%r12,2), %rax
	cmpl	$0, 8(%r15,%rax,4)
	movl	12(%r14), %edi
	je	LBB0_12
## %bb.9:
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	jmp	LBB0_10
LBB0_13:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	jmp	LBB0_14
LBB0_12:
	movl	(%r15,%rax,4), %edx
	movl	4(%r15,%rax,4), %esi
LBB0_10:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_BufFileSeek
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_14:
	movl	%ebx, 4(%r14)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not seek in tuplestore temporary file: %m"

L_.str.1:                               ## @.str.1
	.asciz	"invalid tuplestore state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_select_read_pointer ; -- Begin function tuplestore_select_read_pointer
	.p2align	2
_tuplestore_select_read_pointer:        ; @tuplestore_select_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	x19, x1
	mov	x20, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldrsw	x8, [x20, #4]
	cmp	w8, w19
	b.eq	LBB0_16
; %bb.4:
	ldr	w9, [x20, #8]
	cmp	w9, #128
	b.eq	LBB0_15
; %bb.5:
	cmp	w9, #130
	b.eq	LBB0_15
; %bb.6:
	cmp	w9, #129
	b.ne	LBB0_11
; %bb.7:
	ldr	x21, [x20, #24]
	sxtw	x22, w19
	mov	w9, #12
	madd	x9, x8, x9, x21
	ldr	w9, [x9, #8]
	cbnz	w9, LBB0_9
; %bb.8:
	ldr	w0, [x20, #12]
	mov	w9, #12
	madd	x2, x8, x9, x21
	add	x1, x2, #4
	bl	_BufFileTell
LBB0_9:
	mov	w8, #12
	madd	x8, x22, x8, x21
	ldr	w8, [x8, #8]
	ldr	w0, [x20, #12]
	cbz	w8, LBB0_12
; %bb.10:
	ldp	w2, w1, [x20, #16]
	b	LBB0_13
LBB0_11:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	b	LBB0_15
LBB0_12:
	mov	w8, #12
	madd	x8, x22, x8, x21
	ldp	w2, w1, [x8]
LBB0_13:
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_BufFileSeek
	cbz	w0, LBB0_15
; %bb.14:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_15:
	str	w19, [x20, #4]
LBB0_16:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not seek in tuplestore temporary file: %m"

l_.str.1:                               ; @.str.1
	.asciz	"invalid tuplestore state"

.subsections_via_symbols
