	.file	"extr_drive.c_FlushDrive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to open %c: for flushing: %s"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed to flush %c: %s"
	.text
	.p2align 4
	.type	FlushDrive, @function
FlushDrive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, 14883
	mov	DWORD PTR 1[rsp], 1546542172
	mov	r9d, DWORD PTR FILE_ATTRIBUTE_NORMAL[rip]
	mov	WORD PTR 5[rsp], ax
	mov	r8d, DWORD PTR OPEN_EXISTING[rip]
	mov	BYTE PTR 5[rsp], dil
	lea	rdi, 1[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	mov	BYTE PTR 15[rsp], 0
	or	esi, DWORD PTR GENERIC_WRITE[rip]
	push	0
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR FALSE[rip]
	call	CreateFileA@PLT
	cmp	QWORD PTR INVALID_HANDLE_VALUE[rip], rax
	pop	rdx
	.cfi_def_cfa_offset 56
	mov	rbp, rax
	pop	rcx
	.cfi_def_cfa_offset 48
	je	.L7
	mov	rdi, rax
	call	FlushFileBuffers@PLT
	cmp	QWORD PTR FALSE[rip], rax
	mov	r12, rax
	je	.L8
.L3:
	mov	rdi, rbp
	call	safe_closehandle@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	WindowsErrorString@PLT
	movsx	esi, bl
	lea	rdi, .LC0[rip]
	mov	edx, eax
	call	uprintf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	call	WindowsErrorString@PLT
	movsx	esi, bl
	lea	rdi, .LC1[rip]
	mov	edx, eax
	call	uprintf@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	FlushDrive, .-FlushDrive
	.comm	OPEN_EXISTING,4,4
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	GENERIC_WRITE,4,4
	.comm	GENERIC_READ,4,4
	.comm	FILE_SHARE_WRITE,4,4
	.comm	FILE_SHARE_READ,4,4
	.comm	FILE_ATTRIBUTE_NORMAL,4,4
	.comm	FALSE,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_drive.c_FlushDrive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"Failed to open %c: for flushing: %s\000"
	.align	2
.LC2:
	.ascii	"Failed to flush %c: %s\000"
	.align	2
.LC0:
	.ascii	"\\\\.\\#:\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FlushDrive, %function
FlushDrive:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	ip, .L10
	ldr	lr, .L10+4
	ldr	r5, [ip]
	ldr	ip, .L10+8
	ldr	r4, .L10+12
	ldr	r0, .L10+16
	ldr	r2, .L10+20
	ldr	r7, [lr]
	ldr	r1, .L10+24
	ldr	lr, [ip]
	sub	sp, sp, #32
	ldr	r8, [r4]
	ldr	r2, [r2]
	ldr	r4, [r0]
	ldm	r1, {r0, r1}
	str	lr, [sp]
	strh	r1, [sp, #24]	@ movhi
	lsr	ip, r1, #16
	ldr	lr, .L10+28
	orr	r1, r7, r5
	ldr	r7, .L10+32
	str	r3, [sp, #8]
	str	r0, [sp, #20]
	str	r4, [sp, #4]
	orr	r2, r8, r2
	add	r0, sp, #20
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	ldr	r4, [r7]
	strb	ip, [sp, #26]
	strb	r6, [sp, #24]
	bl	CreateFileA
	ldr	r3, .L10+36
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L7
	bl	FlushFileBuffers
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	beq	.L8
.L3:
	mov	r0, r5
	bl	safe_closehandle
	ldr	r3, .L10+28
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	WindowsErrorString
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L10+40
	bl	uprintf
	b	.L3
.L8:
	bl	WindowsErrorString
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L10+44
	bl	uprintf
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	GENERIC_WRITE
	.word	GENERIC_READ
	.word	OPEN_EXISTING
	.word	FILE_SHARE_READ
	.word	FILE_ATTRIBUTE_NORMAL
	.word	FILE_SHARE_WRITE
	.word	.LC0
	.word	.LC3
	.word	FALSE
	.word	INVALID_HANDLE_VALUE
	.word	.LC1
	.word	.LC2
	.size	FlushDrive, .-FlushDrive
	.comm	OPEN_EXISTING,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	GENERIC_WRITE,4,4
	.comm	GENERIC_READ,4,4
	.comm	FILE_SHARE_WRITE,4,4
	.comm	FILE_SHARE_READ,4,4
	.comm	FILE_ATTRIBUTE_NORMAL,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
