	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReorderBufferToastAppendChunk
_ReorderBufferToastAppendChunk:         ## @ReorderBufferToastAppendChunk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, %edi
	callq	_RelationGetDescr
	movl	%eax, %r12d
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ReorderBufferToastInitHash
LBB0_2:
	movl	%ebx, %edi
	callq	_IsToastRelation
	movl	%eax, %edi
	callq	_Assert
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r13
	leaq	-44(%rbp), %rbx
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	callq	_fastgetattr
	movl	%eax, %edi
	callq	_DatumGetObjectId
	movq	%rax, -56(%rbp)
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movq	%r13, %rdi
	movl	$2, %esi
	movl	%r12d, %edx
	movq	%rbx, %rcx
	callq	_fastgetattr
	movl	%eax, %edi
	callq	_DatumGetInt32
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movq	(%r14), %rdi
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	leaq	-68(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r14
	cmpl	$0, -68(%rbp)
	je	LBB0_3
## %bb.5:
	movq	8(%r14), %r8
	incq	%r8
	cmpq	%r8, %r15
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_elog
	jmp	LBB0_7
LBB0_3:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	-56(%rbp), %rax
	sete	%dil
	callq	_Assert
	leaq	24(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movups	%xmm0, 32(%r14)
	callq	_dlist_init
	testq	%r15, %r15
	je	LBB0_7
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_elog
LBB0_7:
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	$3, %esi
	movl	%r12d, %edx
	callq	_fastgetattr
	movl	%eax, %edi
	callq	_DatumGetPointer
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_VARATT_IS_EXTENDED
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%ebx, %edi
	callq	_VARATT_IS_SHORT
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%ebx, %edi
	callq	_VARSIZE_SHORT
	movq	_VARHDRSZ_SHORT@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jmp	LBB0_13
LBB0_8:
	movl	%ebx, %edi
	callq	_VARSIZE
	movq	_VARHDRSZ@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jmp	LBB0_13
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
                                        ## implicit-def: $rax
LBB0_13:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, 16(%r14)
	movq	%r15, 8(%r14)
	incq	32(%r14)
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_dlist_push_tail
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got sequence entry %d for toast chunk %u instead of seq 0"

L_.str.1:                               ## @.str.1
	.asciz	"got sequence entry %d for toast chunk %u instead of seq %d"

	.comm	_VARHDRSZ,8,3                   ## @VARHDRSZ
	.comm	_VARHDRSZ_SHORT,8,3             ## @VARHDRSZ_SHORT
L_.str.2:                               ## @.str.2
	.asciz	"unexpected type of toast chunk"

	.no_dead_strip	_ReorderBufferToastAppendChunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReorderBufferToastAppendChunk
_ReorderBufferToastAppendChunk:         ; @ReorderBufferToastAppendChunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	bl	_RelationGetDescr
	mov	x21, x0
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_ReorderBufferToastInitHash
LBB0_2:
	mov	x0, x20
	bl	_IsToastRelation
	bl	_Assert
	ldr	x23, [x19, #8]
	add	x3, sp, #40
	mov	x0, x23
	mov	w1, #1
	mov	x2, x21
	bl	_fastgetattr
	bl	_DatumGetObjectId
	str	x0, [sp, #32]
	ldr	w8, [sp, #40]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	add	x3, sp, #40
	mov	x0, x23
	mov	w1, #2
	mov	x2, x21
	bl	_fastgetattr
	bl	_DatumGetInt32
	mov	x20, x0
	ldr	w8, [sp, #40]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x22]
Lloh0:
	adrp	x8, _HASH_ENTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_ENTER@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #32
	add	x3, sp, #44
	bl	_hash_search
	mov	x22, x0
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.4:
Lloh3:
	adrp	x9, _ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	x9, [sp, #32]
	stp	x9, x8, [sp, #8]
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22]
	ldr	x9, [sp, #32]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	add	x0, x22, #24
	stp	xzr, xzr, [x22, #8]
	stp	xzr, xzr, [x22, #32]
	bl	_dlist_init
	cbz	x20, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [sp, #32]
	stp	x20, x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	bl	_elog
LBB0_8:
	add	x3, sp, #40
	mov	x0, x23
	mov	w1, #3
	mov	x2, x21
	bl	_fastgetattr
	bl	_DatumGetPointer
	mov	x21, x0
	ldr	w8, [sp, #40]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	bl	_VARATT_IS_EXTENDED
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_VARATT_IS_SHORT
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_VARSIZE_SHORT
Lloh13:
	adrp	x8, _VARHDRSZ_SHORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VARHDRSZ_SHORT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_VARSIZE
Lloh15:
	adrp	x8, _VARHDRSZ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VARHDRSZ@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	sub	x8, x0, x8
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
                                        ; implicit-def: $x8
LBB0_14:
	ldr	x9, [x22, #16]
	add	x8, x9, x8
	stp	x20, x8, [x22, #8]
	ldr	x8, [x22, #32]
	add	x8, x8, #1
	str	x8, [x22, #32]
	add	x0, x22, #24
	mov	x1, x19
	bl	_dlist_push_tail
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got sequence entry %d for toast chunk %u instead of seq 0"

l_.str.1:                               ; @.str.1
	.asciz	"got sequence entry %d for toast chunk %u instead of seq %d"

	.comm	_VARHDRSZ,8,3                   ; @VARHDRSZ
	.comm	_VARHDRSZ_SHORT,8,3             ; @VARHDRSZ_SHORT
l_.str.2:                               ; @.str.2
	.asciz	"unexpected type of toast chunk"

	.no_dead_strip	_ReorderBufferToastAppendChunk
.subsections_via_symbols
