	.file	"extr_sqlite3.c_seekAndWriteFd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	seekAndWriteFd, @function
seekAndWriteFd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	xor	edi, edi
	and	ecx, -131072
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sete	dil
	mov	rbx, r8
	call	assert@PLT
	xor	edi, edi
	cmp	ebp, 2
	setg	dil
	call	assert@PLT
	xor	edi, edi
	test	rbx, rbx
	setne	dil
	call	assert@PLT
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	esi, r12d
	mov	edi, ebp
	call	lseek@PLT
	mov	edi, -1
	call	SimulateIOError@PLT
	movsx	rdi, DWORD PTR TIMER_ELAPSED[rip]
	call	OSTRACE@PLT
	mov	eax, DWORD PTR errno[rip]
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	seekAndWriteFd, .-seekAndWriteFd
	.comm	errno,4,4
	.comm	TIMER_START,4,4
	.comm	TIMER_END,4,4
	.comm	TIMER_ELAPSED,4,4
	.comm	SEEK_SET,4,4
	.comm	EINTR,4,4
	.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_seekAndWriteFd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	seekAndWriteFd, %function
seekAndWriteFd:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	lsr	r3, r3, #17
	lsl	r3, r3, #17
	push	{r4, r5, r6, lr}
	mov	r4, r0
	clz	r0, r3
	mov	r5, r1
	lsr	r0, r0, #5
	ldr	r6, [sp, #16]
	bl	assert
	cmp	r4, #2
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	subs	r0, r6, #0
	movne	r0, #1
	bl	assert
	ldr	r3, .L4
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	bl	lseek
	mvn	r0, #0
	bl	SimulateIOError
	ldr	r3, .L4+4
	ldr	r0, [r3]
	bl	OSTRACE
	ldr	r3, .L4+8
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r6]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	SEEK_SET
	.word	TIMER_ELAPSED
	.word	errno
	.size	seekAndWriteFd, .-seekAndWriteFd
	.comm	errno,4,4
	.comm	TIMER_START,4,4
	.comm	TIMER_END,4,4
	.comm	TIMER_ELAPSED,4,4
	.comm	SEEK_SET,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
