	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NamespaceCreate                ## -- Begin function NamespaceCreate
	.p2align	4, 0x90
_NamespaceCreate:                       ## @NamespaceCreate
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_namespace@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	testq	%r13, %r13
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	_NAMESPACENAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_PointerGetDatum
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_SearchSysCacheExists1
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DUPLICATE_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	testl	%r12d, %r12d
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_OBJECT_SCHEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_get_user_default_acl
LBB0_7:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movq	%rax, %r12
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.8:
	leaq	(,%rbx,4), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	___bzero
	shlq	$3, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___bzero
LBB0_9:
	movq	_NamespaceOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Anum_pg_namespace_oid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_GetNewOidWithIndex
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	movslq	(%rbx), %rcx
	movq	%rax, -8(%r14,%rcx,8)
	leaq	-100(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_namestrcpy
	movq	%rbx, %rdi
	callq	_NameGetDatum
	movq	_Anum_pg_namespace_nspname@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, -8(%r14,%rcx,8)
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_namespace_nspowner@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, -8(%r14,%rcx,8)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_PointerGetDatum
	movq	_Anum_pg_namespace_nspacl@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, -8(%r14,%rcx,8)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:
	movq	_Anum_pg_namespace_nspacl@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, -4(%rdx,%rax,4)
LBB0_12:
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_heap_form_tuple
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_CatalogTupleInsert
	movl	%r15d, %edi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_table_close
	movq	_NamespaceRelationId@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%edi, -84(%rbp)
	movl	%r15d, -88(%rbp)
	movq	$0, -96(%rbp)
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_recordDependencyOnOwner
	movl	(%r14), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movq	%r13, %r8
	callq	_recordDependencyOnNewAcl
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.13:
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	callq	_recordDependencyOnCurrentExtension
LBB0_14:
	movl	(%r14), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_InvokeObjectPostCreateHook
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_namespace,4,2         ## @Natts_pg_namespace
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no namespace name supplied"

	.comm	_NAMESPACENAME,4,2              ## @NAMESPACENAME
	.comm	_ERRCODE_DUPLICATE_SCHEMA,4,2   ## @ERRCODE_DUPLICATE_SCHEMA
L_.str.1:                               ## @.str.1
	.asciz	"schema \"%s\" already exists"

	.comm	_OBJECT_SCHEMA,4,2              ## @OBJECT_SCHEMA
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_NamespaceRelationId,4,2        ## @NamespaceRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_NamespaceOidIndexId,4,2        ## @NamespaceOidIndexId
	.comm	_Anum_pg_namespace_oid,4,2      ## @Anum_pg_namespace_oid
	.comm	_Anum_pg_namespace_nspname,4,2  ## @Anum_pg_namespace_nspname
	.comm	_Anum_pg_namespace_nspowner,4,2 ## @Anum_pg_namespace_nspowner
	.comm	_Anum_pg_namespace_nspacl,4,2   ## @Anum_pg_namespace_nspacl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NamespaceCreate                ; -- Begin function NamespaceCreate
	.p2align	2
_NamespaceCreate:                       ; @NamespaceCreate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x28, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _Natts_pg_namespace@GOTPAGE
Lloh4:
	ldr	x25, [x25, _Natts_pg_namespace@GOTPAGEOFF]
	ldr	w12, [x25]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	lsl	x8, x12, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh9:
	adrp	x26, _ERROR@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x26]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh13:
	adrp	x8, _NAMESPACENAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NAMESPACENAME@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_PointerGetDatum
	mov	x1, x0
	mov	x0, x24
	bl	_SearchSysCacheExists1
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w24, [x26]
Lloh16:
	adrp	x8, _ERRCODE_DUPLICATE_SCHEMA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_SCHEMA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_errcode
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_4:
	cbz	w28, LBB0_6
; %bb.5:
	mov	x24, #0
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x8, _OBJECT_SCHEMA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _OBJECT_SCHEMA@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh25:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_get_user_default_acl
	mov	x24, x0
LBB0_7:
Lloh27:
	adrp	x8, _NamespaceRelationId@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NamespaceRelationId@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_table_open
	mov	x26, x0
	ldr	w27, [x0]
	ldr	w25, [x25]
	cmp	w25, #1
	b.lt	LBB0_9
; %bb.8:
	lsl	x1, x25, #2
	mov	x0, x21
	bl	_bzero
	lsl	x1, x25, #3
	mov	x0, x22
	bl	_bzero
LBB0_9:
Lloh33:
	adrp	x8, _NamespaceOidIndexId@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NamespaceOidIndexId@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x19, _Anum_pg_namespace_oid@GOTPAGE
Lloh37:
	ldr	x19, [x19, _Anum_pg_namespace_oid@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x26
	bl	_GetNewOidWithIndex
	mov	x25, x0
	bl	_ObjectIdGetDatum
	ldrsw	x8, [x19]
	add	x8, x22, x8, lsl #3
	stur	x0, [x8, #-8]
	sub	x0, x29, #92
	mov	x1, x23
	bl	_namestrcpy
	sub	x0, x29, #92
	bl	_NameGetDatum
Lloh38:
	adrp	x8, _Anum_pg_namespace_nspname@GOTPAGE
Lloh39:
	ldr	x8, [x8, _Anum_pg_namespace_nspname@GOTPAGEOFF]
Lloh40:
	ldrsw	x8, [x8]
	add	x8, x22, x8, lsl #3
	stur	x0, [x8, #-8]
	mov	x0, x20
	bl	_ObjectIdGetDatum
Lloh41:
	adrp	x8, _Anum_pg_namespace_nspowner@GOTPAGE
Lloh42:
	ldr	x8, [x8, _Anum_pg_namespace_nspowner@GOTPAGEOFF]
Lloh43:
	ldrsw	x8, [x8]
	add	x8, x22, x8, lsl #3
	stur	x0, [x8, #-8]
	cbz	x24, LBB0_11
; %bb.10:
	mov	x0, x24
	bl	_PointerGetDatum
Lloh44:
	adrp	x8, _Anum_pg_namespace_nspacl@GOTPAGE
Lloh45:
	ldr	x8, [x8, _Anum_pg_namespace_nspacl@GOTPAGEOFF]
Lloh46:
	ldrsw	x8, [x8]
	add	x8, x22, x8, lsl #3
	stur	x0, [x8, #-8]
	b	LBB0_12
LBB0_11:
Lloh47:
	adrp	x8, _Anum_pg_namespace_nspacl@GOTPAGE
Lloh48:
	ldr	x8, [x8, _Anum_pg_namespace_nspacl@GOTPAGEOFF]
Lloh49:
	ldrsw	x8, [x8]
	add	x8, x21, x8, lsl #2
	mov	w9, #1
	stur	w9, [x8, #-4]
LBB0_12:
Lloh50:
	adrp	x19, _NamespaceRelationId@GOTPAGE
Lloh51:
	ldr	x19, [x19, _NamespaceRelationId@GOTPAGEOFF]
	mov	x0, x27
	mov	x1, x22
	mov	x2, x21
	bl	_heap_form_tuple
	mov	x1, x0
	mov	x0, x26
	bl	_CatalogTupleInsert
	mov	x0, x25
	bl	_OidIsValid
	bl	_Assert
Lloh52:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh53:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_table_close
	ldr	w0, [x19]
	stp	w25, w0, [x29, #-104]
	stur	xzr, [x29, #-112]
	mov	x1, x25
	mov	x2, x20
	bl	_recordDependencyOnOwner
	ldr	w0, [x19]
	mov	x1, x25
	mov	w2, #0
	mov	x3, x20
	mov	x4, x24
	bl	_recordDependencyOnNewAcl
	cbnz	w28, LBB0_14
; %bb.13:
	sub	x0, x29, #112
	mov	w1, #0
	bl	_recordDependencyOnCurrentExtension
LBB0_14:
	ldr	w0, [x19]
	mov	x1, x25
	mov	w2, #0
	bl	_InvokeObjectPostCreateHook
	ldur	x8, [x29, #-88]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x25
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_namespace,4,2         ; @Natts_pg_namespace
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no namespace name supplied"

	.comm	_NAMESPACENAME,4,2              ; @NAMESPACENAME
	.comm	_ERRCODE_DUPLICATE_SCHEMA,4,2   ; @ERRCODE_DUPLICATE_SCHEMA
l_.str.1:                               ; @.str.1
	.asciz	"schema \"%s\" already exists"

	.comm	_OBJECT_SCHEMA,4,2              ; @OBJECT_SCHEMA
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_NamespaceRelationId,4,2        ; @NamespaceRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_NamespaceOidIndexId,4,2        ; @NamespaceOidIndexId
	.comm	_Anum_pg_namespace_oid,4,2      ; @Anum_pg_namespace_oid
	.comm	_Anum_pg_namespace_nspname,4,2  ; @Anum_pg_namespace_nspname
	.comm	_Anum_pg_namespace_nspowner,4,2 ; @Anum_pg_namespace_nspowner
	.comm	_Anum_pg_namespace_nspacl,4,2   ; @Anum_pg_namespace_nspacl
.subsections_via_symbols
