	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddNewAttributeTuples
_AddNewAttributeTuples:                 ## @AddNewAttributeTuples
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movq	_AttributeRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_CatalogOpenIndexes
	movl	%eax, %r15d
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.1:
	movl	%r12d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, %r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_TupleDescAttr
	movq	%rax, %r13
	movq	%rbx, 24(%rax)
	movl	$-1, (%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	movl	%r15d, %edx
	callq	_InsertPgAttributeTuple
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	%rbx, -88(%rbp)
	incl	%r12d
	movl	%r12d, -80(%rbp)
	movq	_TypeRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	_DEPENDENCY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_recordDependencyOn
	movq	16(%r13), %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r13), %rax
	movq	_DEFAULT_COLLATION_OID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CollationRelationId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -52(%rbp)
	movq	%rax, -64(%rbp)
	movl	$0, -56(%rbp)
	movq	_DEPENDENCY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-88(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	callq	_recordDependencyOn
	jmp	LBB0_5
LBB0_6:
	movq	_RELKIND_VIEW@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rax)
	je	LBB0_11
## %bb.7:
	movq	_RELKIND_COMPOSITE_TYPE@GOTPCREL(%rip), %rax
	cmpb	%cl, (%rax)
	je	LBB0_11
## %bb.8:
	movq	_SysAtt@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_lengthof
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%r13d, %r13d
	leaq	-128(%rbp), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_memcpy
	movq	%rbx, -104(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_InsertPgAttributeTuple
	incq	%r13
	movq	(%r14), %rdi
	callq	_lengthof
	cltq
	cmpq	%rax, %r13
	jl	LBB0_10
LBB0_11:
	movl	%r15d, %edi
	callq	_CatalogCloseIndexes
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AttributeRelationId,4,2        ## @AttributeRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_TypeRelationId,4,2             ## @TypeRelationId
	.comm	_DEPENDENCY_NORMAL,4,2          ## @DEPENDENCY_NORMAL
	.comm	_DEFAULT_COLLATION_OID,8,3      ## @DEFAULT_COLLATION_OID
	.comm	_CollationRelationId,4,2        ## @CollationRelationId
	.comm	_RELKIND_VIEW,1,0               ## @RELKIND_VIEW
	.comm	_RELKIND_COMPOSITE_TYPE,1,0     ## @RELKIND_COMPOSITE_TYPE
	.comm	_SysAtt,8,3                     ## @SysAtt
	.no_dead_strip	_AddNewAttributeTuples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddNewAttributeTuples
_AddNewAttributeTuples:                 ; @AddNewAttributeTuples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x1
	mov	x19, x0
	and	w8, w2, #0xff
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w27, [x1]
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
	bl	_CatalogOpenIndexes
	mov	x21, x0
	cmp	w27, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w23, #0
Lloh6:
	adrp	x25, _RelationRelationId@GOTPAGE
Lloh7:
	ldr	x25, [x25, _RelationRelationId@GOTPAGEOFF]
Lloh8:
	adrp	x26, _TypeRelationId@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TypeRelationId@GOTPAGEOFF]
Lloh10:
	adrp	x28, _DEPENDENCY_NORMAL@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DEPENDENCY_NORMAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w27, w23
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_TupleDescAttr
	mov	x24, x0
	str	x19, [x0, #24]
	mov	w8, #-1
	str	w8, [x0]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_InsertPgAttributeTuple
	ldr	w8, [x25]
	str	x19, [sp, #64]
	add	w23, w23, #1
	stp	w23, w8, [sp, #72]
	ldr	w8, [x26]
	str	w8, [sp, #60]
	ldr	x8, [x24, #8]
	str	x8, [sp, #48]
	str	wzr, [sp, #56]
	ldr	w2, [x28]
	add	x0, sp, #64
	add	x1, sp, #48
	bl	_recordDependencyOn
	ldr	x0, [x24, #16]
	bl	_OidIsValid
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #16]
Lloh12:
	adrp	x9, _DEFAULT_COLLATION_OID@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DEFAULT_COLLATION_OID@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x9, _CollationRelationId@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CollationRelationId@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	x8, [sp, #48]
	stp	wzr, w9, [sp, #56]
	ldr	w2, [x28]
	add	x0, sp, #64
	add	x1, sp, #48
	bl	_recordDependencyOn
	b	LBB0_2
LBB0_6:
Lloh18:
	adrp	x8, _RELKIND_VIEW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RELKIND_VIEW@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh20:
	adrp	x9, _RELKIND_COMPOSITE_TYPE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RELKIND_COMPOSITE_TYPE@GOTPAGEOFF]
	ldrb	w9, [x9]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w8, w10
	ccmp	w9, w10, #4, ne
	b.eq	LBB0_10
; %bb.7:
Lloh22:
	adrp	x22, _SysAtt@GOTPAGE
Lloh23:
	ldr	x22, [x22, _SysAtt@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_lengthof
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x23, lsl #2]
	add	x0, sp, #16
	mov	w2, #32
	bl	_memcpy
	str	x19, [sp, #40]
	add	x1, sp, #16
	mov	x0, x20
	mov	x2, x21
	bl	_InsertPgAttributeTuple
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_lengthof
	cmp	x23, w0, sxtw
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x21
	bl	_CatalogCloseIndexes
Lloh24:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_table_close
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_AttributeRelationId,4,2        ; @AttributeRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_TypeRelationId,4,2             ; @TypeRelationId
	.comm	_DEPENDENCY_NORMAL,4,2          ; @DEPENDENCY_NORMAL
	.comm	_DEFAULT_COLLATION_OID,8,3      ; @DEFAULT_COLLATION_OID
	.comm	_CollationRelationId,4,2        ; @CollationRelationId
	.comm	_RELKIND_VIEW,1,0               ; @RELKIND_VIEW
	.comm	_RELKIND_COMPOSITE_TYPE,1,0     ; @RELKIND_COMPOSITE_TYPE
	.comm	_SysAtt,8,3                     ; @SysAtt
	.no_dead_strip	_AddNewAttributeTuples
.subsections_via_symbols
