	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplestore_rescan              ## -- Begin function tuplestore_rescan
	.p2align	4, 0x90
_tuplestore_rescan:                     ## @tuplestore_rescan
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	24(%rdi), %r14
	leaq	(%rax,%rax,2), %r15
	movq	_EXEC_FLAG_REWIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14,%r15,8), %edi
	callq	_Assert
	xorl	%edi, %edi
	cmpl	$0, 16(%rbx)
	sete	%dil
	callq	_Assert
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.3:
	movl	$0, 4(%r14,%r15,8)
	movl	$0, 20(%r14,%r15,8)
	jmp	LBB0_8
LBB0_7:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 4(%r14,%r15,8)
	jmp	LBB0_8
LBB0_4:
	movl	$0, 4(%r14,%r15,8)
	movl	12(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_BufFileSeek
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	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	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXEC_FLAG_REWIND,4,2           ## @EXEC_FLAG_REWIND
	.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_rescan              ; -- Begin function tuplestore_rescan
	.p2align	2
_tuplestore_rescan:                     ; @tuplestore_rescan
	.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, x0
	ldr	x20, [x0, #24]
	ldr	x21, [x0]
	mov	w8, #24
	mul	x8, x21, x8
	ldr	w8, [x20, x8]
Lloh0:
	adrp	x9, _EXEC_FLAG_REWIND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXEC_FLAG_REWIND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_Assert
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.3:
	mov	w8, #24
	madd	x8, x21, x8, x20
	str	wzr, [x8, #4]
	str	wzr, [x8, #20]
	b	LBB0_7
LBB0_4:
	mov	w8, #24
	madd	x8, x21, x8, x20
	stur	xzr, [x8, #12]
	stur	xzr, [x8, #4]
	b	LBB0_7
LBB0_5:
	mov	w8, #24
	madd	x8, x21, x8, x20
	str	wzr, [x8, #4]
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x2, #0
	bl	_BufFileSeek
	cbz	w0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	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
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:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EXEC_FLAG_REWIND,4,2           ; @EXEC_FLAG_REWIND
	.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
