	.file	"extr_format.c_FormatNative.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Quick"
.LC1:
	.string	"Slow"
.LC2:
	.string	"Could not read volume name"
.LC3:
	.string	"Using default cluster size"
.LC4:
	.string	"Using cluster size: %d bytes"
.LC6:
	.string	"%s format was selected"
.LC7:
	.string	"%s - Retrying..."
.LC8:
	.string	"Enabled NTFS compression"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC9:
	.string	"Could not enable NTFS compression: %s"
	.section	.rodata.str1.1
.LC10:
	.string	"Format completed."
	.text
	.p2align 4
	.type	FormatNative, @function
FormatNative:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR FALSE[rip]
	mov	edi, DWORD PTR FormatEx[rip]
	mov	DWORD PTR [rsp], r9d
	mov	DWORD PTR 4[rsp], eax
	call	PF_DECL@PLT
	mov	edi, DWORD PTR EnableVolumeCompression[rip]
	call	PF_DECL@PLT
	mov	rdi, r13
	call	utf8_to_wchar@PLT
	mov	rdi, rbx
	mov	r14, rax
	call	utf8_to_wchar@PLT
	mov	rdx, QWORD PTR FS_EXFAT[rip]
	mov	rdi, rbx
	mov	r13, rax
	mov	rax, QWORD PTR FileSystemLabel[rip]
	mov	esi, DWORD PTR [rax+rdx*4]
	call	strcmp@PLT
	mov	rdx, rbx
	test	rax, rax
	jne	.L2
	mov	rcx, QWORD PTR dur_mins[rip]
	mov	r8, QWORD PTR dur_secs[rip]
	mov	rax, rcx
	or	rax, r8
	jne	.L33
.L2:
	mov	esi, DWORD PTR MSG_222[rip]
	xor	edi, edi
	xor	eax, eax
	call	PrintInfoDebug@PLT
.L3:
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, ebp
	mov	edi, r15d
	mov	ecx, edx
	call	GetLogicalName@PLT
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	utf8_to_wchar@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L34
	mov	rdi, rax
	call	wcslen@PLT
	xor	esi, esi
	mov	BYTE PTR -1[rbp+rax], 0
	mov	edi, DWORD PTR LC_ALL[rip]
	call	setlocale@PLT
	mov	esi, DWORD PTR fmifs[rip]
	mov	edi, DWORD PTR FormatEx[rip]
	mov	r15, rax
	call	PF_INIT_OR_OUT@PLT
	mov	esi, DWORD PTR fmifs[rip]
	mov	edi, DWORD PTR EnableVolumeCompression[rip]
	call	PF_INIT@PLT
	mov	edi, DWORD PTR LC_ALL[rip]
	mov	rsi, r15
	call	setlocale@PLT
	cmp	r12d, 511
	jle	.L35
	mov	esi, r12d
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	uprintf@PLT
.L7:
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR FP_QUICK[rip], eax
	lea	rsi, .LC0[rip]
	lea	rax, .LC1[rip]
	cmove	rsi, rax
	xor	eax, eax
	xor	ebx, ebx
	mov	DWORD PTR format_percent[rip], 0x00000000
	lea	rdi, .LC6[rip]
	lea	r15, .LC7[rip]
	mov	QWORD PTR task_number[rip], 0
	call	uprintf@PLT
	cmp	QWORD PTR WRITE_RETRIES[rip], 0
	jne	.L9
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR FormatStatus[rip]
	call	HRESULT_CODE@PLT
	cmp	rax, QWORD PTR ERROR_CANCELLED[rip]
	je	.L11
	xor	eax, eax
	add	rbx, 1
	call	WindowsErrorString@PLT
	mov	rdi, r15
	mov	esi, eax
	xor	eax, eax
	call	uprintf@PLT
	mov	edi, DWORD PTR WRITE_TIMEOUT[rip]
	call	Sleep@PLT
	cmp	QWORD PTR WRITE_RETRIES[rip], rbx
	jbe	.L11
.L9:
	mov	eax, DWORD PTR FormatExCallback[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, DWORD PTR SelectedDrive[rip]
	mov	r9d, r12d
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR 16[rsp]
	and	r8d, DWORD PTR FP_QUICK[rip]
	call	pfFormatEx@PLT
	mov	edi, DWORD PTR FormatStatus[rip]
	call	IS_ERROR@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L36
.L11:
	mov	edi, DWORD PTR FormatStatus[rip]
	call	IS_ERROR@PLT
	test	rax, rax
	jne	.L5
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR FP_COMPRESSION[rip], eax
	jne	.L37
.L12:
	mov	edi, DWORD PTR FormatStatus[rip]
	call	IS_ERROR@PLT
	test	rax, rax
	je	.L38
.L5:
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	je	.L39
.L15:
	mov	rdi, QWORD PTR 8[rsp]
	call	safe_free@PLT
	mov	rdi, rbp
	call	safe_free@PLT
	mov	rdi, r14
	call	safe_free@PLT
	mov	rdi, r13
	call	safe_free@PLT
	mov	eax, DWORD PTR 4[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	uprintf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L33:
	mov	esi, DWORD PTR MSG_220[rip]
	xor	edi, edi
	xor	eax, eax
	call	PrintInfoDebug@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L39:
	mov	edi, DWORD PTR FormatStatus[rip]
	call	IS_ERROR@PLT
	test	rax, rax
	jne	.L15
	mov	edi, DWORD PTR FACILITY_STORAGE[rip]
	call	FAC@PLT
	mov	r12d, DWORD PTR ERROR_SEVERITY_ERROR[rip]
	mov	ebx, eax
	xor	eax, eax
	call	GetLastError@PLT
	mov	edi, eax
	call	SCODE_CODE@PLT
	or	ebx, eax
	or	r12d, ebx
	mov	DWORD PTR FormatStatus[rip], r12d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	uprintf@PLT
	mov	edi, DWORD PTR FACILITY_STORAGE[rip]
	call	FAC@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR ERROR_SEVERITY_ERROR[rip]
	or	eax, DWORD PTR ERROR_GEN_FAILURE[rip]
	or	eax, r8d
	mov	DWORD PTR FormatStatus[rip], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L38:
	lea	rdi, .LC10[rip]
	call	uprintf@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdi, rbp
	call	wcslen@PLT
	mov	rdi, rbp
	mov	BYTE PTR 0[rbp+rax], 92
	mov	esi, DWORD PTR FPF_COMPRESSED[rip]
	call	pfEnableVolumeCompression@PLT
	test	rax, rax
	je	.L13
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	uprintf@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	call	WindowsErrorString@PLT
	lea	rdi, .LC9[rip]
	mov	esi, eax
	xor	eax, eax
	call	uprintf@PLT
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	FormatNative, .-FormatNative
	.comm	task_number,8,8
	.comm	format_percent,4,4
	.comm	fmifs,4,4
	.comm	dur_secs,8,8
	.comm	dur_mins,8,8
	.comm	WRITE_TIMEOUT,4,4
	.comm	WRITE_RETRIES,8,8
	.comm	TRUE,4,4
	.comm	SelectedDrive,4,4
	.comm	MSG_222,4,4
	.comm	MSG_220,4,4
	.comm	LC_ALL,4,4
	.comm	FormatStatus,4,4
	.comm	FormatExCallback,4,4
	.comm	FormatEx,4,4
	.comm	FileSystemLabel,8,8
	.comm	FS_EXFAT,8,8
	.comm	FP_QUICK,4,4
	.comm	FP_COMPRESSION,4,4
	.comm	FPF_COMPRESSED,4,4
	.comm	FALSE,4,4
	.comm	FACILITY_STORAGE,4,4
	.comm	EnableVolumeCompression,4,4
	.comm	ERROR_SEVERITY_ERROR,4,4
	.comm	ERROR_GEN_FAILURE,4,4
	.comm	ERROR_CANCELLED,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_format.c_FormatNative.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Quick\000"
	.align	2
.LC1:
	.ascii	"Slow\000"
	.align	2
.LC2:
	.ascii	"Could not read volume name\000"
	.align	2
.LC3:
	.ascii	"Using default cluster size\000"
	.align	2
.LC4:
	.ascii	"Using cluster size: %d bytes\000"
	.align	2
.LC5:
	.ascii	"%s format was selected\000"
	.align	2
.LC6:
	.ascii	"%s - Retrying...\000"
	.align	2
.LC7:
	.ascii	"Enabled NTFS compression\000"
	.align	2
.LC8:
	.ascii	"Could not enable NTFS compression: %s\000"
	.align	2
.LC9:
	.ascii	"Format completed.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FormatNative, %function
FormatNative:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L41
	ldr	r8, .L41+4
	mov	r9, r3
	ldr	r5, .L41+8
	ldr	r3, [ip]
	sub	sp, sp, #36
	mov	r4, r0
	ldr	r0, [r8]
	mov	r6, r1
	str	r2, [sp, #20]
	str	r3, [sp, #24]
	bl	PF_DECL
	ldr	r0, [r5]
	bl	PF_DECL
	ldr	r0, [sp, #72]
	bl	utf8_to_wchar
	mov	r7, r0
	mov	r0, r9
	bl	utf8_to_wchar
	ldr	r1, .L41+12
	ldr	r2, .L41+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	mov	fp, r0
	ldr	r1, [r2, r1, lsl #2]
	mov	r0, r9
	bl	strcmp
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L41+20
	ldr	r2, .L41+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	orrs	r1, r3, r2
	bne	.L34
.L2:
	ldr	r3, .L41+28
	mov	r2, r9
	mov	r0, #0
	ldr	r1, [r3]
	bl	PrintInfoDebug
.L3:
	ldr	r3, .L41+32
	mov	r1, r6
	ldr	r3, [r3]
	mov	r0, r4
	mov	r2, r3
	bl	GetLogicalName
	str	r0, [sp, #28]
	bl	utf8_to_wchar
	subs	r6, r0, #0
	beq	.L35
	bl	wcslen
	mov	r4, #0
	ldr	r9, .L41+36
	add	r0, r6, r0
	strb	r4, [r0, #-1]
	mov	r1, r4
	ldr	r0, [r9]
	bl	setlocale
	mov	r3, r0
	ldr	r0, [r8]
	mov	r8, r3
	ldr	r10, .L41+40
	ldr	r1, [r10]
	bl	PF_INIT_OR_OUT
	ldr	r1, [r10]
	ldr	r0, [r5]
	bl	PF_INIT
	mov	r1, r8
	ldr	r0, [r9]
	bl	setlocale
	ldr	r3, [sp, #20]
	cmp	r3, #512
	blt	.L36
	ldr	r1, [sp, #20]
	ldr	r0, .L41+44
	bl	uprintf
.L7:
	ldr	r8, .L41+48
	ldr	r0, [sp, #76]
	ldr	r3, [r8]
	ldr	r2, .L41+52
	tst	r0, r3
	mov	r4, #0
	ldr	r1, .L41+56
	moveq	r1, r2
	mov	r2, #0
	ldr	r0, .L41+60
	ldr	r3, .L41+64
	ldr	r9, .L41+68
	str	r4, [r0]
	ldr	r0, .L41+72
	str	r2, [r3]	@ float
	bl	uprintf
	ldr	r3, [r9]
	ldr	r5, .L41+76
	cmp	r3, r4
	ldrne	r10, .L41+80
	bne	.L9
	b	.L11
.L37:
	ldr	r0, [r5]
	bl	HRESULT_CODE
	ldr	r3, .L41+84
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L11
	bl	WindowsErrorString
	mov	r1, r0
	ldr	r0, .L41+88
	bl	uprintf
	ldr	r3, .L41+92
	ldr	r0, [r3]
	bl	Sleep
	ldr	r3, [r9]
	cmp	r3, r4
	bls	.L11
.L9:
	ldr	r3, [r8]
	ldr	r1, [sp, #76]
	ldr	r2, [r10]
	and	r3, r3, r1
	ldr	r1, [sp, #20]
	str	r3, [sp]
	str	r1, [sp, #4]
	ldr	r1, .L41+96
	str	r2, [sp, #8]
	mov	r3, r7
	mov	r2, fp
	ldr	r1, [r1]
	mov	r0, r6
	bl	pfFormatEx
	ldr	r0, [r5]
	bl	IS_ERROR
	cmp	r0, #0
	add	r4, r4, #1
	bne	.L37
.L11:
	ldr	r0, [r5]
	bl	IS_ERROR
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L41+100
	ldr	r2, [sp, #76]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L38
.L12:
	ldr	r0, [r5]
	bl	IS_ERROR
	cmp	r0, #0
	beq	.L39
.L5:
	ldr	r3, [sp, #24]
	cmp	r3, #0
	beq	.L40
.L15:
	ldr	r0, [sp, #28]
	bl	safe_free
	mov	r0, r6
	bl	safe_free
	mov	r0, r7
	bl	safe_free
	mov	r0, fp
	bl	safe_free
	ldr	r0, [sp, #24]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L36:
	ldr	r0, .L41+104
	str	r4, [sp, #20]
	bl	uprintf
	b	.L7
.L34:
	ldr	r1, .L41+108
	str	r2, [sp]
	ldr	r1, [r1]
	mov	r2, r9
	bl	PrintInfoDebug
	b	.L3
.L40:
	ldr	r0, [r5]
	bl	IS_ERROR
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L41+112
	ldr	r0, [r3]
	bl	FAC
	ldr	r3, .L41+116
	mov	r4, r0
	ldr	r8, [r3]
	bl	GetLastError
	bl	SCODE_CODE
	orr	r3, r4, r0
	orr	r3, r3, r8
	str	r3, [r5]
	b	.L15
.L35:
	ldr	r0, .L41+120
	bl	uprintf
	ldr	r3, .L41+112
	ldr	r5, .L41+76
	ldr	r0, [r3]
	bl	FAC
	ldr	r3, .L41+116
	ldr	r2, .L41+124
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r3, r3, r0
	str	r3, [r5]
	b	.L5
.L39:
	ldr	r0, .L41+128
	bl	uprintf
	ldr	r3, .L41+32
	ldr	r3, [r3]
	str	r3, [sp, #24]
	b	.L5
.L38:
	mov	r0, r6
	bl	wcslen
	mov	r2, #92
	ldr	r3, .L41+132
	strb	r2, [r6, r0]
	ldr	r1, [r3]
	mov	r0, r6
	bl	pfEnableVolumeCompression
	cmp	r0, #0
	beq	.L13
	ldr	r0, .L41+136
	bl	uprintf
	b	.L12
.L13:
	bl	WindowsErrorString
	mov	r1, r0
	ldr	r0, .L41+140
	bl	uprintf
	b	.L12
.L42:
	.align	2
.L41:
	.word	FALSE
	.word	FormatEx
	.word	EnableVolumeCompression
	.word	FS_EXFAT
	.word	FileSystemLabel
	.word	dur_mins
	.word	dur_secs
	.word	MSG_222
	.word	TRUE
	.word	LC_ALL
	.word	fmifs
	.word	.LC4
	.word	FP_QUICK
	.word	.LC1
	.word	.LC0
	.word	task_number
	.word	format_percent
	.word	WRITE_RETRIES
	.word	.LC5
	.word	FormatStatus
	.word	FormatExCallback
	.word	ERROR_CANCELLED
	.word	.LC6
	.word	WRITE_TIMEOUT
	.word	SelectedDrive
	.word	FP_COMPRESSION
	.word	.LC3
	.word	MSG_220
	.word	FACILITY_STORAGE
	.word	ERROR_SEVERITY_ERROR
	.word	.LC2
	.word	ERROR_GEN_FAILURE
	.word	.LC9
	.word	FPF_COMPRESSED
	.word	.LC7
	.word	.LC8
	.size	FormatNative, .-FormatNative
	.comm	task_number,4,4
	.comm	format_percent,4,4
	.comm	fmifs,4,4
	.comm	dur_secs,4,4
	.comm	dur_mins,4,4
	.comm	WRITE_TIMEOUT,4,4
	.comm	WRITE_RETRIES,4,4
	.comm	TRUE,4,4
	.comm	SelectedDrive,4,4
	.comm	MSG_222,4,4
	.comm	MSG_220,4,4
	.comm	LC_ALL,4,4
	.comm	FormatStatus,4,4
	.comm	FormatExCallback,4,4
	.comm	FormatEx,4,4
	.comm	FileSystemLabel,4,4
	.comm	FS_EXFAT,4,4
	.comm	FP_QUICK,4,4
	.comm	FP_COMPRESSION,4,4
	.comm	FPF_COMPRESSED,4,4
	.comm	FALSE,4,4
	.comm	FACILITY_STORAGE,4,4
	.comm	EnableVolumeCompression,4,4
	.comm	ERROR_SEVERITY_ERROR,4,4
	.comm	ERROR_GEN_FAILURE,4,4
	.comm	ERROR_CANCELLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
