	.file	"extr_partition.c__FAT_partition_createFSinfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_FAT_partition_createFSinfo
	.type	_FAT_partition_createFSinfo, @function
_FAT_partition_createFSinfo:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 32[rdi], 0
	jne	.L11
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR FS_FAT32[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rdi]
	call	_FAT_mem_align@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR 24[rbx]
	xor	esi, esi
	mov	rdi, rax
	call	memset@PLT
	mov	rdi, QWORD PTR FS_INFO_SIG1[rip]
	mov	rsi, QWORD PTR FS_INFO_SIG2[rip]
	xor	eax, eax
.L5:
	mov	edx, DWORD PTR FSIB_SIG1[rip]
	mov	ecx, DWORD PTR [rdi+rax*4]
	add	edx, eax
	movsx	rdx, edx
	mov	DWORD PTR 0[rbp+rdx*4], ecx
	mov	edx, DWORD PTR FSIB_SIG2[rip]
	mov	ecx, DWORD PTR [rsi+rax*4]
	add	edx, eax
	add	rax, 1
	movsx	rdx, edx
	mov	DWORD PTR 0[rbp+rdx*4], ecx
	cmp	rax, 4
	jne	.L5
	mov	rdi, rbx
	call	_FAT_fat_freeClusterCount@PLT
	mov	esi, DWORD PTR FSIB_numberOfFreeCluster[rip]
	mov	rdi, rbp
	mov	DWORD PTR 20[rbx], eax
	mov	edx, eax
	call	u32_to_u8array@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR FSIB_numberLastAllocCluster[rip]
	mov	rdi, rbp
	call	u32_to_u8array@PLT
	mov	rax, QWORD PTR FSIB_bootSig_55[rip]
	mov	rcx, rbp
	mov	edx, 1
	mov	DWORD PTR 0[rbp+rax*4], 85
	mov	rax, QWORD PTR FSIB_bootSig_AA[rip]
	mov	DWORD PTR 0[rbp+rax*4], 170
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 8[rbx]
	call	_FAT_disc_writeSectors@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	_FAT_mem_free@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	ret
	.cfi_endproc
.LFE0:
	.size	_FAT_partition_createFSinfo, .-_FAT_partition_createFSinfo
	.comm	FS_INFO_SIG2,8,8
	.comm	FS_INFO_SIG1,8,8
	.comm	FS_FAT32,8,8
	.comm	FSIB_numberOfFreeCluster,4,4
	.comm	FSIB_numberLastAllocCluster,4,4
	.comm	FSIB_bootSig_AA,8,8
	.comm	FSIB_bootSig_55,8,8
	.comm	FSIB_SIG2,4,4
	.comm	FSIB_SIG1,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_partition.c__FAT_partition_createFSinfo.c"
	.text
	.align	2
	.global	_FAT_partition_createFSinfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	_FAT_partition_createFSinfo, %function
_FAT_partition_createFSinfo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #24]
	cmp	r5, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L12
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	ldr	r0, [r0, #20]
	bl	_FAT_mem_align
	subs	r6, r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, r5
	ldr	r2, [r4, #20]
	bl	memset
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	lr, .L12+12
	ldr	ip, .L12+16
	sub	r1, r1, #4
	sub	r2, r2, #4
.L5:
	ldr	r3, [lr]
	ldr	r0, [r1, #4]!
	add	r3, r5, r3
	str	r0, [r6, r3, lsl #2]
	ldr	r3, [ip]
	ldr	r0, [r2, #4]!
	add	r3, r5, r3
	add	r5, r5, #1
	cmp	r5, #4
	str	r0, [r6, r3, lsl #2]
	bne	.L5
	mov	r0, r4
	bl	_FAT_fat_freeClusterCount
	ldr	r3, .L12+20
	mov	r2, r0
	ldr	r1, [r3]
	str	r0, [r4, #16]
	mov	r0, r6
	bl	u32_to_u8array
	ldr	r3, .L12+24
	ldr	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r6
	bl	u32_to_u8array
	mov	r0, #85
	mov	r2, #170
	ldr	r1, .L12+28
	ldr	r3, .L12+32
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r0, [r6, r1, lsl #2]
	str	r2, [r6, r3, lsl #2]
	ldr	r1, [r4, #4]
	mov	r3, r6
	ldr	r0, [r4, #8]
	mov	r2, #1
	bl	_FAT_disc_writeSectors
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	_FAT_mem_free
.L13:
	.align	2
.L12:
	.word	FS_FAT32
	.word	FS_INFO_SIG1
	.word	FS_INFO_SIG2
	.word	FSIB_SIG1
	.word	FSIB_SIG2
	.word	FSIB_numberOfFreeCluster
	.word	FSIB_numberLastAllocCluster
	.word	FSIB_bootSig_55
	.word	FSIB_bootSig_AA
	.size	_FAT_partition_createFSinfo, .-_FAT_partition_createFSinfo
	.comm	FS_INFO_SIG2,4,4
	.comm	FS_INFO_SIG1,4,4
	.comm	FS_FAT32,4,4
	.comm	FSIB_numberOfFreeCluster,4,4
	.comm	FSIB_numberLastAllocCluster,4,4
	.comm	FSIB_bootSig_AA,4,4
	.comm	FSIB_bootSig_55,4,4
	.comm	FSIB_SIG2,4,4
	.comm	FSIB_SIG1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
