	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResetSequence                  ## -- Begin function ResetSequence
	.p2align	4, 0x90
_ResetSequence:                         ## @ResetSequence
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	leaq	-40(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	callq	_init_sequence
	movq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_read_seq_tuple
	movq	_SEQRELID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_2:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	leaq	-28(%rbp), %rdi
	callq	_heap_copytuple
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	callq	_UnlockReleaseBuffer
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movl	%r14d, 16(%rax)
	movl	$0, (%rax)
	movq	$0, 8(%rax)
	movq	-24(%rbp), %rdi
	movq	(%rdi), %rax
	movl	16(%rax), %esi
	callq	_RelationSetNewRelfilenode
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	-24(%rbp), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	_InvalidMultiXactId@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	-24(%rbp), %rdi
	movl	%ebx, %esi
	callq	_fill_seq_with_data
	movq	-40(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	movq	-24(%rbp), %rdi
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relation_close
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEQRELID,4,2                   ## @SEQRELID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache lookup failed for sequence %u"

	.comm	_InvalidTransactionId,8,3       ## @InvalidTransactionId
	.comm	_InvalidMultiXactId,8,3         ## @InvalidMultiXactId
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResetSequence                  ; -- Begin function ResetSequence
	.p2align	2
_ResetSequence:                         ; @ResetSequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	add	x1, sp, #16
	add	x2, sp, #24
	bl	_init_sequence
	ldr	x0, [sp, #24]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_read_seq_tuple
Lloh0:
	adrp	x8, _SEQRELID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEQRELID@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCache1
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
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
	mov	x2, x19
	bl	_elog
LBB0_2:
	mov	x0, x20
	bl	_GETSTRUCT
	ldr	w21, [x0]
	mov	x0, x20
	bl	_ReleaseSysCache
	add	x0, sp, #8
	bl	_heap_copytuple
	mov	x19, x0
	ldr	w0, [sp, #12]
	bl	_UnlockReleaseBuffer
	mov	x0, x19
	bl	_GETSTRUCT
	str	w21, [x0, #16]
	str	wzr, [x0]
	str	xzr, [x0, #8]
	ldr	x0, [sp, #24]
	ldr	x8, [x0]
	ldr	w1, [x8, #16]
	bl	_RelationSetNewRelfilenode
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _InvalidTransactionId@GOTPAGE
Lloh9:
	ldr	x9, [x9, _InvalidTransactionId@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
Lloh11:
	adrp	x9, _InvalidMultiXactId@GOTPAGE
Lloh12:
	ldr	x9, [x9, _InvalidMultiXactId@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [sp, #24]
	mov	x1, x19
	bl	_fill_seq_with_data
	ldr	x8, [sp, #16]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	ldr	x0, [sp, #24]
Lloh14:
	adrp	x8, _NoLock@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_relation_close
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SEQRELID,4,2                   ; @SEQRELID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache lookup failed for sequence %u"

	.comm	_InvalidTransactionId,8,3       ; @InvalidTransactionId
	.comm	_InvalidMultiXactId,8,3         ; @InvalidMultiXactId
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
