	.file	"extr_sqlite3.c_unixTempFileDir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SQLITE_TMPDIR"
.LC1:
	.string	"TMPDIR"
	.text
	.p2align 4
	.type	unixTempFileDir, @function
unixTempFileDir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR sqlite3_temp_directory[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR azDirs.1932[rip], 0
	je	.L21
.L2:
	cmp	QWORD PTR azDirs.1932[rip+8], 0
	je	.L22
.L3:
	lea	rbx, azDirs.1932[rip]
	lea	r13, 4[rsp]
	lea	rbp, 48[rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	rbx, rbp
	je	.L23
.L17:
	mov	r12, QWORD PTR [rbx]
	add	rbx, 8
.L8:
	test	r12, r12
	je	.L7
	mov	rsi, r13
	mov	rdi, r12
	call	osStat@PLT
	test	rax, rax
	jne	.L7
	mov	edi, DWORD PTR 4[rsp]
	call	S_ISDIR@PLT
	test	rax, rax
	je	.L7
	mov	esi, 3
	mov	rdi, r12
	call	osAccess@PLT
	test	rax, rax
	je	.L1
	cmp	rbx, rbp
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L23:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	QWORD PTR azDirs.1932[rip+8], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR azDirs.1932[rip], rax
	jmp	.L2
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	unixTempFileDir, .-unixTempFileDir
	.section	.rodata.str1.1
.LC2:
	.string	"/var/tmp"
.LC3:
	.string	"/usr/tmp"
.LC4:
	.string	"/tmp"
.LC5:
	.string	"."
	.section	.data.rel.local,"aw"
	.align 32
	.type	azDirs.1932, @object
	.size	azDirs.1932, 48
azDirs.1932:
	.quad	0
	.quad	0
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.comm	sqlite3_temp_directory,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sqlite3.c_unixTempFileDir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SQLITE_TMPDIR\000"
	.align	2
.LC1:
	.ascii	"TMPDIR\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unixTempFileDir, %function
unixTempFileDir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L25
	ldr	r3, .L25+4
	ldr	r2, [r4]
	ldr	r1, .L25+8
	sub	sp, sp, #8
	cmp	r2, #0
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	ldr	r5, [r3]
	beq	.L21
.L2:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L22
.L3:
	ldr	r4, .L25
	add	r6, r4, #24
	b	.L8
.L7:
	cmp	r4, r6
	beq	.L23
.L17:
	ldr	r5, [r4], #4
.L8:
	cmp	r5, #0
	beq	.L7
	mov	r1, sp
	mov	r0, r5
	bl	osStat
	cmp	r0, #0
	bne	.L7
	ldr	r0, [sp]
	bl	S_ISDIR
	cmp	r0, #0
	beq	.L7
	mov	r1, #3
	mov	r0, r5
	bl	osAccess
	cmp	r0, #0
	beq	.L1
	cmp	r4, r6
	bne	.L17
.L23:
	mov	r5, #0
.L1:
	ldr	r3, .L25+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	ldr	r0, .L25+12
	bl	getenv
	str	r0, [r4, #4]
	b	.L3
.L21:
	ldr	r0, .L25+16
	bl	getenv
	str	r0, [r4]
	b	.L2
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LANCHOR0
	.word	sqlite3_temp_directory
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	unixTempFileDir, .-unixTempFileDir
	.section	.rodata.str1.4
	.align	2
.LC3:
	.ascii	"/var/tmp\000"
	.align	2
.LC4:
	.ascii	"/usr/tmp\000"
	.align	2
.LC5:
	.ascii	"/tmp\000"
	.align	2
.LC6:
	.ascii	".\000"
	.comm	sqlite3_temp_directory,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	azDirs.4216, %object
	.size	azDirs.4216, 24
azDirs.4216:
	.word	0
	.word	0
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
