	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ATExecAddInherit
_ATExecAddInherit:                      ## @ATExecAddInherit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ShareUpdateExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_table_openrv
	movq	%rax, %r13
	movq	_ATT_TABLE@GOTPCREL(%rip), %rax
	movq	_ATT_FOREIGN_TABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ATSimplePermissions
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_RELPERSISTENCE_TEMP@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r13, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
LBB0_3:
	cmpq	%rcx, %rax
	movq	%rcx, %rax
	jne	LBB0_6
LBB0_4:
	cmpl	$0, 16(%r13)
	movq	%rax, %rcx
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r12), %rcx
LBB0_6:
	movq	8(%r14), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_9
## %bb.7:
	cmpl	$0, 16(%r14)
	jne	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	8(%r13), %rax
	movq	8(%rax), %rcx
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	8(%r13), %rax
LBB0_11:
	cmpq	$0, 16(%rax)
	je	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	%r14, %rdi
	callq	_RelationGetRelid
	movq	_AccessShareLock@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_find_all_inheritors
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_RelationGetRelid
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_list_member_oid
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_DUPLICATE_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errdetail
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movl	(%r14), %edi
	callq	_FindTriggerIncompatibleWithInheritance
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, %rbx
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r14, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_errdetail
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_17:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_CreateInheritance
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_RelationGetRelid
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ObjectAddressSet
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ShareUpdateExclusiveLock,4,2   ## @ShareUpdateExclusiveLock
	.comm	_ATT_TABLE,4,2                  ## @ATT_TABLE
	.comm	_ATT_FOREIGN_TABLE,4,2          ## @ATT_FOREIGN_TABLE
	.comm	_RELPERSISTENCE_TEMP,8,3        ## @RELPERSISTENCE_TEMP
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot inherit from temporary relation \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"cannot inherit from temporary relation of another session"

L_.str.2:                               ## @.str.2
	.asciz	"cannot inherit to temporary relation of another session"

	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
L_.str.3:                               ## @.str.3
	.asciz	"cannot inherit from partitioned table \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"cannot inherit from a partition"

	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ## @ERRCODE_DUPLICATE_TABLE
L_.str.5:                               ## @.str.5
	.asciz	"circular inheritance not allowed"

L_.str.6:                               ## @.str.6
	.asciz	"\"%s\" is already a child of \"%s\"."

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.7:                               ## @.str.7
	.asciz	"trigger \"%s\" prevents table \"%s\" from becoming an inheritance child"

L_.str.8:                               ## @.str.8
	.asciz	"ROW triggers with transition tables are not supported in inheritance hierarchies."

	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_NoLock,4,2                     ## @NoLock
	.no_dead_strip	_ATExecAddInherit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ATExecAddInherit
_ATExecAddInherit:                      ; @ATExecAddInherit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ShareUpdateExclusiveLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ShareUpdateExclusiveLock@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_table_openrv
	mov	x19, x0
Lloh3:
	adrp	x8, _ATT_TABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATT_TABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATT_FOREIGN_TABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATT_FOREIGN_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_ATSimplePermissions
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x25, _RELPERSISTENCE_TEMP@GOTPAGE
Lloh10:
	ldr	x25, [x25, _RELPERSISTENCE_TEMP@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh11:
	adrp	x23, _ERROR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
Lloh13:
	adrp	x24, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.2:
	ldr	w22, [x23]
	ldr	w0, [x24]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x25]
LBB0_3:
	cmp	x8, x9
	mov	x8, x9
	b.ne	LBB0_6
LBB0_4:
	ldr	w10, [x19, #16]
	mov	x9, x8
	cbnz	w10, LBB0_6
; %bb.5:
	ldr	w22, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x9, [x25]
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	w22, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
Lloh21:
	adrp	x10, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:
	ldr	w22, [x23]
	ldr	w0, [x24]
	bl	_errcode
	ldr	w8, [x21]
	str	x8, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x8, [x19, #8]
LBB0_11:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w22, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_13:
	mov	x0, x20
	bl	_RelationGetRelid
Lloh28:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_find_all_inheritors
	mov	x22, x0
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x1, x0
	mov	x0, x22
	bl	_list_member_oid
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w22, [x23]
Lloh31:
	adrp	x8, _ERRCODE_DUPLICATE_TABLE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_TABLE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_errcode
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
	ldr	w21, [x21]
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh36:
	adrp	x0, l_.str.6@PAGE
Lloh37:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_15:
	ldr	w0, [x20]
	bl	_FindTriggerIncompatibleWithInheritance
	cbz	x0, LBB0_17
; %bb.16:
	mov	x21, x0
	ldr	w22, [x23]
Lloh38:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh41:
	adrp	x0, l_.str.7@PAGE
Lloh42:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_errmsg
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_CreateInheritance
Lloh45:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh46:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh47:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_RelationGetRelid
	mov	x1, x20
	mov	x2, x0
	bl	_ObjectAddressSet
Lloh48:
	adrp	x8, _NoLock@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	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
	add	sp, sp, #96
	b	_table_close
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_ShareUpdateExclusiveLock,4,2   ; @ShareUpdateExclusiveLock
	.comm	_ATT_TABLE,4,2                  ; @ATT_TABLE
	.comm	_ATT_FOREIGN_TABLE,4,2          ; @ATT_FOREIGN_TABLE
	.comm	_RELPERSISTENCE_TEMP,8,3        ; @RELPERSISTENCE_TEMP
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot inherit from temporary relation \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"cannot inherit from temporary relation of another session"

l_.str.2:                               ; @.str.2
	.asciz	"cannot inherit to temporary relation of another session"

	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
l_.str.3:                               ; @.str.3
	.asciz	"cannot inherit from partitioned table \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"cannot inherit from a partition"

	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ; @ERRCODE_DUPLICATE_TABLE
l_.str.5:                               ; @.str.5
	.asciz	"circular inheritance not allowed"

l_.str.6:                               ; @.str.6
	.asciz	"\"%s\" is already a child of \"%s\"."

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.7:                               ; @.str.7
	.asciz	"trigger \"%s\" prevents table \"%s\" from becoming an inheritance child"

l_.str.8:                               ; @.str.8
	.asciz	"ROW triggers with transition tables are not supported in inheritance hierarchies."

	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_NoLock,4,2                     ; @NoLock
	.no_dead_strip	_ATExecAddInherit
.subsections_via_symbols
