	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_db_root
_make_db_root:                          ## @make_db_root
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_make_db_path
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movq	_R_OK@GOTPCREL(%rip), %rax
	movq	_W_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_X_OK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	__nc_access
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	-40(%rbp), %edi
	callq	_S_ISDIR
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	sbbl	%eax, %eax
	orl	%r14d, %eax
	jmp	LBB0_6
LBB0_2:
	movq	%r15, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_W_OK,4,2                       ## @W_OK
	.comm	_X_OK,4,2                       ## @X_OK
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_make_db_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_db_root
_make_db_root:                          ; @make_db_root
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x9, x2
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x0, x8, x9
	mov	sp, x0
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_make_db_path
	cbz	w0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.2:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	sub	x1, x29, #32
	mov	x0, x19
	bl	_stat
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh11:
	adrp	x8, _R_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _W_OK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _W_OK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _X_OK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _X_OK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	__nc_access
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldur	w0, [x29, #-32]
	bl	_S_ISDIR
	cmp	w0, #0
	csinv	w0, w20, wzr, ne
	b	LBB0_1
LBB0_6:
	mov	x0, x19
	mov	w1, #511
	bl	_mkdir
	b	LBB0_1
LBB0_7:
	mov	w0, #-1
	b	LBB0_1
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_W_OK,4,2                       ; @W_OK
	.comm	_X_OK,4,2                       ; @X_OK
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_make_db_root
.subsections_via_symbols
