	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitTempTableNamespace
_InitTempTableNamespace:                ## @InitTempTableNamespace
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_myTempNamespace@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_OidIsValid
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_MyDatabaseId@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movq	_ACL_CREATE_TEMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_database_aclcheck
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r12), %edi
	callq	_get_database_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	xorl	%eax, %eax
	callq	_RecoveryInProgress
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_READ_ONLY_SQL_TRANSACTION@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
LBB0_4:
	xorl	%eax, %eax
	callq	_IsParallelWorker
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_READ_ONLY_SQL_TRANSACTION@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_6:
	movq	_MyBackendId@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_get_namespace_oid
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_RemoveTempRelations
	jmp	LBB0_9
LBB0_7:
	movq	_BOOTSTRAP_SUPERUSERID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_NamespaceCreate
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
LBB0_9:
	movl	(%rbx), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_get_namespace_oid
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_OidIsValid
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_BOOTSTRAP_SUPERUSERID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_NamespaceCreate
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_CommandCounterIncrement
LBB0_11:
	movq	%r12, (%r13)
	movq	_myTempToastNamespace@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, (%rax)
	movq	_myTempNamespaceSubID@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_InvalidSubTransactionId@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_AssertState
	xorl	%eax, %eax
	callq	_GetCurrentSubTransactionId
	movq	%rax, (%rbx)
	movq	_baseSearchPathValid@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NAMEDATALEN,4,2                ## @NAMEDATALEN
	.comm	_myTempNamespace,8,3            ## @myTempNamespace
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_ACL_CREATE_TEMP,4,2            ## @ACL_CREATE_TEMP
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied to create temporary tables in database \"%s\""

	.comm	_ERRCODE_READ_ONLY_SQL_TRANSACTION,4,2 ## @ERRCODE_READ_ONLY_SQL_TRANSACTION
L_.str.1:                               ## @.str.1
	.asciz	"cannot create temporary tables during recovery"

L_.str.2:                               ## @.str.2
	.asciz	"cannot create temporary tables during a parallel operation"

L_.str.3:                               ## @.str.3
	.asciz	"pg_temp_%d"

	.comm	_MyBackendId,4,2                ## @MyBackendId
	.comm	_BOOTSTRAP_SUPERUSERID,4,2      ## @BOOTSTRAP_SUPERUSERID
L_.str.4:                               ## @.str.4
	.asciz	"pg_toast_temp_%d"

	.comm	_myTempToastNamespace,8,3       ## @myTempToastNamespace
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_myTempNamespaceSubID,8,3       ## @myTempNamespaceSubID
	.comm	_InvalidSubTransactionId,8,3    ## @InvalidSubTransactionId
	.comm	_baseSearchPathValid,4,2        ## @baseSearchPathValid
	.no_dead_strip	_InitTempTableNamespace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitTempTableNamespace
_InitTempTableNamespace:                ; @InitTempTableNamespace
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _NAMEDATALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAMEDATALEN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x22, _myTempNamespace@GOTPAGE
Lloh9:
	ldr	x22, [x22, _myTempNamespace@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_OidIsValid
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh10:
	adrp	x24, _MyDatabaseId@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MyDatabaseId@GOTPAGEOFF]
	ldr	w21, [x24]
	bl	_GetUserId
	mov	x1, x0
Lloh12:
	adrp	x8, _ACL_CREATE_TEMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACL_CREATE_TEMP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_pg_database_aclcheck
Lloh15:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x23, _ERROR@GOTPAGE
Lloh19:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w21, [x23]
Lloh20:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x24]
	bl	_get_database_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_2:
	bl	_RecoveryInProgress
Lloh25:
	adrp	x24, _ERRCODE_READ_ONLY_SQL_TRANSACTION@GOTPAGE
Lloh26:
	ldr	x24, [x24, _ERRCODE_READ_ONLY_SQL_TRANSACTION@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w21, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
	bl	_IsParallelWorker
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w21, [x23]
	ldr	w0, [x24]
	bl	_errcode
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_6:
Lloh31:
	adrp	x23, _MyBackendId@GOTPAGE
Lloh32:
	ldr	x23, [x23, _MyBackendId@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh33:
	adrp	x2, l_.str.3@PAGE
Lloh34:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	mov	x0, x19
	mov	w1, #1
	bl	_get_namespace_oid
	mov	x21, x0
	bl	_OidIsValid
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_RemoveTempRelations
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x8, _BOOTSTRAP_SUPERUSERID@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BOOTSTRAP_SUPERUSERID@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_NamespaceCreate
	mov	x21, x0
	bl	_CommandCounterIncrement
LBB0_9:
	ldr	w3, [x23]
Lloh38:
	adrp	x2, l_.str.4@PAGE
Lloh39:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	mov	x0, x19
	mov	w1, #1
	bl	_get_namespace_oid
	mov	x20, x0
	bl	_OidIsValid
	cbnz	w0, LBB0_11
; %bb.10:
Lloh40:
	adrp	x8, _BOOTSTRAP_SUPERUSERID@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BOOTSTRAP_SUPERUSERID@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_NamespaceCreate
	mov	x20, x0
	bl	_CommandCounterIncrement
LBB0_11:
	str	x21, [x22]
Lloh43:
	adrp	x8, _myTempToastNamespace@GOTPAGE
Lloh44:
	ldr	x8, [x8, _myTempToastNamespace@GOTPAGEOFF]
Lloh45:
	str	x20, [x8]
Lloh46:
	adrp	x8, _MyProc@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MyProc@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	str	x21, [x8]
Lloh49:
	adrp	x19, _myTempNamespaceSubID@GOTPAGE
Lloh50:
	ldr	x19, [x19, _myTempNamespaceSubID@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh51:
	adrp	x9, _InvalidSubTransactionId@GOTPAGE
Lloh52:
	ldr	x9, [x9, _InvalidSubTransactionId@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_AssertState
	bl	_GetCurrentSubTransactionId
	str	x0, [x19]
Lloh54:
	adrp	x8, _baseSearchPathValid@GOTPAGE
Lloh55:
	ldr	x8, [x8, _baseSearchPathValid@GOTPAGEOFF]
Lloh56:
	str	wzr, [x8]
	ldur	x8, [x29, #-56]
Lloh57:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh58:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_NAMEDATALEN,4,2                ; @NAMEDATALEN
	.comm	_myTempNamespace,8,3            ; @myTempNamespace
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_ACL_CREATE_TEMP,4,2            ; @ACL_CREATE_TEMP
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied to create temporary tables in database \"%s\""

	.comm	_ERRCODE_READ_ONLY_SQL_TRANSACTION,4,2 ; @ERRCODE_READ_ONLY_SQL_TRANSACTION
l_.str.1:                               ; @.str.1
	.asciz	"cannot create temporary tables during recovery"

l_.str.2:                               ; @.str.2
	.asciz	"cannot create temporary tables during a parallel operation"

l_.str.3:                               ; @.str.3
	.asciz	"pg_temp_%d"

	.comm	_MyBackendId,4,2                ; @MyBackendId
	.comm	_BOOTSTRAP_SUPERUSERID,4,2      ; @BOOTSTRAP_SUPERUSERID
l_.str.4:                               ; @.str.4
	.asciz	"pg_toast_temp_%d"

	.comm	_myTempToastNamespace,8,3       ; @myTempToastNamespace
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_myTempNamespaceSubID,8,3       ; @myTempNamespaceSubID
	.comm	_InvalidSubTransactionId,8,3    ; @InvalidSubTransactionId
	.comm	_baseSearchPathValid,4,2        ; @baseSearchPathValid
	.no_dead_strip	_InitTempTableNamespace
.subsections_via_symbols
