	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_expanded_record_set_field_internal ## -- Begin function expanded_record_set_field_internal
	.p2align	4, 0x90
_expanded_record_set_field_internal:    ## @expanded_record_set_field_internal
	.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	%r9d, %ebx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_ER_FLAG_IS_DUMMY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	sete	%al
	testl	%r9d, %r9d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_Assert
	movl	(%r12), %eax
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_ER_FLAG_IS_DOMAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_check_domain_for_new_field
	movl	(%r12), %eax
LBB0_3:
	movq	_ER_FLAG_DVALUES_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_deconstruct_expanded_record
LBB0_5:
	movq	8(%r12), %rax
	movq	64(%r12), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_Assert
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.7:
	movl	%r15d, %eax
	xorl	%edi, %edi
	cmpq	%rax, 8(%r12)
	setl	%dil
	jmp	LBB0_8
LBB0_6:
	movl	$1, %edi
LBB0_8:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
LBB0_10:
	decl	%r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_TupleDescAttr
	movq	%rax, %rbx
	testl	%r14d, %r14d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	jne	LBB0_23
## %bb.11:
	cmpl	$0, 4(%rbx)
	jne	LBB0_23
## %bb.12:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.14:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$-1, (%rbx)
	je	LBB0_16
## %bb.15:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_18
LBB0_13:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_18
LBB0_16:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_get_short_term_cxt
	movl	%eax, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_detoast_external_attr
	movl	%eax, %edi
	callq	_PointerGetDatum
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	movl	60(%r12), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	(%rbx), %edx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_datumCopy
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_20
## %bb.19:
	movl	56(%r12), %edi
	callq	_MemoryContextReset
LBB0_20:
	movq	_ER_FLAG_DVALUES_ALLOCED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	cmpl	$-1, (%rbx)
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jne	LBB0_23
## %bb.21:
	movl	%r13d, %edi
	callq	_DatumGetPointer
	movq	%rax, %rdi
	callq	_VARATT_IS_EXTERNAL
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_ER_FLAG_HAVE_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_23:
	movq	16(%r12), %r13
	movq	48(%r12), %r14
	movq	_ER_FLAG_FVALUE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	$0, 40(%r12)
	cmpl	$0, 4(%rbx)
	movslq	%r15d, %rbx
	jne	LBB0_25
## %bb.24:
	cmpl	$0, (%r13,%rbx,4)
	je	LBB0_26
LBB0_25:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14,%rbx,4)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%rbx,4)
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	(%r14,%rbx,4), %edi
	callq	_DatumGetPointer
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r14,%rbx,4)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r13,%rbx,4)
	testq	%rax, %rax
	je	LBB0_30
## %bb.27:
	movq	_ER_FLAG_IS_DUMMY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	jne	LBB0_30
## %bb.28:
	cmpq	%rax, 24(%r12)
	ja	LBB0_31
## %bb.29:
	cmpq	%rax, 32(%r12)
	ja	LBB0_30
LBB0_31:
	movq	%rax, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.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_FLAG_DVALUES_VALID,4,2      ## @ER_FLAG_DVALUES_VALID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot assign to field %d of expanded record"

	.comm	_ER_FLAG_DVALUES_ALLOCED,4,2    ## @ER_FLAG_DVALUES_ALLOCED
	.comm	_ER_FLAG_HAVE_EXTERNAL,4,2      ## @ER_FLAG_HAVE_EXTERNAL
	.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	_expanded_record_set_field_internal ; -- Begin function expanded_record_set_field_internal
	.p2align	2
_expanded_record_set_field_internal:    ; @expanded_record_set_field_internal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x26, _ER_FLAG_IS_DUMMY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ER_FLAG_IS_DUMMY@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	ccmp	w5, #0, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	cbz	w22, LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _ER_FLAG_IS_DOMAIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ER_FLAG_IS_DOMAIN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w9, w9, w8
	cbz	w9, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_check_domain_for_new_field
	ldr	w8, [x19]
LBB0_3:
Lloh5:
	adrp	x9, _ER_FLAG_DVALUES_VALID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ER_FLAG_DVALUES_VALID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_deconstruct_expanded_record
LBB0_5:
	ldr	x25, [x19, #64]
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	subs	w22, w23, #1
	b.lt	LBB0_22
; %bb.6:
	ldr	x8, [x19, #8]
	cmp	x8, w23, uxtw
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_elog
LBB0_8:
	mov	x0, x25
	mov	x1, x22
	bl	_TupleDescAttr
	mov	x23, x0
	cbnz	w20, LBB0_18
; %bb.9:
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_18
; %bb.10:
	cbz	w24, LBB0_12
; %bb.11:
	ldr	w8, [x23]
	cmn	w8, #1
	b.eq	LBB0_28
LBB0_12:
	mov	w25, #1
LBB0_13:
	ldr	w0, [x19, #60]
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	ldr	w2, [x23]
	mov	x0, x21
	mov	w1, #0
	bl	_datumCopy
	mov	x21, x0
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	tbnz	w25, #0, LBB0_15
; %bb.14:
	ldr	w0, [x19, #56]
	bl	_MemoryContextReset
LBB0_15:
Lloh13:
	adrp	x8, _ER_FLAG_DVALUES_ALLOCED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ER_FLAG_DVALUES_ALLOCED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x23]
	cmn	w8, #1
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x21
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL
	cbz	x0, LBB0_18
; %bb.17:
Lloh16:
	adrp	x8, _ER_FLAG_HAVE_EXTERNAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ER_FLAG_HAVE_EXTERNAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_18:
	ldr	x24, [x19, #48]
	ldr	x25, [x19, #16]
Lloh19:
	adrp	x8, _ER_FLAG_FVALUE_VALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ER_FLAG_FVALUE_VALID@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	str	xzr, [x19, #40]
	ldr	w9, [x23, #4]
	sxtw	x8, w22
	cbnz	w9, LBB0_20
; %bb.19:
	ldr	w9, [x25, x8, lsl #2]
	cbz	w9, LBB0_23
LBB0_20:
	lsl	x8, x8, #2
	str	w21, [x24, x8]
	str	w20, [x25, x8]
LBB0_21:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_7
	b	LBB0_8
LBB0_23:
	lsl	x22, x8, #2
	ldr	w0, [x24, x22]
	bl	_DatumGetPointer
	str	w21, [x24, x22]
	str	w20, [x25, x22]
	cbz	x0, LBB0_21
; %bb.24:
	ldr	w8, [x19]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.25:
	ldr	x8, [x19, #24]
	cmp	x8, x0
	b.hi	LBB0_27
; %bb.26:
	ldr	x8, [x19, #32]
	cmp	x8, x0
	b.hi	LBB0_21
LBB0_27:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pfree
LBB0_28:
	mov	x0, x21
	bl	_DatumGetPointer
	bl	_VARATT_IS_EXTERNAL
	cbz	x0, LBB0_12
; %bb.29:
	mov	x0, x19
	bl	_get_short_term_cxt
	bl	_MemoryContextSwitchTo
	mov	x24, x0
	mov	x0, x21
	bl	_DatumGetPointer
	bl	_detoast_external_attr
	bl	_PointerGetDatum
	mov	x21, x0
	mov	x0, x24
	bl	_MemoryContextSwitchTo
	mov	w25, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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_FLAG_DVALUES_VALID,4,2      ; @ER_FLAG_DVALUES_VALID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot assign to field %d of expanded record"

	.comm	_ER_FLAG_DVALUES_ALLOCED,4,2    ; @ER_FLAG_DVALUES_ALLOCED
	.comm	_ER_FLAG_HAVE_EXTERNAL,4,2      ; @ER_FLAG_HAVE_EXTERNAL
	.comm	_ER_FLAG_FVALUE_VALID,4,2       ; @ER_FLAG_FVALUE_VALID
.subsections_via_symbols
