	.file	"extr_remote-fileio.c_remote_fileio_func_lseek.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	remote_fileio_func_lseek, @function
remote_fileio_func_lseek:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rdi
	lea	r13, 24[rsp]
	lea	r12, 8[rsp]
	mov	rsi, r13
	mov	rdi, r12
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	remote_fileio_extract_int@PLT
	test	rax, rax
	jne	.L7
	mov	edi, DWORD PTR 24[rsp]
	call	remote_fileio_map_fd@PLT
	cmp	DWORD PTR FIO_FD_INVALID[rip], eax
	mov	ebp, eax
	je	.L13
	cmp	DWORD PTR FIO_FD_CONSOLE_IN[rip], eax
	je	.L5
	cmp	DWORD PTR FIO_FD_CONSOLE_OUT[rip], eax
	je	.L5
	lea	rsi, 32[rsp]
	mov	rdi, r12
	call	remote_fileio_extract_long@PLT
	test	rax, rax
	jne	.L7
	mov	rsi, r13
	mov	rdi, r12
	mov	r14, QWORD PTR 32[rsp]
	call	remote_fileio_extract_int@PLT
	test	rax, rax
	jne	.L7
	mov	rdi, QWORD PTR 24[rsp]
	lea	rsi, 20[rsp]
	call	remote_fileio_seek_flag_to_host@PLT
	test	rax, rax
	jne	.L14
	mov	edx, DWORD PTR 20[rsp]
	mov	edi, ebp
	mov	rsi, r14
	mov	DWORD PTR remote_fio_no_longjmp[rip], 1
	call	lseek@PLT
	mov	rdi, rax
	cmp	rax, -1
	je	.L15
	call	remote_fileio_return_success@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	remote_fileio_ioerror@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR FILEIO_ESPIPE[rip]
	mov	edi, -1
	call	remote_fileio_reply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	call	remote_fileio_badfd@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR FILEIO_EINVAL[rip]
	mov	edi, -1
	call	remote_fileio_reply@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	call	remote_fileio_return_errno@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	remote_fileio_func_lseek, .-remote_fileio_func_lseek
	.comm	remote_fio_no_longjmp,4,4
	.comm	FIO_FD_INVALID,4,4
	.comm	FIO_FD_CONSOLE_OUT,4,4
	.comm	FIO_FD_CONSOLE_IN,4,4
	.comm	FILEIO_ESPIPE,4,4
	.comm	FILEIO_EINVAL,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_remote-fileio.c_remote_fileio_func_lseek.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	remote_fileio_func_lseek, %function
remote_fileio_func_lseek:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L17
	sub	sp, sp, #28
	str	r0, [sp, #4]
	add	r1, sp, #8
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	remote_fileio_extract_int
	cmp	r0, #0
	bne	.L7
	ldr	r0, [sp, #8]
	bl	remote_fileio_map_fd
	ldr	r3, .L17+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L13
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
	add	r1, sp, #12
	add	r0, sp, #4
	bl	remote_fileio_extract_long
	cmp	r0, #0
	bne	.L7
	add	r1, sp, #8
	add	r0, sp, #4
	ldr	r5, [sp, #12]
	bl	remote_fileio_extract_int
	cmp	r0, #0
	bne	.L7
	ldr	r0, [sp, #8]
	add	r1, sp, #16
	bl	remote_fileio_seek_flag_to_host
	cmp	r0, #0
	bne	.L14
	mov	ip, #1
	ldr	r3, .L17+16
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [sp, #16]
	str	ip, [r3]
	bl	lseek
	cmn	r0, #1
	beq	.L15
	bl	remote_fileio_return_success
	b	.L1
.L7:
	bl	remote_fileio_ioerror
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	ldr	r3, .L17+20
	mvn	r0, #0
	ldr	r1, [r3]
	bl	remote_fileio_reply
	b	.L1
.L13:
	bl	remote_fileio_badfd
	b	.L1
.L14:
	ldr	r3, .L17+24
	mvn	r0, #0
	ldr	r1, [r3]
	bl	remote_fileio_reply
	b	.L1
.L15:
	bl	remote_fileio_return_errno
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	FIO_FD_INVALID
	.word	FIO_FD_CONSOLE_IN
	.word	FIO_FD_CONSOLE_OUT
	.word	remote_fio_no_longjmp
	.word	FILEIO_ESPIPE
	.word	FILEIO_EINVAL
	.size	remote_fileio_func_lseek, .-remote_fileio_func_lseek
	.comm	remote_fio_no_longjmp,4,4
	.comm	FIO_FD_INVALID,4,4
	.comm	FIO_FD_CONSOLE_OUT,4,4
	.comm	FIO_FD_CONSOLE_IN,4,4
	.comm	FILEIO_ESPIPE,4,4
	.comm	FILEIO_EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
