	.file	"extr_builtin.c_get_freespace.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_freespace, @function
get_freespace:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	mov	esi, 14913
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 4[rsp]
	mov	WORD PTR 21[rsp], si
	xor	esi, esi
	mov	DWORD PTR 17[rsp], 1546542172
	mov	BYTE PTR 23[rsp], 0
	mov	DWORD PTR 4[rsp], 536870912
	call	GetDiskFreeSpaceExW@PLT
	movzx	eax, BYTE PTR [rbx]
	lea	rdi, 17[rsp]
	xor	r9d, r9d
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	r8d, DWORD PTR OPEN_EXISTING[rip]
	mov	esi, DWORD PTR GENERIC_READ[rip]
	xor	ecx, ecx
	mov	BYTE PTR 29[rsp], al
	mov	edx, DWORD PTR FILE_SHARE_READ[rip]
	push	0
	.cfi_def_cfa_offset 80
	or	edx, DWORD PTR FILE_SHARE_WRITE[rip]
	call	CreateFileW@PLT
	cmp	QWORD PTR INVALID_HANDLE_VALUE[rip], rax
	pop	rdi
	.cfi_def_cfa_offset 72
	pop	r8
	.cfi_def_cfa_offset 64
	jne	.L10
.L2:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	mov	eax, DWORD PTR 4[rsp]
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	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
.L10:
	.cfi_restore_state
	push	0
	.cfi_def_cfa_offset 72
	mov	rbp, rax
	mov	esi, DWORD PTR IOCTL_DISK_GET_DRIVE_GEOMETRY_EX[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	r9d, 4
	mov	rdi, rbp
	lea	rax, 20[rsp]
	push	rax
	.cfi_def_cfa_offset 80
	lea	r8, 24[rsp]
	call	DeviceIoControl@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR [r12], eax
.L3:
	mov	rdi, rbp
	call	CloseHandle@PLT
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_freespace, .-get_freespace
	.comm	OPEN_EXISTING,4,4
	.comm	IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,4,4
	.comm	INVALID_HANDLE_VALUE,8,8
	.comm	GENERIC_READ,4,4
	.comm	FILE_SHARE_WRITE,4,4
	.comm	FILE_SHARE_READ,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_builtin.c_get_freespace.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\\\\.\\A:\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_freespace, %function
get_freespace:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	ip, #536870912
	mov	r5, r2
	ldr	r3, .L11
	sub	sp, sp, #40
	mov	r6, r1
	ldm	r3, {r0, r1}
	ldr	r3, .L11+4
	str	r0, [sp, #28]
	strh	r1, [sp, #32]	@ movhi
	lsr	r1, r1, #16
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r0, r4
	strb	r1, [sp, #34]
	add	r3, sp, #16
	mov	r1, r2
	str	ip, [sp, #16]
	bl	GetDiskFreeSpaceExW
	ldr	r3, .L11+8
	ldr	r1, .L11+12
	ldr	r2, .L11+16
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L11+20
	ldrb	ip, [r4]	@ zero_extendqisi2
	str	r3, [sp]
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	mov	r3, r5
	orr	r2, r0, r2
	ldr	r1, [r1]
	add	r0, sp, #28
	strb	ip, [sp, #32]
	bl	CreateFileW
	ldr	r3, .L11+24
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	mov	r3, #4
	ldr	r1, .L11+28
	str	r3, [sp, #4]
	add	r2, sp, #24
	str	r5, [sp, #12]
	add	r3, sp, #20
	ldr	r1, [r1]
	str	r2, [sp, #8]
	str	r3, [sp]
	mov	r2, r5
	mov	r3, r5
	mov	r4, r0
	bl	DeviceIoControl
	cmp	r0, r5
	ldrne	r3, [sp, #20]
	mov	r0, r4
	strne	r3, [r6]
	bl	CloseHandle
.L2:
	ldr	r3, .L11+4
	ldr	r0, [sp, #16]
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.word	OPEN_EXISTING
	.word	FILE_SHARE_READ
	.word	FILE_SHARE_WRITE
	.word	GENERIC_READ
	.word	INVALID_HANDLE_VALUE
	.word	IOCTL_DISK_GET_DRIVE_GEOMETRY_EX
	.size	get_freespace, .-get_freespace
	.comm	OPEN_EXISTING,4,4
	.comm	IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.comm	GENERIC_READ,4,4
	.comm	FILE_SHARE_WRITE,4,4
	.comm	FILE_SHARE_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
