	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CreateInheritance
_CreateInheritance:                     ## @CreateInheritance
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_InheritsRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r13
	movq	_Anum_pg_inherits_inhrelid@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	movq	%rax, %rdi
	callq	_ObjectIdGetDatum
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_InheritsRelidSeqnoIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%rbx, %r9
	callq	_systable_beginscan
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r14), %rax
	cmpq	%r12, %rax
	cmovgq	%rax, %r12
	movl	%r13d, %edi
	callq	_systable_getnext
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_GETSTRUCT
	movslq	%eax, %r14
	movq	(%r14), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelid
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DUPLICATE_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_5
LBB0_6:
	incq	%r12
	jmp	LBB0_7
LBB0_1:
	movl	$1, %r12d
LBB0_7:
	movl	%r13d, %edi
	callq	_systable_endscan
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_MergeAttributesIntoExisting
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_MergeConstraintsIntoExisting
	movq	%r14, %rdi
	callq	_RelationGetRelid
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_RelationGetRelid
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rdx
	xorl	%r8d, %r8d
	cmpq	(%rdx), %rcx
	sete	%r8b
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_StoreCatalogInheritance1
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_table_close
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InheritsRelationId,4,2         ## @InheritsRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_Anum_pg_inherits_inhrelid,4,2  ## @Anum_pg_inherits_inhrelid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_InheritsRelidSeqnoIndexId,4,2  ## @InheritsRelidSeqnoIndexId
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ## @ERRCODE_DUPLICATE_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relation \"%s\" would be inherited from more than once"

	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
	.no_dead_strip	_CreateInheritance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CreateInheritance
_CreateInheritance:                     ; @CreateInheritance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _InheritsRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InheritsRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x25, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_table_open
	mov	x19, x0
Lloh5:
	adrp	x8, _Anum_pg_inherits_inhrelid@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Anum_pg_inherits_inhrelid@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_RelationGetRelid
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #12
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
Lloh14:
	adrp	x8, _InheritsRelidSeqnoIndexId@GOTPAGE
Lloh15:
	ldr	x8, [x8, _InheritsRelidSeqnoIndexId@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w23, #1
	add	x5, sp, #12
	mov	x0, x19
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	mov	x22, x0
	bl	_systable_getnext
	mov	x24, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_6
; %bb.1:
	mov	x26, #0
Lloh17:
	adrp	x27, _ERROR@GOTPAGE
Lloh18:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
Lloh19:
	adrp	x28, _ERRCODE_DUPLICATE_TABLE@GOTPAGE
Lloh20:
	ldr	x28, [x28, _ERRCODE_DUPLICATE_TABLE@GOTPAGEOFF]
Lloh21:
	adrp	x23, l_.str@PAGE
Lloh22:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #8]
	cmp	x8, x26
	csel	x26, x8, x26, gt
	mov	x0, x22
	bl	_systable_getnext
	mov	x24, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x25, w0
	ldr	x24, [x25]
	mov	x0, x20
	bl	_RelationGetRelid
	cmp	x24, x0
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x27]
	ldr	w0, [x28]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
	mov	x1, x0
	mov	x0, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
	b	LBB0_2
LBB0_5:
	add	x23, x26, #1
Lloh23:
	adrp	x25, _RowExclusiveLock@GOTPAGE
Lloh24:
	ldr	x25, [x25, _RowExclusiveLock@GOTPAGEOFF]
LBB0_6:
	mov	x0, x22
	bl	_systable_endscan
	mov	x0, x21
	mov	x1, x20
	bl	_MergeAttributesIntoExisting
	mov	x0, x21
	mov	x1, x20
	bl	_MergeConstraintsIntoExisting
	mov	x0, x21
	bl	_RelationGetRelid
	mov	x21, x0
	mov	x0, x20
	bl	_RelationGetRelid
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w4, eq
	mov	x0, x21
	mov	x2, x23
	mov	x3, x19
	bl	_StoreCatalogInheritance1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_table_close
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_InheritsRelationId,4,2         ; @InheritsRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_Anum_pg_inherits_inhrelid,4,2  ; @Anum_pg_inherits_inhrelid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_InheritsRelidSeqnoIndexId,4,2  ; @InheritsRelidSeqnoIndexId
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DUPLICATE_TABLE,4,2    ; @ERRCODE_DUPLICATE_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relation \"%s\" would be inherited from more than once"

	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
	.no_dead_strip	_CreateInheritance
.subsections_via_symbols
