	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unixTempFileDir
_unixTempFileDir:                       ## @unixTempFileDir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_sqlite3_temp_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, _unixTempFileDir.azDirs.0(%rip)
	je	LBB0_1
## %bb.2:
	cmpq	$0, _unixTempFileDir.azDirs.1(%rip)
	je	LBB0_3
LBB0_4:
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	movq	%rax, _unixTempFileDir.azDirs.0(%rip)
	cmpq	$0, _unixTempFileDir.azDirs.1(%rip)
	jne	LBB0_4
LBB0_3:
	leaq	L_.str.5(%rip), %rdi
	callq	_getenv
	movq	%rax, _unixTempFileDir.azDirs.1(%rip)
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_5:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	_unixTempFileDir.azDirs.0(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.9:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_10
LBB0_12:
	movq	_unixTempFileDir.azDirs.1(%rip), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_14
LBB0_16:
	leaq	L_.str(%rip), %rbx
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_17
LBB0_19:
	leaq	L_.str.1(%rip), %rbx
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_20
LBB0_22:
	leaq	L_.str.2(%rip), %rbx
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_23
LBB0_25:
	leaq	L_.str.3(%rip), %rbx
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_26
LBB0_28:
	xorl	%ebx, %ebx
LBB0_29:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_17:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_29
LBB0_20:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_29
LBB0_23:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_25
	jmp	LBB0_29
LBB0_6:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_29
LBB0_26:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_28
	jmp	LBB0_29
LBB0_10:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_29
LBB0_14:
	movl	-16(%rbp), %edi
	callq	_S_ISDIR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_osAccess
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_unixTempFileDir.azDirs.0,8,4 ## @unixTempFileDir.azDirs.0
.zerofill __DATA,__bss,_unixTempFileDir.azDirs.1,8,4 ## @unixTempFileDir.azDirs.1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/var/tmp"

L_.str.1:                               ## @.str.1
	.asciz	"/usr/tmp"

L_.str.2:                               ## @.str.2
	.asciz	"/tmp"

L_.str.3:                               ## @.str.3
	.asciz	"."

	.comm	_sqlite3_temp_directory,8,3     ## @sqlite3_temp_directory
L_.str.4:                               ## @.str.4
	.asciz	"SQLITE_TMPDIR"

L_.str.5:                               ## @.str.5
	.asciz	"TMPDIR"

	.no_dead_strip	_unixTempFileDir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unixTempFileDir
_unixTempFileDir:                       ; @unixTempFileDir
	.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
Lloh0:
	adrp	x8, _sqlite3_temp_directory@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sqlite3_temp_directory@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	adrp	x21, _unixTempFileDir.azDirs.0@PAGE
	ldr	x8, [x21, _unixTempFileDir.azDirs.0@PAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str.4@PAGE
Lloh4:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
	str	x0, [x21, _unixTempFileDir.azDirs.0@PAGEOFF]
LBB0_2:
	adrp	x20, _unixTempFileDir.azDirs.1@PAGE
	ldr	x8, [x20, _unixTempFileDir.azDirs.1@PAGEOFF]
	cbz	x8, LBB0_4
; %bb.3:
	cbnz	x19, LBB0_5
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str.5@PAGE
Lloh6:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getenv
	str	x0, [x20, _unixTempFileDir.azDirs.1@PAGEOFF]
	cbz	x19, LBB0_6
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_osStat
	cbz	x0, LBB0_22
LBB0_6:
	ldr	x19, [x21, _unixTempFileDir.azDirs.0@PAGEOFF]
	cbz	x19, LBB0_8
; %bb.7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_osStat
	cbz	x0, LBB0_26
LBB0_8:
	ldr	x19, [x20, _unixTempFileDir.azDirs.1@PAGEOFF]
	cbz	x19, LBB0_10
; %bb.9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_osStat
	cbz	x0, LBB0_28
LBB0_10:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_osStat
	cbz	x0, LBB0_16
LBB0_11:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_osStat
	cbz	x0, LBB0_18
LBB0_12:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #8
	bl	_osStat
	cbz	x0, LBB0_20
LBB0_13:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #8
	bl	_osStat
	cbz	x0, LBB0_24
LBB0_14:
	mov	x19, #0
LBB0_15:
	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_16:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_11
; %bb.17:
Lloh15:
	adrp	x19, l_.str@PAGE
Lloh16:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_11
	b	LBB0_15
LBB0_18:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_12
; %bb.19:
Lloh17:
	adrp	x19, l_.str.1@PAGE
Lloh18:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_12
	b	LBB0_15
LBB0_20:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_13
; %bb.21:
Lloh19:
	adrp	x19, l_.str.2@PAGE
Lloh20:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_13
	b	LBB0_15
LBB0_22:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_6
; %bb.23:
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_6
	b	LBB0_15
LBB0_24:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_14
; %bb.25:
Lloh21:
	adrp	x19, l_.str.3@PAGE
Lloh22:
	add	x19, x19, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_14
	b	LBB0_15
LBB0_26:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_8
; %bb.27:
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_8
	b	LBB0_15
LBB0_28:
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	x0, LBB0_10
; %bb.29:
	mov	x0, x19
	mov	w1, #3
	bl	_osAccess
	cbnz	x0, LBB0_10
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_unixTempFileDir.azDirs.0,8,3 ; @unixTempFileDir.azDirs.0
.zerofill __DATA,__bss,_unixTempFileDir.azDirs.1,8,3 ; @unixTempFileDir.azDirs.1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/var/tmp"

l_.str.1:                               ; @.str.1
	.asciz	"/usr/tmp"

l_.str.2:                               ; @.str.2
	.asciz	"/tmp"

l_.str.3:                               ; @.str.3
	.asciz	"."

	.comm	_sqlite3_temp_directory,8,3     ; @sqlite3_temp_directory
l_.str.4:                               ; @.str.4
	.asciz	"SQLITE_TMPDIR"

l_.str.5:                               ; @.str.5
	.asciz	"TMPDIR"

	.no_dead_strip	_unixTempFileDir
.subsections_via_symbols
