	.file	"extr_sqlite3.c_robust_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	robust_open, @function
robust_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	edx, edx
	cmove	r13d, DWORD PTR SQLITE_DEFAULT_FILE_PERMISSIONS[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L1
.L4:
	mov	edx, r13d
	mov	esi, ebx
	mov	rdi, rbp
	call	osOpen@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
	test	r14d, r14d
	jne	.L7
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, rsp
	mov	edi, r12d
	call	osFstat@PLT
	or	rax, QWORD PTR [rsp]
	jne	.L1
	mov	eax, DWORD PTR 8[rsp]
	and	eax, 511
	cmp	eax, r14d
	je	.L1
	mov	esi, r14d
	mov	edi, r12d
	call	osFchmod@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	robust_open, .-robust_open
	.comm	errno,8,8
	.comm	SQLITE_DEFAULT_FILE_PERMISSIONS,4,4
	.comm	O_CLOEXEC,4,4
	.comm	F_SETFD,4,4
	.comm	F_GETFD,4,4
	.comm	FD_CLOEXEC,4,4
	.comm	EINTR,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_robust_open.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	robust_open, %function
robust_open:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L15
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	subs	r9, r2, #0
	ldreq	r3, .L15+4
	mov	r5, r0
	mov	r6, r1
	movne	r10, r9
	ldreq	r10, [r3]
	ldr	r8, .L15+8
	ldr	r7, .L15+12
	b	.L4
.L13:
	ldr	r2, [r8]
	ldr	r3, [r7]
	cmp	r2, r3
	bne	.L1
.L4:
	mov	r2, r10
	mov	r1, r6
	mov	r0, r5
	bl	osOpen
	subs	r4, r0, #0
	blt	.L13
	cmp	r9, #0
	bne	.L7
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	add	r1, sp, #4
	bl	osFstat
	ldr	r3, [sp, #4]
	orrs	r3, r0, r3
	bne	.L1
	ldr	r3, [sp, #8]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	cmp	r3, r9
	beq	.L1
	mov	r1, r9
	mov	r0, r4
	bl	osFchmod
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	SQLITE_DEFAULT_FILE_PERMISSIONS
	.word	errno
	.word	EINTR
	.size	robust_open, .-robust_open
	.comm	errno,4,4
	.comm	SQLITE_DEFAULT_FILE_PERMISSIONS,4,4
	.comm	O_CLOEXEC,4,4
	.comm	F_SETFD,4,4
	.comm	F_GETFD,4,4
	.comm	FD_CLOEXEC,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
