	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_copy_read_pointer   ## -- Begin function tuplestore_copy_read_pointer
	.p2align	4, 0x90
_tuplestore_copy_read_pointer:          ## @tuplestore_copy_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	%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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	movl	$0, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	%r14d, (%r12)
	setg	%dil
LBB0_2:
	movq	32(%r12), %r13
	callq	_Assert
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	%r15d, (%r12)
	setg	%bl
LBB0_4:
	movl	%ebx, %edi
	callq	_Assert
	cmpl	%r15d, %r14d
	jne	LBB0_5
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movslq	%r14d, %rax
	movslq	%r15d, %rcx
	leaq	(%rax,%rax,2), %rdx
	leaq	(%rcx,%rcx,2), %r9
	leaq	(,%rdx,8), %rcx
	addq	%r13, %rcx
	leaq	(,%r9,8), %rdx
	addq	%r13, %rdx
	movq	(%rdx), %rsi
	cmpq	(%rcx), %rsi
	movq	16(%rcx), %rsi
	movq	%rsi, 16(%rdx)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rdx)
	je	LBB0_15
## %bb.6:
	movq	32(%r12), %r8
	movq	(%r8), %rcx
	movl	(%r12), %edx
	cmpl	$2, %edx
	jl	LBB0_14
## %bb.7:
	leaq	-1(%rdx), %rdi
	addq	$-2, %rdx
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$3, %rdx
	jae	LBB0_9
## %bb.8:
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_9:
	leaq	96(%r8), %rdx
	andq	$-4, %rdi
	negq	%rdi
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	orl	-72(%rdx), %ecx
	orl	-48(%rdx), %ecx
	orl	-24(%rdx), %ecx
	movslq	%ecx, %rcx
	orq	(%rdx), %rcx
	addq	$96, %rdx
	leaq	(%rdi,%rbx), %rax
	addq	$4, %rax
	addq	$4, %rbx
	cmpq	$1, %rax
	jne	LBB0_10
LBB0_11:
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	leaq	(%rbx,%rbx,2), %rax
	leaq	(%r8,%rax,8), %rdx
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rcx
	orq	(%rdx,%rdi), %rcx
	addq	$24, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_13
LBB0_14:
	movl	%ecx, 4(%r12)
LBB0_15:
	movl	8(%r12), %ecx
	cmpl	$128, %ecx
	je	LBB0_24
## %bb.16:
	cmpl	$130, %ecx
	je	LBB0_24
## %bb.17:
	cmpl	$129, %ecx
	jne	LBB0_28
## %bb.18:
	movl	12(%r12), %ecx
	cmpl	%r15d, %ecx
	jne	LBB0_25
## %bb.19:
	cmpl	$0, 16(%r13,%r9,8)
	movl	16(%r12), %edi
	je	LBB0_23
## %bb.20:
	movl	20(%r12), %edx
	movl	24(%r12), %esi
	jmp	LBB0_21
LBB0_28:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_25:
	cmpl	%r14d, %ecx
	jne	LBB0_24
## %bb.26:
	cmpl	$0, 16(%r13,%r9,8)
	jne	LBB0_24
## %bb.27:
	movl	16(%r12), %edi
	leaq	12(,%r9,8), %rsi
	addq	%r13, %rsi
	leaq	8(,%r9,8), %rdx
	addq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BufFileTell                    ## TAILCALL
LBB0_23:
	movl	8(%r13,%r9,8), %edx
	movl	12(%r13,%r9,8), %esi
LBB0_21:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_BufFileSeek
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.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_copy_read_pointer   ; -- Begin function tuplestore_copy_read_pointer
	.p2align	2
_tuplestore_copy_read_pointer:          ; @tuplestore_copy_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w20
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldr	x22, [x19, #32]
	bl	_Assert
	tbnz	w21, #31, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, w21
	cset	w0, gt
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_Assert
	cmp	w20, w21
	b.ne	LBB0_8
LBB0_7:
	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
LBB0_8:
	mov	w8, #24
	smaddl	x9, w20, w8, x22
	smaddl	x8, w21, w8, x22
	ldr	x10, [x8]
	ldr	x11, [x9]
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
	cmp	x10, x11
	b.eq	LBB0_13
; %bb.9:
	ldr	x9, [x19, #32]
	ldr	x8, [x9]
	ldr	w10, [x19]
	cmp	w10, #2
	b.lt	LBB0_12
; %bb.10:
	add	x9, x9, #24
	sub	x10, x10, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #24
	sxtw	x8, w8
	orr	x8, x11, x8
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:
	str	w8, [x19, #4]
LBB0_13:
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.14:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.15:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.16:
	sxtw	x8, w21
	ldr	w9, [x19, #12]
	cmp	w9, w21
	b.ne	LBB0_20
; %bb.17:
	mov	w9, #24
	madd	x9, x8, x9, x22
	ldr	w9, [x9, #16]
	ldr	w0, [x19, #16]
	cbz	w9, LBB0_23
; %bb.18:
	ldp	w2, w1, [x19, #20]
	b	LBB0_24
LBB0_19:
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
	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
	b	_elog
LBB0_20:
	cmp	w9, w20
	b.ne	LBB0_7
; %bb.21:
	mov	w9, #24
	madd	x9, x8, x9, x22
	ldr	w9, [x9, #16]
	cbnz	w9, LBB0_7
; %bb.22:
	ldr	w0, [x19, #16]
	mov	w9, #24
	madd	x8, x8, x9, x22
	add	x1, x8, #12
	add	x2, x8, #8
	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
	b	_BufFileTell
LBB0_23:
	mov	w9, #24
	madd	x8, x8, x9, x22
	ldp	w2, w1, [x8, #8]
LBB0_24:
Lloh5:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	bl	_BufFileSeek
	cbz	w0, LBB0_7
; %bb.25:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [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, x19
	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
	b	_ereport
	.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
