	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdcreate                       ## -- Begin function mdcreate
	.p2align	4, 0x90
_mdcreate:                              ## @mdcreate
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax,%rsi,8), %rax
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	jg	LBB0_7
LBB0_2:
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	%r12d, %edx
	callq	_TablespaceCreateDbspace
	movq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_relpath
	movq	_O_RDWR@GOTPCREL(%rip), %rdx
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rdx), %esi
	movq	_O_EXCL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%rax, %r15
	movq	_PG_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_PathNameOpenFile
	movq	%rax, %r13
	testq	%rax, %rax
	jns	LBB0_6
## %bb.3:
	movq	_PG_BINARY@GOTPCREL(%rip), %rsi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rcx, %r12
	movl	%edx, %r13d
	callq	_PathNameOpenFile
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	%rax, %r13
	testq	%rax, %rax
	jns	LBB0_6
LBB0_5:
	movl	%edx, (%rcx)
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	%r15, %rdi
	callq	_pfree
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	__fdvec_resize
	movq	8(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	%r13, 8(%rax)
	movq	$0, (%rax)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_EXCL,4,2                     ## @O_EXCL
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_errno,4,2                      ## @errno
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not create file \"%s\": %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdcreate                       ; -- Begin function mdcreate
	.p2align	2
_mdcreate:                              ; @mdcreate
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8, x1, lsl #3]
	cbz	w2, LBB0_2
; %bb.1:
	cmp	x8, #0
	b.gt	LBB0_7
LBB0_2:
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldp	w1, w0, [x20, #16]
	mov	x2, x22
	bl	_TablespaceCreateDbspace
	ldr	x0, [x20, #16]
	mov	x1, x19
	bl	_relpath
	mov	x21, x0
Lloh0:
	adrp	x24, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _O_RDWR@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _O_EXCL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_EXCL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh8:
	adrp	x27, _PG_BINARY@GOTPAGE
Lloh9:
	ldr	x27, [x27, _PG_BINARY@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w1, w8, w9
	bl	_PathNameOpenFile
	mov	x23, x0
	tbz	x0, #63, LBB0_6
; %bb.3:
Lloh10:
	adrp	x25, _errno@GOTPAGE
Lloh11:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	ldr	w26, [x25]
	cbz	w22, LBB0_5
; %bb.4:
	ldr	w8, [x24]
	ldr	w9, [x27]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_PathNameOpenFile
	mov	x23, x0
	tbz	x0, #63, LBB0_6
LBB0_5:
	str	w26, [x25]
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	bl	_errcode_for_file_access
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_6:
	mov	x0, x21
	bl	_pfree
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	__fdvec_resize
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x19, lsl #3]
	stp	xzr, x23, [x8]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_EXCL,4,2                     ; @O_EXCL
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_errno,4,2                      ; @errno
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not create file \"%s\": %m"

.subsections_via_symbols
