	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expanded_record_set_tuple      ## -- Begin function expanded_record_set_tuple
	.p2align	4, 0x90
_expanded_record_set_tuple:             ## @expanded_record_set_tuple
	.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	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_ER_FLAG_IS_DUMMY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r13), %eax
	sete	%dil
	callq	_Assert
	movq	_ER_FLAG_IS_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_check_domain_for_new_tuple
LBB0_2:
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	movl	%ebx, %edi
	callq	_Assert
	movq	%r14, %rdi
	callq	_HeapTupleHasExternal
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	_get_short_term_cxt
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movl	48(%r13), %esi
	movq	%r14, %rdi
	callq	_toast_flatten_tuple
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movl	$1, %r12d
	jmp	LBB0_7
LBB0_5:
	xorl	%r12d, %r12d
LBB0_7:
	movl	(%r13), %ecx
	movq	_ER_FLAGS_NON_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	andl	%ecx, %r15d
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.8:
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:
	movl	76(%r13), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_heap_copytuple
	movq	%rax, %r14
	movq	_ER_FLAG_FVALUE_ALLOCED@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.10:
	movl	72(%r13), %edi
	callq	_MemoryContextReset
LBB0_11:
	movq	64(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r12
	movq	16(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:
	movq	%r14, 64(%r13)
	movq	8(%r14), %rax
	movq	%rax, 8(%r13)
	movslq	(%r14), %rcx
	addq	%rax, %rcx
	movq	%rcx, 16(%r13)
	movq	_ER_FLAG_FVALUE_VALID@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_HeapTupleHasExternal
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	_ER_FLAG_HAVE_EXTERNAL@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_15
LBB0_14:
	leaq	8(%r13), %rax
	movq	$0, 64(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
LBB0_15:
	movl	%r15d, (%r13)
	movq	$0, 56(%r13)
	movq	_ER_FLAG_DVALUES_ALLOCED@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.16:
	cmpl	$0, 24(%r13)
	jle	LBB0_24
## %bb.17:
	movl	48(%r13), %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdi
	callq	_pfree
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	24(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_24
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r13), %rax
	cmpl	$0, (%rax,%rbx,4)
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_TupleDescAttr
	cmpl	$0, (%rax)
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_DatumGetPointer
	cmpq	%rax, %r12
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	ja	LBB0_23
	jmp	LBB0_22
LBB0_24:
	movq	_ER_FLAG_FVALUE_ALLOCED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_25
## %bb.26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_heap_freetuple                 ## TAILCALL
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ER_FLAG_IS_DUMMY,4,2           ## @ER_FLAG_IS_DUMMY
	.comm	_ER_FLAG_IS_DOMAIN,4,2          ## @ER_FLAG_IS_DOMAIN
	.comm	_ER_FLAGS_NON_DATA,4,2          ## @ER_FLAGS_NON_DATA
	.comm	_ER_FLAG_FVALUE_ALLOCED,4,2     ## @ER_FLAG_FVALUE_ALLOCED
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ## @ER_FLAG_FVALUE_VALID
	.comm	_ER_FLAG_HAVE_EXTERNAL,4,2      ## @ER_FLAG_HAVE_EXTERNAL
	.comm	_ER_FLAG_DVALUES_ALLOCED,4,2    ## @ER_FLAG_DVALUES_ALLOCED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expanded_record_set_tuple      ; -- Begin function expanded_record_set_tuple
	.p2align	2
_expanded_record_set_tuple:             ; @expanded_record_set_tuple
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ER_FLAG_IS_DUMMY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ER_FLAG_IS_DUMMY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ER_FLAG_IS_DOMAIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ER_FLAG_IS_DOMAIN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_check_domain_for_new_tuple
LBB0_2:
	cbz	x20, LBB0_7
; %bb.3:
	cbz	w22, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_Assert
	mov	x0, x20
	bl	_HeapTupleHasExternal
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_get_short_term_cxt
	bl	_MemoryContextSwitchTo
	mov	x22, x0
	ldr	w1, [x19, #48]
	mov	x0, x20
	bl	_toast_flatten_tuple
	mov	x20, x0
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	w22, #1
	b	LBB0_7
LBB0_6:
	mov	w22, #0
LBB0_7:
	ldr	w23, [x19]
Lloh6:
	adrp	x8, _ER_FLAGS_NON_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ER_FLAGS_NON_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w27, w8, w23
Lloh9:
	adrp	x24, _ER_FLAG_FVALUE_ALLOCED@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ER_FLAG_FVALUE_ALLOCED@GOTPAGEOFF]
	cbz	w21, LBB0_11
; %bb.8:
	cbz	x20, LBB0_11
; %bb.9:
	ldr	w0, [x19, #76]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	mov	x0, x20
	bl	_heap_copytuple
	mov	x20, x0
	ldr	w8, [x24]
	orr	w27, w8, w27
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	cbz	w22, LBB0_11
; %bb.10:
	ldr	w0, [x19, #72]
	bl	_MemoryContextReset
LBB0_11:
	mov	x8, x19
	ldr	x25, [x8, #8]!
	ldr	x21, [x8, #56]
	ldr	x26, [x8, #8]
	cbz	x20, LBB0_14
; %bb.12:
	str	x20, [x19, #64]
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x9, x8, x9
	stp	x8, x9, [x19, #8]
Lloh11:
	adrp	x8, _ER_FLAG_FVALUE_VALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ER_FLAG_FVALUE_VALID@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w27, w8, w27
	mov	x0, x20
	bl	_HeapTupleHasExternal
	cbz	x0, LBB0_15
; %bb.13:
Lloh14:
	adrp	x8, _ER_FLAG_HAVE_EXTERNAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ER_FLAG_HAVE_EXTERNAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w27, w8, w27
	b	LBB0_15
LBB0_14:
	str	xzr, [x19, #64]
	stp	xzr, xzr, [x8]
LBB0_15:
	str	w27, [x19]
	str	xzr, [x19, #56]
Lloh17:
	adrp	x8, _ER_FLAG_DVALUES_ALLOCED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ER_FLAG_DVALUES_ALLOCED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_23
; %bb.16:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.17:
	mov	x20, #0
	ldr	w22, [x19, #48]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #24]
	cmp	x20, x8
	b.ge	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w8, [x8, x20, lsl #2]
	cbnz	w8, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_TupleDescAttr
	ldr	w8, [x0]
	cbnz	w8, LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20, lsl #2]
	bl	_DatumGetPointer
	cmp	x25, x0
	ccmp	x26, x0, #0, ls
	b.hi	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	bl	_pfree
	b	LBB0_18
LBB0_23:
	ldr	w8, [x24]
	tst	w8, w23
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_heap_freetuple
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ER_FLAG_IS_DUMMY,4,2           ; @ER_FLAG_IS_DUMMY
	.comm	_ER_FLAG_IS_DOMAIN,4,2          ; @ER_FLAG_IS_DOMAIN
	.comm	_ER_FLAGS_NON_DATA,4,2          ; @ER_FLAGS_NON_DATA
	.comm	_ER_FLAG_FVALUE_ALLOCED,4,2     ; @ER_FLAG_FVALUE_ALLOCED
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ; @ER_FLAG_FVALUE_VALID
	.comm	_ER_FLAG_HAVE_EXTERNAL,4,2      ; @ER_FLAG_HAVE_EXTERNAL
	.comm	_ER_FLAG_DVALUES_ALLOCED,4,2    ; @ER_FLAG_DVALUES_ALLOCED
.subsections_via_symbols
