	.file	"extr_fis.c_fis_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FIS directory"
	.text
	.p2align 4
	.type	fis_open, @function
fis_open:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR fis_fd[rip], 0
	js	.L2
	xor	eax, eax
	call	fis_close@PLT
.L2:
	lea	rdi, .LC0[rip]
	call	mtd_check_open@PLT
	mov	QWORD PTR fis_fd[rip], rax
	mov	rdi, rax
	test	rax, rax
	js	.L3
	call	close@PLT
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	mtd_open@PLT
	mov	QWORD PTR fis_fd[rip], rax
	mov	r8, rax
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR erasesize[rip]
	mov	ecx, DWORD PTR MAP_SHARED[rip]
	xor	r9d, r9d
	xor	edi, edi
	mov	edx, DWORD PTR PROT_READ[rip]
	or	ecx, DWORD PTR MAP_LOCKED[rip]
	or	edx, DWORD PTR PROT_WRITE[rip]
	mov	DWORD PTR fis_erasesize[rip], esi
	call	mmap@PLT
	cmp	QWORD PTR MAP_FAILED[rip], rax
	je	.L3
	mov	QWORD PTR fis_desc[rip], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
	call	fis_close@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fis_open, .-fis_open
	.comm	fis_fd,8,8
	.comm	fis_erasesize,4,4
	.comm	fis_desc,8,8
	.comm	erasesize,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_LOCKED,4,4
	.comm	MAP_FAILED,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_fis.c_fis_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FIS directory\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fis_open, %function
fis_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L7
	sub	sp, sp, #8
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L2
	bl	fis_close
.L2:
	ldr	r0, .L7+4
	bl	mtd_check_open
	cmp	r0, #0
	str	r0, [r4]
	blt	.L3
	bl	close
	mov	r1, #1
	ldr	r0, .L7+4
	bl	mtd_open
	cmp	r0, #0
	mov	ip, r0
	str	r0, [r4]
	blt	.L3
	mov	r0, #0
	ldr	r1, .L7+8
	ldr	r4, .L7+12
	ldr	r3, .L7+16
	ldr	lr, .L7+20
	ldr	r2, .L7+24
	ldr	r1, [r1]
	ldr	r4, [r4]
	ldr	r3, [r3]
	ldr	lr, [lr]
	ldr	r2, [r2]
	str	ip, [sp]
	ldr	ip, .L7+28
	orr	r3, r4, r3
	str	r0, [sp, #4]
	orr	r2, lr, r2
	str	r1, [ip]
	bl	mmap
	ldr	r3, .L7+32
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L3
	ldr	r3, .L7+36
	str	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L3:
	bl	fis_close
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	fis_fd
	.word	.LC0
	.word	erasesize
	.word	MAP_SHARED
	.word	MAP_LOCKED
	.word	PROT_READ
	.word	PROT_WRITE
	.word	fis_erasesize
	.word	MAP_FAILED
	.word	fis_desc
	.size	fis_open, .-fis_open
	.comm	fis_fd,4,4
	.comm	fis_erasesize,4,4
	.comm	fis_desc,4,4
	.comm	erasesize,4,4
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_LOCKED,4,4
	.comm	MAP_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
