	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextval_internal               ## -- Begin function nextval_internal
	.p2align	4, 0x90
_nextval_internal:                      ## @nextval_internal
	.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
	subq	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-184(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	callq	_init_sequence
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	-184(%rbp), %rax
	movl	32(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_USAGE@GOTPCREL(%rip), %rcx
	movq	_ACL_UPDATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_class_aclcheck
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-176(%rbp), %rdi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movq	-176(%rbp), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_PreventCommandIfReadOnly
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_PreventCommandIfParallelMode
	movq	-184(%rbp), %rax
	movq	(%rax), %rcx
	cmpq	8(%rax), %rcx
	jne	LBB0_6
## %bb.7:
	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_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_9:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movq	(%rax), %r14
	movq	8(%rax), %rcx
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	movq	16(%rax), %rcx
	movq	%rcx, -216(%rbp)                ## 8-byte Spill
	movq	24(%rax), %r12
	movl	32(%rax), %eax
	movl	%eax, -188(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_ReleaseSysCache
	movq	-176(%rbp), %rdi
	leaq	-164(%rbp), %rsi
	leaq	-280(%rbp), %rdx
	callq	_read_seq_tuple
	movq	%rax, %rbx
	movl	-164(%rbp), %edi
	callq	_BufferGetPage
	movl	%eax, -204(%rbp)                ## 4-byte Spill
	movq	-184(%rbp), %rax
	movq	%r14, 24(%rax)
	movl	16(%rbx), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	sete	%r13b
	movq	%r12, %r15
	subq	%r13, %r15
	movq	(%rbx), %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	testl	%eax, %eax
	movq	%rbx, -256(%rbp)                ## 8-byte Spill
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	cmpq	%r15, %rax
	jl	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetRedoRecPtr
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movl	-204(%rbp), %edi                ## 4-byte Reload
	callq	_PageGetLSN
	movq	_SEQ_LOG_VALS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	%r15, %rdi
	xorl	%ecx, %ecx
	cmpq	-232(%rbp), %rax                ## 8-byte Folded Reload
	setle	%cl
	movl	%ecx, -208(%rbp)                ## 4-byte Spill
	cmovleq	%rdi, %r15
	cmovgq	%rbx, %rdi
	jmp	LBB0_13
LBB0_6:
	movl	16(%rax), %edi
	callq	_Assert
	movq	-184(%rbp), %rax
	xorl	%edi, %edi
	cmpq	$0, 24(%rax)
	setne	%dil
	callq	_Assert
	movq	-184(%rbp), %rax
	movq	24(%rax), %rcx
	addq	%rcx, (%rax)
	movq	-176(%rbp), %rdi
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relation_close
	movq	-184(%rbp), %rax
	movq	_last_used_seq@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	(%rax), %rax
	jmp	LBB0_44
LBB0_11:
	movq	_SEQ_LOG_VALS@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movl	$1, -208(%rbp)                  ## 4-byte Folded Spill
	movq	%r15, %rdi
LBB0_13:
	testq	%r15, %r15
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	movq	-216(%rbp), %r9                 ## 8-byte Reload
	je	LBB0_14
## %bb.15:
	movq	%r9, %rax
	subq	%r14, %rax
	movq	%rax, -264(%rbp)                ## 8-byte Spill
	movq	%rcx, %rax
	subq	%r14, %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	movq	%rdx, %rax
	movq	%rdx, %r8
	movq	%r14, -248(%rbp)                ## 8-byte Spill
	movq	%r12, -240(%rbp)                ## 8-byte Spill
	movl	-188(%rbp), %edx                ## 4-byte Reload
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rax
	testq	%r15, %r15
	je	LBB0_35
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	jle	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testq	%rcx, %rcx
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	-232(%rbp), %rax                ## 8-byte Folded Reload
	jg	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rax,%r14), %rbx
	testq	%rcx, %rcx
	jns	LBB0_32
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%rcx, %rbx
	jle	LBB0_32
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%r13, %r13
	jg	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r9, %rbx
	testl	%edx, %edx
	jne	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_INT64_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdi, %r12
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	movq	%r8, %r14
	callq	_snprintf
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-176(%rbp), %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	-188(%rbp), %edx                ## 4-byte Reload
	movq	-216(%rbp), %r9                 ## 8-byte Reload
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %r8
	movq	-248(%rbp), %r14                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-240(%rbp), %r12                ## 8-byte Reload
	movq	%r9, %rbx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%r9, %r9
	jns	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	-264(%rbp), %rax                ## 8-byte Folded Reload
	jl	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rax,%r14), %rbx
	testq	%r9, %r9
	js	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r9, %rbx
	jge	LBB0_32
LBB0_28:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%r13, %r13
	jg	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rcx, %rbx
	testl	%edx, %edx
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_INT64_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdi, %r12
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	movq	%r8, %r14
	movq	%r9, %rcx
	callq	_snprintf
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-176(%rbp), %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	-188(%rbp), %edx                ## 4-byte Reload
	movq	-216(%rbp), %r9                 ## 8-byte Reload
	movq	-224(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %r8
	movq	-248(%rbp), %r14                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-240(%rbp), %r12                ## 8-byte Reload
	movq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_16 Depth=1
	decq	%r15
	cmpq	%r12, %r13
	jge	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_16 Depth=1
	decq	%rdi
	testq	%r13, %r13
	leaq	1(%r13), %r13
	cmoveq	%rbx, %r8
	movq	%rbx, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_34
LBB0_14:
	xorl	%r15d, %r15d
	movq	-200(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %r14
	movq	%r12, %rbx
	jmp	LBB0_37
LBB0_35:
	xorl	%r15d, %r15d
	jmp	LBB0_36
LBB0_29:
	movq	%rax, %rbx
LBB0_36:
	movq	-200(%rbp), %r12                ## 8-byte Reload
	movq	%r8, %r14
LBB0_37:
	subq	%r15, %rdi
	movq	%rdi, %r15
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movq	-184(%rbp), %rax
	movq	%r14, %r13
	movq	%r14, (%rax)
	movq	%r12, 8(%rax)
	movl	$1, 16(%rax)
	movq	_last_used_seq@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, -208(%rbp)                  ## 4-byte Folded Reload
	movq	-256(%rbp), %r14                ## 8-byte Reload
	je	LBB0_42
## %bb.38:
	movq	-176(%rbp), %rdi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	xorl	%eax, %eax
	callq	_GetTopTransactionId
LBB0_40:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	-164(%rbp), %edi
	callq	_MarkBufferDirty
	movq	-176(%rbp), %rdi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_43
## %bb.41:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movl	-164(%rbp), %esi
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_XLogRegisterBuffer
	movq	%rbx, (%r14)
	movl	$1, 16(%r14)
	movq	$0, 8(%r14)
	movq	-176(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	leaq	-160(%rbp), %rdi
	movl	$4, %esi
	callq	_XLogRegisterData
	movq	-272(%rbp), %rdi
	movl	-280(%rbp), %esi
	callq	_XLogRegisterData
	movq	_RM_SEQ_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_SEQ_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	-204(%rbp), %edi                ## 4-byte Reload
	movq	%rax, %rsi
	callq	_PageSetLSN
	jmp	LBB0_43
LBB0_42:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	-164(%rbp), %edi
	callq	_MarkBufferDirty
LBB0_43:
	movq	%r12, (%r14)
	movl	$1, 16(%r14)
	movq	%r15, 8(%r14)
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	-164(%rbp), %edi
	callq	_UnlockReleaseBuffer
	movq	-176(%rbp), %rdi
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relation_close
	movq	%r13, %rax
LBB0_44:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_46
## %bb.45:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_USAGE,4,2                  ## @ACL_USAGE
	.comm	_ACL_UPDATE,4,2                 ## @ACL_UPDATE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied for sequence %s"

L_.str.1:                               ## @.str.1
	.asciz	"nextval()"

	.comm	_NoLock,4,2                     ## @NoLock
	.comm	_last_used_seq,8,3              ## @last_used_seq
	.comm	_SEQRELID,4,2                   ## @SEQRELID
L_.str.2:                               ## @.str.2
	.asciz	"cache lookup failed for sequence %u"

	.comm	_SEQ_LOG_VALS,8,3               ## @SEQ_LOG_VALS
	.comm	_INT64_FORMAT,8,3               ## @INT64_FORMAT
	.comm	_ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED,4,2 ## @ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED
L_.str.3:                               ## @.str.3
	.asciz	"nextval: reached maximum value of sequence \"%s\" (%s)"

L_.str.4:                               ## @.str.4
	.asciz	"nextval: reached minimum value of sequence \"%s\" (%s)"

	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_RM_SEQ_ID,4,2                  ## @RM_SEQ_ID
	.comm	_XLOG_SEQ_LOG,4,2               ## @XLOG_SEQ_LOG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextval_internal               ; -- Begin function nextval_internal
	.p2align	2
_nextval_internal:                      ; @nextval_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x1, sp, #80
	add	x2, sp, #72
	bl	_init_sequence
	cbz	w20, LBB0_3
; %bb.1:
	ldr	x8, [sp, #80]
	ldr	w20, [x8, #32]
	bl	_GetUserId
	mov	x1, x0
Lloh3:
	adrp	x8, _ACL_USAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACL_USAGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ACL_UPDATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ACL_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_pg_class_aclcheck
Lloh9:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
Lloh15:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [sp, #72]
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_3:
	ldr	x8, [sp, #72]
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PreventCommandIfReadOnly
LBB0_5:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_PreventCommandIfParallelMode
	ldr	x8, [sp, #80]
	ldp	x9, x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_28
; %bb.6:
Lloh24:
	adrp	x8, _SEQRELID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SEQRELID@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SearchSysCache1
	mov	x20, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_8
; %bb.7:
Lloh27:
	adrp	x8, _ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_8:
	mov	x0, x20
	bl	_GETSTRUCT
	ldp	x28, x22, [x0]
	ldp	x23, x25, [x0, #16]
	ldr	w8, [x0, #32]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_ReleaseSysCache
	ldr	x0, [sp, #72]
	add	x1, sp, #68
	add	x2, sp, #48
	bl	_read_seq_tuple
	mov	x20, x0
	ldr	w0, [sp, #68]
	bl	_BufferGetPage
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	ldr	x8, [sp, #80]
	str	x28, [x8, #24]
	ldr	x27, [x20]
	ldr	w8, [x20, #16]
	cmp	w8, #0
	cset	w24, eq
	sub	x19, x25, x24
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	cbz	w8, LBB0_29
; %bb.9:
	ldr	x26, [x20, #8]
	cmp	x26, x19
	b.lt	LBB0_29
; %bb.10:
	bl	_GetRedoRecPtr
	mov	x21, x0
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_PageGetLSN
Lloh32:
	adrp	x8, _SEQ_LOG_VALS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SEQ_LOG_VALS@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	add	x8, x8, x19
	cmp	x0, x21
	csel	x20, x19, x8, gt
	cset	w9, le
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	csel	x19, x26, x8, gt
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	cbz	x20, LBB0_30
LBB0_11:
	sub	x8, x23, x28
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sub	x8, x22, x28
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	x26, x27
	mov	x21, x27
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	x8, x19, #1
	cmp	x24, #0
	csel	x9, x26, x21, eq
	cmp	x24, x25
	csel	x27, x27, x26, ge
	csel	x21, x21, x9, ge
	cinc	x24, x24, lt
	csel	x19, x19, x8, ge
	sub	x20, x20, #1
	cbz	x20, LBB0_32
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x8, x26
	cmp	x28, #1
	b.lt	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	tbnz	x22, #63, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.gt	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x8, x28
	tbz	x22, #63, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x26, x22
	b.le	LBB0_12
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x24, #0
	b.gt	LBB0_31
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x26, x23
	cbnz	w10, LBB0_12
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh35:
	adrp	x8, _INT64_FORMAT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _INT64_FORMAT@GOTPAGEOFF]
Lloh37:
	ldr	x2, [x8]
	add	x0, sp, #88
	mov	w1, #100
	mov	x3, x22
	bl	_snprintf
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w26, [x8]
Lloh41:
	adrp	x8, _ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [sp, #72]
	bl	_RelationGetRelationName
	mov	x1, x0
	add	x8, sp, #88
	str	x8, [sp]
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	mov	x26, x23
	b	LBB0_12
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	tbz	x23, #63, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.lt	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x8, x28
	tbnz	x23, #63, LBB0_12
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	x26, x23
	b.ge	LBB0_12
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
	cmp	x24, #0
	b.gt	LBB0_31
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x26, x22
	cbnz	w10, LBB0_12
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh46:
	adrp	x8, _INT64_FORMAT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _INT64_FORMAT@GOTPAGEOFF]
Lloh48:
	ldr	x2, [x8]
	add	x0, sp, #88
	mov	w1, #100
	mov	x3, x23
	bl	_snprintf
Lloh49:
	adrp	x8, _ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w26, [x8]
Lloh52:
	adrp	x8, _ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [sp, #72]
	bl	_RelationGetRelationName
	mov	x1, x0
	add	x8, sp, #88
	str	x8, [sp]
Lloh55:
	adrp	x0, l_.str.4@PAGE
Lloh56:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	mov	x26, x22
	b	LBB0_12
LBB0_28:
	ldr	w0, [x8, #16]
	bl	_Assert
	ldr	x8, [sp, #80]
	ldr	x8, [x8, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [sp, #80]
	ldr	x9, [x8, #24]
	ldr	x10, [x8]
	add	x9, x10, x9
	str	x9, [x8]
	ldr	x0, [sp, #72]
Lloh57:
	adrp	x8, _NoLock@GOTPAGE
Lloh58:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	bl	_relation_close
	ldr	x8, [sp, #80]
Lloh60:
	adrp	x9, _last_used_seq@GOTPAGE
Lloh61:
	ldr	x9, [x9, _last_used_seq@GOTPAGEOFF]
Lloh62:
	str	x8, [x9]
	ldr	x21, [x8]
	b	LBB0_39
LBB0_29:
Lloh63:
	adrp	x8, _SEQ_LOG_VALS@GOTPAGE
Lloh64:
	ldr	x8, [x8, _SEQ_LOG_VALS@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	add	x20, x8, x19
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x20
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	cbnz	x20, LBB0_11
LBB0_30:
	mov	x21, x27
	mov	x26, x27
	b	LBB0_32
LBB0_31:
	mov	x26, x8
LBB0_32:
	sub	x19, x19, x20
	lsr	x8, x19, #63
	eor	w0, w8, #0x1
	bl	_Assert
	ldr	x8, [sp, #80]
	stp	x21, x27, [x8]
	mov	w9, #1
	str	w9, [x8, #16]
Lloh66:
	adrp	x9, _last_used_seq@GOTPAGE
Lloh67:
	ldr	x9, [x9, _last_used_seq@GOTPAGEOFF]
Lloh68:
	str	x8, [x9]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_37
; %bb.33:
	ldr	x0, [sp, #72]
	bl	_RelationNeedsWAL
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbz	x0, LBB0_35
; %bb.34:
	bl	_GetTopTransactionId
LBB0_35:
	bl	_START_CRIT_SECTION
	ldr	w0, [sp, #68]
	bl	_MarkBufferDirty
	ldr	x0, [sp, #72]
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_38
; %bb.36:
	bl	_XLogBeginInsert
	ldr	w1, [sp, #68]
Lloh69:
	adrp	x8, _REGBUF_WILL_INIT@GOTPAGE
Lloh70:
	ldr	x8, [x8, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_XLogRegisterBuffer
	mov	w8, #1
	str	w8, [x20, #16]
	stp	x26, xzr, [x20]
	ldr	x8, [sp, #72]
	ldr	w8, [x8]
	str	w8, [sp, #88]
	add	x0, sp, #88
	mov	w1, #4
	bl	_XLogRegisterData
	ldr	x0, [sp, #56]
	ldr	w1, [sp, #48]
	bl	_XLogRegisterData
Lloh72:
	adrp	x8, _RM_SEQ_ID@GOTPAGE
Lloh73:
	ldr	x8, [x8, _RM_SEQ_ID@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
Lloh75:
	adrp	x8, _XLOG_SEQ_LOG@GOTPAGE
Lloh76:
	ldr	x8, [x8, _XLOG_SEQ_LOG@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_PageSetLSN
	b	LBB0_38
LBB0_37:
	bl	_START_CRIT_SECTION
	ldr	w0, [sp, #68]
	bl	_MarkBufferDirty
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
LBB0_38:
	mov	w8, #1
	str	w8, [x20, #16]
	stp	x27, x19, [x20]
	bl	_END_CRIT_SECTION
	ldr	w0, [sp, #68]
	bl	_UnlockReleaseBuffer
	ldr	x0, [sp, #72]
Lloh78:
	adrp	x8, _NoLock@GOTPAGE
Lloh79:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	bl	_relation_close
LBB0_39:
	ldur	x8, [x29, #-96]
Lloh81:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh82:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.40:
	mov	x0, x21
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotStr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_USAGE,4,2                  ; @ACL_USAGE
	.comm	_ACL_UPDATE,4,2                 ; @ACL_UPDATE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied for sequence %s"

l_.str.1:                               ; @.str.1
	.asciz	"nextval()"

	.comm	_NoLock,4,2                     ; @NoLock
	.comm	_last_used_seq,8,3              ; @last_used_seq
	.comm	_SEQRELID,4,2                   ; @SEQRELID
l_.str.2:                               ; @.str.2
	.asciz	"cache lookup failed for sequence %u"

	.comm	_SEQ_LOG_VALS,8,3               ; @SEQ_LOG_VALS
	.comm	_INT64_FORMAT,8,3               ; @INT64_FORMAT
	.comm	_ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED,4,2 ; @ERRCODE_SEQUENCE_GENERATOR_LIMIT_EXCEEDED
l_.str.3:                               ; @.str.3
	.asciz	"nextval: reached maximum value of sequence \"%s\" (%s)"

l_.str.4:                               ; @.str.4
	.asciz	"nextval: reached minimum value of sequence \"%s\" (%s)"

	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_RM_SEQ_ID,4,2                  ; @RM_SEQ_ID
	.comm	_XLOG_SEQ_LOG,4,2               ; @XLOG_SEQ_LOG
.subsections_via_symbols
