	.file	"extr_dosfiles.c_DosDeviceIoControlDrive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"UNIMPLEMENTED INT 21h, 4404h, Read from block device %s\n"
	.align 8
.LC1:
	.string	"UNIMPLEMENTED INT 21h, 4405h, Write block device control string %s\n"
	.align 8
.LC2:
	.string	"INT 21h, 4408h, %s -> DriveType = 0x%x\n"
	.align 8
.LC3:
	.string	"UNIMPLEMENTED INT 21h, 4409h, Determine if a logical device is local or remote %s\n"
	.text
	.p2align 4
	.globl	DosDeviceIoControlDrive
	.type	DosDeviceIoControlDrive, @function
DosDeviceIoControlDrive:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 6044223
	lea	eax, 64[rdi]
	test	edi, edi
	jne	.L3
	mov	rax, QWORD PTR Sda[rip]
	movzx	eax, BYTE PTR [rax]
	add	eax, 65
.L3:
	mov	BYTE PTR 4[rsp], al
	cmp	esi, 8
	je	.L4
	jg	.L5
	cmp	esi, 4
	je	.L6
	cmp	esi, 5
	jne	.L8
	lea	rsi, 4[rsp]
	lea	rdi, .LC1[rip]
.L25:
	xor	eax, eax
	call	DPRINT1@PLT
	mov	rax, QWORD PTR Sda[rip]
	mov	rdx, QWORD PTR ERROR_INVALID_FUNCTION[rip]
	mov	QWORD PTR 8[rax], rdx
.L10:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L28
	add	rsp, 24
	.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
.L5:
	.cfi_restore_state
	cmp	esi, 9
	jne	.L8
	lea	rsi, 4[rsp]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	DPRINT1@PLT
.L26:
	mov	rax, QWORD PTR Sda[rip]
	mov	rdx, QWORD PTR ERROR_INVALID_FUNCTION[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edi, edi
	call	assert@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rbp, 4[rsp]
	mov	rdi, rbp
	call	GetDriveTypeA@PLT
	mov	edx, eax
	cmp	eax, 133
	je	.L11
	jg	.L12
	cmp	eax, 129
	je	.L13
	lea	eax, -130[rax]
	cmp	eax, 1
	jbe	.L26
.L14:
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DPRINT1@PLT
	mov	DWORD PTR [rbx], 15
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rsi, 4[rsp]
	lea	rdi, .LC0[rip]
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	eax, 134
	jne	.L14
.L13:
	mov	DWORD PTR [rbx], 0
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR [rbx], 1
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	DosDeviceIoControlDrive, .-DosDeviceIoControlDrive
	.comm	TRUE,4,4
	.comm	Sda,8,8
	.comm	FALSE,4,4
	.comm	ERROR_INVALID_FUNCTION,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_dosfiles.c_DosDeviceIoControlDrive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UNIMPLEMENTED INT 21h, 4404h, Read from block devic"
	.ascii	"e %s\012\000"
	.align	2
.LC1:
	.ascii	"UNIMPLEMENTED INT 21h, 4405h, Write block device co"
	.ascii	"ntrol string %s\012\000"
	.align	2
.LC2:
	.ascii	"INT 21h, 4408h, %s -> DriveType = 0x%x\012\000"
	.align	2
.LC3:
	.ascii	"UNIMPLEMENTED INT 21h, 4409h, Determine if a logica"
	.ascii	"l device is local or remote %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DosDeviceIoControlDrive
	.syntax unified
	.arm
	.fpu softvfp
	.type	DosDeviceIoControlDrive, %function
DosDeviceIoControlDrive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r3
	ldr	r3, .L23
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	cmp	r0, #0
	ldreq	r3, .L23+4
	ldr	r2, .L23+8
	ldreq	r3, [r3]
	str	r2, [sp]
	ldrbeq	r0, [r3]	@ zero_extendqisi2
	addne	r0, r0, #64
	addeq	r0, r0, #65
	and	r0, r0, #255
	sub	r1, r1, #4
	strb	r0, [sp]
	cmp	r1, #5
	ldrls	pc, [pc, r1, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L4
	.word	.L4
	.word	.L7
	.word	.L5
.L5:
	mov	r1, sp
	ldr	r0, .L23+12
	bl	DPRINT1
.L20:
	ldr	r3, .L23+16
	ldr	r2, .L23+4
	ldr	r1, [r3]
	ldr	r3, .L23+20
	ldr	r2, [r2]
	ldr	r0, [r3]
	str	r1, [r2, #4]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L4:
	mov	r0, #0
	bl	assert
.L10:
	ldr	r3, .L23+20
	ldr	r0, [r3]
	b	.L1
.L9:
	mov	r1, sp
	ldr	r0, .L23+24
.L19:
	bl	DPRINT1
	ldr	r3, .L23+4
	ldr	r2, .L23+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r2, [r3, #4]
	b	.L10
.L8:
	mov	r1, sp
	ldr	r0, .L23+28
	b	.L19
.L7:
	mov	r0, sp
	bl	GetDriveTypeA
	sub	r3, r0, #129
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L13:
	.word	.L12
	.word	.L20
	.word	.L20
	.word	.L11
	.word	.L14
	.word	.L12
.L12:
	mov	r2, #0
	ldr	r3, .L23+32
	str	r2, [r4]
	ldr	r0, [r3]
	b	.L1
.L14:
	mov	r2, #1
	ldr	r3, .L23+32
	str	r2, [r4]
	ldr	r0, [r3]
	b	.L1
.L11:
	mov	r2, r0
	mov	r1, sp
	ldr	r0, .L23+36
	bl	DPRINT1
	mov	r2, #15
	ldr	r3, .L23+32
	str	r2, [r4]
	ldr	r0, [r3]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC4
	.word	Sda
	.word	6044223
	.word	.LC3
	.word	ERROR_INVALID_FUNCTION
	.word	FALSE
	.word	.LC0
	.word	.LC1
	.word	TRUE
	.word	.LC2
	.size	DosDeviceIoControlDrive, .-DosDeviceIoControlDrive
	.comm	TRUE,4,4
	.comm	Sda,4,4
	.comm	FALSE,4,4
	.comm	ERROR_INVALID_FUNCTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
