	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ER_flatten_into
_ER_flatten_into:                       ## @ER_flatten_into
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ER_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	8(%rbx), %eax
	movq	_ER_FLAG_FVALUE_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_ER_FLAG_HAVE_EXTERNAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_2:
	xorl	%edi, %edi
	cmpq	%r15, 16(%rbx)
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_expanded_record_get_tupdesc
	movq	%rax, %r12
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_HeapTupleHeaderSetDatumLength
	movl	56(%rbx), %esi
	movq	%r14, %rdi
	callq	_HeapTupleHeaderSetTypeId
	movl	52(%rbx), %esi
	movq	%r14, %rdi
	callq	_HeapTupleHeaderSetTypMod
	leaq	20(%r14), %rdi
	callq	_ItemPointerSetInvalid
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_HeapTupleHeaderSetNatts
	movslq	24(%rbx), %rcx
	movl	%ecx, (%r14)
	movl	48(%rbx), %esi
	movl	40(%rbx), %r8d
	movl	44(%rbx), %edx
	addq	%r14, %rcx
	leaq	16(%r14), %r9
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %r13
LBB0_4:
	movq	%r13, (%rsp)
	movq	%r12, %rdi
	callq	_heap_fill_tuple
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	64(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%r15, (%rax)
	sete	%dil
	callq	_Assert
	movq	64(%rbx), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_HeapTupleHeaderSetDatumLength
	movl	56(%rbx), %esi
	movq	%r14, %rdi
	callq	_HeapTupleHeaderSetTypeId
	movl	52(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HeapTupleHeaderSetTypMod       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ER_MAGIC,8,3                   ## @ER_MAGIC
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ## @ER_FLAG_FVALUE_VALID
	.comm	_ER_FLAG_HAVE_EXTERNAL,4,2      ## @ER_FLAG_HAVE_EXTERNAL
	.no_dead_strip	_ER_flatten_into
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ER_flatten_into
_ER_flatten_into:                       ; @ER_flatten_into
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ER_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ER_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _ER_FLAG_FVALUE_VALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ER_FLAG_FVALUE_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _ER_FLAG_HAVE_EXTERNAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ER_FLAG_HAVE_EXTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_2:
	ldr	x8, [x20, #16]
	cmp	x8, x21
	cset	w0, eq
	bl	_Assert
	mov	x0, x20
	bl	_expanded_record_get_tupdesc
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	x0, x19
	mov	x1, x21
	bl	_HeapTupleHeaderSetDatumLength
	ldr	w1, [x20, #56]
	mov	x0, x19
	bl	_HeapTupleHeaderSetTypeId
	ldr	w1, [x20, #52]
	mov	x0, x19
	bl	_HeapTupleHeaderSetTypMod
	add	x0, x19, #20
	bl	_ItemPointerSetInvalid
	ldr	w1, [x22]
	mov	x0, x19
	bl	_HeapTupleHeaderSetNatts
	ldrsw	x8, [x20, #24]
	mov	x5, x19
	str	w8, [x5], #16
	ldp	w2, w1, [x20, #44]
	add	x3, x19, x8
	ldr	w4, [x20, #40]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x6, [x19, #8]
	b	LBB0_5
LBB0_4:
	mov	x6, #0
LBB0_5:
	mov	x0, x22
	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	_heap_fill_tuple
LBB0_6:
	ldr	x8, [x20, #64]
	ldr	x8, [x8]
	cmp	x8, x21
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #64]
	ldr	w1, [x8, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	bl	_HeapTupleHeaderSetDatumLength
	ldr	w1, [x20, #56]
	mov	x0, x19
	bl	_HeapTupleHeaderSetTypeId
	ldr	w1, [x20, #52]
	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	_HeapTupleHeaderSetTypMod
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ER_MAGIC,8,3                   ; @ER_MAGIC
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ; @ER_FLAG_FVALUE_VALID
	.comm	_ER_FLAG_HAVE_EXTERNAL,4,2      ; @ER_FLAG_HAVE_EXTERNAL
	.no_dead_strip	_ER_flatten_into
.subsections_via_symbols
