	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mkFullPathname
_mkFullPathname:                        ## @mkFullPathname
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_sqlite3Strlen30
	movl	%eax, %ebx
	xorl	%eax, %eax
	cmpb	$47, (%r14)
	je	LBB0_3
## %bb.1:
	leal	-2(%r15), %esi
	movq	%r12, %rdi
	callq	_osGetcwd
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r12, %rdi
	callq	_sqlite3Strlen30
	movslq	%eax, %rcx
	incl	%eax
	movb	$47, (%r12,%rcx)
LBB0_3:
	addl	%eax, %ebx
	cmpl	%r15d, %ebx
	jge	LBB0_4
## %bb.5:
	subl	%eax, %r15d
	cltq
	addq	%rax, %r12
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_sqlite3_snprintf
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	cltq
	movb	$0, (%r12,%rax)
	movq	_SQLITE_CANTOPEN_BKPT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_SQLITE_CANTOPEN_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_unixLogError                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_CANTOPEN_BKPT,4,2       ## @SQLITE_CANTOPEN_BKPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getcwd"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_mkFullPathname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mkFullPathname
_mkFullPathname:                        ; @mkFullPathname
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_sqlite3Strlen30
	mov	x22, x0
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_4
LBB0_2:
	sub	w1, w21, #2
	mov	x0, x20
	bl	_osGetcwd
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_sqlite3Strlen30
	add	w8, w0, #1
	mov	w9, #47
	strb	w9, [x20, w0, sxtw]
LBB0_4:
	add	w9, w8, w22
	cmp	w9, w21
	b.ge	LBB0_6
; %bb.5:
	sub	w0, w21, w8
	add	x1, x20, w8, sxtw
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_sqlite3_snprintf
Lloh2:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	strb	wzr, [x20, w8, sxtw]
Lloh4:
	adrp	x8, _SQLITE_CANTOPEN_BKPT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_CANTOPEN_BKPT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh6:
	adrp	x8, _SQLITE_CANTOPEN_BKPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_CANTOPEN_BKPT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_unixLogError
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_CANTOPEN_BKPT,4,2       ; @SQLITE_CANTOPEN_BKPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getcwd"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_mkFullPathname
.subsections_via_symbols
