	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LookupCreationNamespace        ## -- Begin function LookupCreationNamespace
	.p2align	4, 0x90
_LookupCreationNamespace:               ## @LookupCreationNamespace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_get_namespace_oid
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pg_namespace_aclcheck
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_OBJECT_SCHEMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_aclcheck_error
	jmp	LBB0_4
LBB0_1:
	xorl	%edi, %edi
	callq	_AccessTempTableNamespace
	movq	_myTempNamespace@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_temp"

	.comm	_myTempNamespace,4,2            ## @myTempNamespace
	.comm	_ACL_CREATE,4,2                 ## @ACL_CREATE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_OBJECT_SCHEMA,4,2              ## @OBJECT_SCHEMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LookupCreationNamespace        ; -- Begin function LookupCreationNamespace
	.p2align	2
_LookupCreationNamespace:               ; @LookupCreationNamespace
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_get_namespace_oid
	mov	x20, x0
	bl	_GetUserId
	mov	x1, x0
Lloh2:
	adrp	x8, _ACL_CREATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACL_CREATE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pg_namespace_aclcheck
Lloh5:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _OBJECT_SCHEMA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OBJECT_SCHEMA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_aclcheck_error
	b	LBB0_4
LBB0_3:
	bl	_AccessTempTableNamespace
Lloh11:
	adrp	x8, _myTempNamespace@GOTPAGE
Lloh12:
	ldr	x8, [x8, _myTempNamespace@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_temp"

	.comm	_myTempNamespace,4,2            ; @myTempNamespace
	.comm	_ACL_CREATE,4,2                 ; @ACL_CREATE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_OBJECT_SCHEMA,4,2              ; @OBJECT_SCHEMA
.subsections_via_symbols
