	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valid_db_path
_valid_db_path:                         ## @valid_db_path
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_strdup
	movq	%rax, %rbx
	movl	$1, %edi
	movq	%rax, %rsi
	callq	_DEBUG
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movl	-32(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	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	%rbx, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_13
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_4:
	movq	%rbx, %rdi
	callq	__nc_pathlast
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_DEBUG
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.5:
	movl	%r14d, %r14d
	movb	(%rbx,%r14), %r15b
	movb	$0, (%rbx,%r14)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_9
## %bb.6:
	movl	-32(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	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	%rbx, %rdi
	callq	_access
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movl	$1, %edi
	movq	%rbx, %rsi
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
LBB0_11:
	movl	$1, %edi
LBB0_12:
	callq	_DEBUG
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movb	%r15b, (%rbx,%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_W_OK,4,2                       ## @W_OK
	.comm	_X_OK,4,2                       ## @X_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"...not a writable directory"

L_.str.2:                               ## @.str.2
	.asciz	"...not found"

L_.str.4:                               ## @.str.4
	.asciz	"... no parent directory"

	.comm	_DBM_SUFFIX,8,3                 ## @DBM_SUFFIX
	.no_dead_strip	_valid_db_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valid_db_path
_valid_db_path:                         ; @valid_db_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	bl	_strdup
	mov	x19, x0
	mov	w0, #1
	mov	x1, x19
	bl	_DEBUG
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _R_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _W_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _W_OK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _X_OK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _X_OK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_12
LBB0_3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_4:
	mov	x0, x19
	bl	__nc_pathlast
	mov	x20, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_DEBUG
	cbz	w20, LBB0_9
; %bb.5:
	mov	w20, w20
	ldrb	w21, [x19, x20]
	strb	wzr, [x19, x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_stat
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _R_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _W_OK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _W_OK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _X_OK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _X_OK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_access
	cbz	x0, LBB0_13
LBB0_8:
	mov	w0, #1
	mov	x1, x19
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	w0, #1
LBB0_11:
	bl	_DEBUG
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_13:
	strb	w21, [x19, x20]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_W_OK,4,2                       ; @W_OK
	.comm	_X_OK,4,2                       ; @X_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"...not a writable directory"

l_.str.2:                               ; @.str.2
	.asciz	"...not found"

l_.str.4:                               ; @.str.4
	.asciz	"... no parent directory"

	.comm	_DBM_SUFFIX,8,3                 ; @DBM_SUFFIX
	.no_dead_strip	_valid_db_path
.subsections_via_symbols
