	.file	"extr_ff.c_check_fs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FAT"
.LC1:
	.string	"FAT32"
	.text
	.p2align 4
	.type	check_fs, @function
check_fs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	QWORD PTR 16[rdi], 0
	mov	DWORD PTR [rdi], -1
	call	move_window@PLT
	mov	r8, rax
	cmp	r8, QWORD PTR FR_OK[rip]
	mov	eax, 4
	je	.L13
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movsx	rdx, DWORD PTR BS_55AA[rip]
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, [rax+rdx*4]
	call	ld_word@PLT
	mov	r8d, eax
	mov	eax, 3
	cmp	r8d, 43605
	jne	.L1
	mov	rdx, QWORD PTR 8[rbx]
	movsx	rax, DWORD PTR BS_JmpBoot[rip]
	mov	eax, DWORD PTR [rdx+rax*4]
	lea	ecx, -232[rax]
	cmp	ecx, 1
	jbe	.L3
	cmp	eax, 235
	je	.L3
.L5:
	mov	eax, 2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	movsx	rax, DWORD PTR BS_FilSysType[rip]
	lea	rsi, .LC0[rip]
	lea	rdi, [rdx+rax*4]
	mov	edx, 3
	call	mem_cmp@PLT
	test	eax, eax
	jne	.L14
.L4:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	movsx	rdx, DWORD PTR BS_FilSysType32[rip]
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	lea	rdi, [rax+rdx*4]
	mov	edx, 5
	call	mem_cmp@PLT
	test	eax, eax
	jne	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	check_fs, .-check_fs
	.comm	FR_OK,8,8
	.comm	BS_JmpBoot,4,4
	.comm	BS_FilSysType32,4,4
	.comm	BS_FilSysType,4,4
	.comm	BS_55AA,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_ff.c_check_fs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FAT\000"
	.align	2
.LC1:
	.ascii	"FAT32\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_fs, %function
check_fs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mvn	r3, #0
	mov	r2, #0
	push	{r4, lr}
	str	r3, [r0]
	str	r2, [r0, #8]
	mov	r4, r0
	bl	move_window
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L13
	mov	r0, #4
	pop	{r4, pc}
.L13:
	ldr	r2, .L15+4
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	add	r0, r3, r0, lsl #2
	bl	ld_word
	ldr	r3, .L15+8
	cmp	r0, r3
	bne	.L7
	ldr	r3, .L15+12
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	ldr	r3, [r0, r3, lsl #2]
	sub	r2, r3, #232
	cmp	r3, #235
	cmpne	r2, #1
	bhi	.L5
	ldr	r3, .L15+16
	mov	r2, #3
	ldr	r3, [r3]
	ldr	r1, .L15+20
	add	r0, r0, r3, lsl #2
	bl	mem_cmp
	cmp	r0, #0
	bne	.L14
.L4:
	mov	r0, #0
	pop	{r4, pc}
.L14:
	ldr	r2, .L15+24
	ldr	r3, [r4, #4]
	ldr	r0, [r2]
	ldr	r1, .L15+28
	mov	r2, #5
	add	r0, r3, r0, lsl #2
	bl	mem_cmp
	cmp	r0, #0
	beq	.L4
.L5:
	mov	r0, #2
	pop	{r4, pc}
.L7:
	mov	r0, #3
	pop	{r4, pc}
.L16:
	.align	2
.L15:
	.word	FR_OK
	.word	BS_55AA
	.word	43605
	.word	BS_JmpBoot
	.word	BS_FilSysType
	.word	.LC0
	.word	BS_FilSysType32
	.word	.LC1
	.size	check_fs, .-check_fs
	.comm	FR_OK,4,4
	.comm	BS_JmpBoot,4,4
	.comm	BS_FilSysType32,4,4
	.comm	BS_FilSysType,4,4
	.comm	BS_55AA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
