	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_expanded_record_from_datum ## -- Begin function make_expanded_record_from_datum
	.p2align	4, 0x90
_make_expanded_record_from_datum:       ## @make_expanded_record_from_datum
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movl	%edi, %r15d
	movq	_ALLOCSET_DEFAULT_SIZES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_AllocSetContextCreate
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	$48, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	movq	_ER_methods@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_EOH_init_header
	movq	_ER_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	%r15d, %edi
	callq	_DatumGetHeapTupleHeader
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleHeaderGetDatumLength
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_ItemPointerSetInvalid
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	%r15d, -56(%rbp)
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	leaq	-56(%rbp), %rdi
	callq	_heap_copytuple
	movq	%rax, %r13
	movq	_ER_FLAG_FVALUE_ALLOCED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movl	%r12d, %edi
	callq	_MemoryContextSwitchTo
	movl	%r15d, %edi
	callq	_HeapTupleHeaderGetTypeId
	movl	%eax, 36(%rbx)
	movl	%eax, 40(%rbx)
	movl	%r15d, %edi
	callq	_HeapTupleHeaderGetTypMod
	movl	%eax, 32(%rbx)
	movq	%r13, 24(%rbx)
	movq	8(%r13), %rax
	movq	%rax, (%rbx)
	movslq	(%r13), %rcx
	addq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	_ER_FLAG_FVALUE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movl	%r15d, %edi
	callq	_HeapTupleHeaderHasExternal
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_EOHPGetRWDatum
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expanded record"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ## @ALLOCSET_DEFAULT_SIZES
	.comm	_ER_methods,4,2                 ## @ER_methods
	.comm	_ER_MAGIC,4,2                   ## @ER_MAGIC
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_ER_FLAG_FVALUE_ALLOCED,4,2     ## @ER_FLAG_FVALUE_ALLOCED
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ## @ER_FLAG_FVALUE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_make_expanded_record_from_datum ; -- Begin function make_expanded_record_from_datum
	.p2align	2
_make_expanded_record_from_datum:       ; @make_expanded_record_from_datum
	.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	x8, x1
	mov	x21, x0
Lloh0:
	adrp	x9, _ALLOCSET_DEFAULT_SIZES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ALLOCSET_DEFAULT_SIZES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_AllocSetContextCreate
	mov	x22, x0
	mov	w1, #48
	bl	_MemoryContextAllocZero
	mov	x20, x0
	add	x19, x0, #16
Lloh5:
	adrp	x1, _ER_methods@GOTPAGE
Lloh6:
	ldr	x1, [x1, _ER_methods@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x22
	bl	_EOH_init_header
Lloh7:
	adrp	x8, _ER_MAGIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ER_MAGIC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #44]
	mov	x0, x21
	bl	_DatumGetHeapTupleHeader
	mov	x21, x0
	bl	_HeapTupleHeaderGetDatumLength
	str	w0, [sp, #12]
	mov	x8, sp
	add	x0, x8, #8
	bl	_ItemPointerSetInvalid
Lloh10:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stp	w21, w8, [sp]
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	mov	x0, sp
	bl	_heap_copytuple
	mov	x23, x0
Lloh13:
	adrp	x8, _ER_FLAG_FVALUE_ALLOCED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ER_FLAG_FVALUE_ALLOCED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	x0, x21
	bl	_HeapTupleHeaderGetTypeId
	stp	w0, w0, [x20, #36]
	mov	x0, x21
	bl	_HeapTupleHeaderGetTypMod
	str	w0, [x20, #32]
	str	x23, [x20, #24]
	ldr	x8, [x23, #8]
	str	x8, [x20]
	ldrsw	x9, [x23]
	add	x8, x8, x9
	str	x8, [x20, #8]
Lloh16:
	adrp	x8, _ER_FLAG_FVALUE_VALID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ER_FLAG_FVALUE_VALID@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	str	w8, [x20, #20]
	mov	x0, x21
	bl	_HeapTupleHeaderHasExternal
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x19
	bl	_EOHPGetRWDatum
	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expanded record"

	.comm	_ALLOCSET_DEFAULT_SIZES,4,2     ; @ALLOCSET_DEFAULT_SIZES
	.comm	_ER_methods,4,2                 ; @ER_methods
	.comm	_ER_MAGIC,4,2                   ; @ER_MAGIC
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ER_FLAG_FVALUE_ALLOCED,4,2     ; @ER_FLAG_FVALUE_ALLOCED
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ; @ER_FLAG_FVALUE_VALID
.subsections_via_symbols
