	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_seq_with_data
_fill_seq_with_data:                    ## @fill_seq_with_data
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_P_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ReadBuffer
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_BufferGetBlockNumber
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movl	%r14d, %edi
	callq	_BufferGetPage
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_BufferGetPageSize
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_PageInit
	movl	%r12d, %edi
	callq	_PageGetSpecialPointer
	movq	_SEQ_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_BUFFER_LOCK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LockBuffer
	movq	8(%rbx), %rdi
	movq	_FrozenTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HeapTupleHeaderSetXmin
	movq	8(%rbx), %rdi
	callq	_HeapTupleHeaderSetXminFrozen
	movq	8(%rbx), %rdi
	movq	_FirstCommandId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HeapTupleHeaderSetCmin
	movq	8(%rbx), %rdi
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HeapTupleHeaderSetXmax
	movq	_HEAP_XMAX_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rdi
	orl	%eax, 4(%rdi)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	xorl	%esi, %esi
	callq	_ItemPointerSet
	movq	%r15, %rdi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_GetTopTransactionId
LBB0_2:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%r14d, %edi
	callq	_MarkBufferDirty
	movl	(%rbx), %edx
	movl	8(%rbx), %esi
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_PageAddItem
	cmpq	(%r13), %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	%r15, %rdi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_XLogRegisterBuffer
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$4, %esi
	callq	_XLogRegisterData
	movq	8(%rbx), %rdi
	movl	(%rbx), %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	%r12d, %edi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_6:
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movl	%r14d, %edi
	callq	_UnlockReleaseBuffer
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_NEW,4,2                      ## @P_NEW
	.comm	_SEQ_MAGIC,4,2                  ## @SEQ_MAGIC
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ## @BUFFER_LOCK_EXCLUSIVE
	.comm	_FrozenTransactionId,4,2        ## @FrozenTransactionId
	.comm	_FirstCommandId,4,2             ## @FirstCommandId
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_HEAP_XMAX_INVALID,4,2          ## @HEAP_XMAX_INVALID
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
	.comm	_InvalidOffsetNumber,4,2        ## @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add sequence tuple to page"

	.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
	.no_dead_strip	_fill_seq_with_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_seq_with_data
_fill_seq_with_data:                    ; @fill_seq_with_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _P_NEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_NEW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ReadBuffer
	mov	x19, x0
	bl	_BufferGetBlockNumber
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_BufferGetPage
	mov	x21, x0
	mov	x0, x19
	bl	_BufferGetPageSize
	mov	x1, x0
	mov	x0, x21
	mov	w2, #4
	bl	_PageInit
	mov	x0, x21
	bl	_PageGetSpecialPointer
Lloh3:
	adrp	x8, _SEQ_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEQ_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh6:
	adrp	x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BUFFER_LOCK_EXCLUSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_LockBuffer
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x8, _FrozenTransactionId@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FrozenTransactionId@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_HeapTupleHeaderSetXmin
	ldr	x0, [x20, #8]
	bl	_HeapTupleHeaderSetXminFrozen
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x8, _FirstCommandId@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FirstCommandId@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_HeapTupleHeaderSetCmin
	ldr	x0, [x20, #8]
Lloh15:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh16:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_HeapTupleHeaderSetXmax
Lloh18:
	adrp	x8, _HEAP_XMAX_INVALID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HEAP_XMAX_INVALID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x0, [x20, #8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
	str	w8, [x0, #4]
Lloh21:
	adrp	x23, _FirstOffsetNumber@GOTPAGE
Lloh22:
	ldr	x23, [x23, _FirstOffsetNumber@GOTPAGEOFF]
	ldr	x2, [x23]
	mov	w1, #0
	bl	_ItemPointerSet
	mov	x0, x22
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_2
; %bb.1:
	bl	_GetTopTransactionId
LBB0_2:
	bl	_START_CRIT_SECTION
	mov	x0, x19
	bl	_MarkBufferDirty
	ldr	w1, [x20, #8]
	ldr	w2, [x20]
Lloh23:
	adrp	x8, _InvalidOffsetNumber@GOTPAGE
Lloh24:
	ldr	x8, [x8, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	bl	_PageAddItem
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_4:
	mov	x0, x22
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_6
; %bb.5:
	bl	_XLogBeginInsert
Lloh31:
	adrp	x8, _REGBUF_WILL_INIT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x19
	bl	_XLogRegisterBuffer
	ldr	w8, [x22]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #4
	bl	_XLogRegisterData
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	bl	_XLogRegisterData
Lloh34:
	adrp	x8, _RM_SEQ_ID@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RM_SEQ_ID@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _XLOG_SEQ_LOG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _XLOG_SEQ_LOG@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	mov	x0, x21
	bl	_PageSetLSN
LBB0_6:
	bl	_END_CRIT_SECTION
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_P_NEW,4,2                      ; @P_NEW
	.comm	_SEQ_MAGIC,4,2                  ; @SEQ_MAGIC
	.comm	_BUFFER_LOCK_EXCLUSIVE,4,2      ; @BUFFER_LOCK_EXCLUSIVE
	.comm	_FrozenTransactionId,4,2        ; @FrozenTransactionId
	.comm	_FirstCommandId,4,2             ; @FirstCommandId
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_HEAP_XMAX_INVALID,4,2          ; @HEAP_XMAX_INVALID
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
	.comm	_InvalidOffsetNumber,4,2        ; @InvalidOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add sequence tuple to page"

	.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
	.no_dead_strip	_fill_seq_with_data
.subsections_via_symbols
