	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MergeAttributesIntoExisting
_MergeAttributesIntoExisting:           ## @MergeAttributesIntoExisting
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_AttributeRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_RelationGetDescr
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.1:
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_CatalogTupleUpdate
	movq	%r13, %rdi
	callq	_heap_freetuple
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	%r12d, %ebx
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_TupleDescAttr
	movq	%rax, %r15
	movl	48(%rax), %edi
	callq	_NameStr
	cmpq	$0, 40(%r15)
	jne	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelid
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_SearchSysCacheCopyAttName
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_GETSTRUCT
	movslq	%eax, %rbx
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	movslq	%eax, %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	cmpq	16(%rbx), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_COLLATION_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	movslq	%eax, %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%r15)
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%rbx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movl	$0, 28(%rbx)
	jmp	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_16
LBB0_18:
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AttributeRelationId,4,2        ## @AttributeRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ## @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"child table \"%s\" has different type for column \"%s\""

	.comm	_ERRCODE_COLLATION_MISMATCH,4,2 ## @ERRCODE_COLLATION_MISMATCH
L_.str.1:                               ## @.str.1
	.asciz	"child table \"%s\" has different collation for column \"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"column \"%s\" in child table must be marked NOT NULL"

L_.str.3:                               ## @.str.3
	.asciz	"child table is missing column \"%s\""

	.no_dead_strip	_MergeAttributesIntoExisting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MergeAttributesIntoExisting
_MergeAttributesIntoExisting:           ; @MergeAttributesIntoExisting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AttributeRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AttributeRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_table_open
	mov	x20, x0
	mov	x0, x23
	bl	_RelationGetDescr
	ldr	w26, [x0]
	cmp	w26, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x21, x0
	mov	w22, #0
	ldr	x8, [x23]
	ldr	x8, [x8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x27
	mov	x2, x27
	bl	_CatalogTupleUpdate
	mov	x0, x27
	bl	_heap_freetuple
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w26, w22
	b.eq	LBB0_17
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_TupleDescAttr
	mov	x24, x0
	ldr	w0, [x0, #48]
	bl	_NameStr
	ldr	x8, [x24, #40]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x1, x28
	bl	_SearchSysCacheCopyAttName
	mov	x27, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.eq	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
Lloh12:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x28, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #16]
	ldr	x9, [x23, #16]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w25, [x8]
Lloh20:
	adrp	x8, _ERRCODE_COLLATION_MISMATCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_COLLATION_MISMATCH@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x28, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #32]
	cbnz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w24, [x8]
Lloh28:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_errcode
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x28
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23, #24]
	add	w9, w8, #1
	str	w9, [x23, #24]
	ldp	x10, x9, [sp, #16]              ; 16-byte Folded Reload
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	str	wzr, [x23, #28]
	b	LBB0_2
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh33:
	adrp	x8, _ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w24, [x8]
Lloh36:
	adrp	x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERRCODE_DATATYPE_MISMATCH@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_errcode
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x28
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	b	LBB0_3
LBB0_17:
Lloh41:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_table_close
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AttributeRelationId,4,2        ; @AttributeRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DATATYPE_MISMATCH,4,2  ; @ERRCODE_DATATYPE_MISMATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"child table \"%s\" has different type for column \"%s\""

	.comm	_ERRCODE_COLLATION_MISMATCH,4,2 ; @ERRCODE_COLLATION_MISMATCH
l_.str.1:                               ; @.str.1
	.asciz	"child table \"%s\" has different collation for column \"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"column \"%s\" in child table must be marked NOT NULL"

l_.str.3:                               ; @.str.3
	.asciz	"child table is missing column \"%s\""

	.no_dead_strip	_MergeAttributesIntoExisting
.subsections_via_symbols
