	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TablespaceCreateDbspace        ## -- Begin function TablespaceCreateDbspace
	.p2align	4, 0x90
_TablespaceCreateDbspace:               ## @TablespaceCreateDbspace
	.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	_GLOBALTABLESPACE_OID@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_23
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%r14, %rdi
	callq	_OidIsValid
	movl	%eax, %edi
	callq	_Assert
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_GetDatabasePath
	movq	%rax, %r14
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_2
## %bb.19:
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	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
	jmp	LBB0_21
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_18
## %bb.3:
	movq	_TablespaceCreateLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_MakePGDirectory
	testq	%rax, %rax
	jns	LBB0_17
## %bb.6:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	cmpq	%rax, (%r13)
	je	LBB0_9
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	%r14, %rdi
	callq	_pstrdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_get_parent_directory
	movq	%rbx, %rdi
	callq	_get_parent_directory
	movq	%rbx, %rdi
	callq	_MakePGDirectory
	testq	%rax, %rax
	jns	LBB0_12
## %bb.10:
	movq	(%r13), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:
	movq	%rbx, %rdi
	callq	_pfree
	movq	%r14, %rdi
	callq	_pstrdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_get_parent_directory
	movq	%rbx, %rdi
	callq	_MakePGDirectory
	testq	%rax, %rax
	jns	LBB0_15
## %bb.13:
	movq	(%r13), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	movq	%rbx, %rdi
	callq	_pfree
	movq	%r14, %rdi
	callq	_MakePGDirectory
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_17
LBB0_18:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.1(%rip), %rdi
LBB0_21:
	movq	%r14, %rsi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_22
LBB0_4:
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_5
LBB0_17:
	movl	(%r12), %edi
	callq	_LWLockRelease
LBB0_22:
	movq	%r14, %rdi
	callq	_pfree
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOBALTABLESPACE_OID,8,3       ## @GLOBALTABLESPACE_OID
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_TablespaceCreateLock,4,2       ## @TablespaceCreateLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create directory \"%s\": %m"

	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.1:                               ## @.str.1
	.asciz	"could not stat directory \"%s\": %m"

	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
L_.str.2:                               ## @.str.2
	.asciz	"\"%s\" exists but is not a directory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TablespaceCreateDbspace        ; -- Begin function TablespaceCreateDbspace
	.p2align	2
_TablespaceCreateDbspace:               ; @TablespaceCreateDbspace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _GLOBALTABLESPACE_OID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLOBALTABLESPACE_OID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_23
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_OidIsValid
	bl	_Assert
	mov	x0, x21
	bl	_OidIsValid
	bl	_Assert
	mov	x0, x21
	mov	x1, x19
	bl	_GetDatabasePath
	mov	x19, x0
	add	x1, sp, #8
	bl	_stat
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbnz	x0, LBB0_22
; %bb.3:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_errcode
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_4:
Lloh11:
	adrp	x23, _errno@GOTPAGE
Lloh12:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh13:
	adrp	x21, _ENOENT@GOTPAGE
Lloh14:
	ldr	x21, [x21, _ENOENT@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.5:
Lloh15:
	adrp	x22, _TablespaceCreateLock@GOTPAGE
Lloh16:
	ldr	x22, [x22, _TablespaceCreateLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh17:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	cbz	x0, LBB0_20
LBB0_6:
	mov	x0, x19
	bl	_MakePGDirectory
	tbz	x0, #63, LBB0_21
; %bb.7:
	cbz	w20, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
LBB0_9:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_10:
	mov	x0, x19
	bl	_pstrdup
	mov	x20, x0
	bl	_get_parent_directory
	mov	x0, x20
	bl	_get_parent_directory
	mov	x0, x20
	bl	_MakePGDirectory
	tbz	x0, #63, LBB0_13
; %bb.11:
	ldr	x8, [x23]
Lloh25:
	adrp	x9, _EEXIST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
Lloh28:
	adrp	x8, _ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_13:
	mov	x0, x20
	bl	_pfree
	mov	x0, x19
	bl	_pstrdup
	mov	x20, x0
	bl	_get_parent_directory
	mov	x0, x20
	bl	_MakePGDirectory
	tbz	x0, #63, LBB0_16
; %bb.14:
	ldr	x8, [x23]
Lloh33:
	adrp	x9, _EEXIST@GOTPAGE
Lloh34:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
Lloh36:
	adrp	x8, _ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_16:
	mov	x0, x20
	bl	_pfree
	mov	x0, x19
	bl	_MakePGDirectory
	tbz	x0, #63, LBB0_21
; %bb.17:
Lloh41:
	adrp	x8, _ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh44:
	adrp	x0, l_.str@PAGE
Lloh45:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	b	LBB0_21
LBB0_18:
Lloh46:
	adrp	x8, _ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh49:
	adrp	x0, l_.str.1@PAGE
Lloh50:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_19:
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	b	LBB0_22
LBB0_20:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_6
LBB0_21:
	ldr	w0, [x22]
	bl	_LWLockRelease
LBB0_22:
	mov	x0, x19
	bl	_pfree
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOBALTABLESPACE_OID,8,3       ; @GLOBALTABLESPACE_OID
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_TablespaceCreateLock,4,2       ; @TablespaceCreateLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create directory \"%s\": %m"

	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.1:                               ; @.str.1
	.asciz	"could not stat directory \"%s\": %m"

	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
l_.str.2:                               ; @.str.2
	.asciz	"\"%s\" exists but is not a directory"

.subsections_via_symbols
