	.file	"extr_ide-taskfile.c_ide_raw_taskfile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ide_raw_taskfile
	.type	ide_raw_taskfile, @function
ide_raw_taskfile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	eax, DWORD PTR [rsi]
	mov	edi, DWORD PTR [rdi]
	test	DWORD PTR IDE_TFLAG_WRITE[rip], eax
	mov	esi, DWORD PTR REQ_OP_DRV_OUT[rip]
	cmove	esi, DWORD PTR REQ_OP_DRV_IN[rip]
	xor	edx, edx
	call	blk_get_request@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ide_req@PLT
	mov	edx, DWORD PTR ATA_PRIV_TASKFILE[rip]
	mov	DWORD PTR 8[rax], edx
	test	r12d, r12d
	je	.L7
	mov	ecx, DWORD PTR SECTOR_SIZE[rip]
	mov	edi, DWORD PTR 0[r13]
	mov	rdx, r14
	mov	rsi, rbp
	mov	r8d, DWORD PTR GFP_NOIO[rip]
	imul	ecx, r12d
	call	blk_rq_map_kern@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
.L7:
	mov	rdi, rbp
	xor	r12d, r12d
	call	ide_req@PLT
	mov	edi, DWORD PTR 0[r13]
	xor	ecx, ecx
	xor	esi, esi
	mov	QWORD PTR [rax], rbx
	mov	rdx, rbp
	mov	QWORD PTR 8[rbx], rbp
	call	blk_execute_rq@PLT
	mov	rdi, rbp
	call	scsi_req@PLT
	cmp	QWORD PTR [rax], 0
	jne	.L10
.L6:
	mov	rdi, rbp
	call	blk_put_request@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	ide_raw_taskfile, .-ide_raw_taskfile
	.comm	SECTOR_SIZE,4,4
	.comm	REQ_OP_DRV_OUT,4,4
	.comm	REQ_OP_DRV_IN,4,4
	.comm	IDE_TFLAG_WRITE,4,4
	.comm	GFP_NOIO,4,4
	.comm	EIO,4,4
	.comm	ATA_PRIV_TASKFILE,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_ide-taskfile.c_ide_raw_taskfile.c"
	.text
	.align	2
	.global	ide_raw_taskfile
	.syntax unified
	.arm
	.fpu softvfp
	.type	ide_raw_taskfile, %function
ide_raw_taskfile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r0
	ldr	r1, .L10
	ldr	r0, [r6]
	ldr	r1, [r1]
	mov	r5, r3
	tst	r0, r1
	ldrne	r3, .L10+4
	ldreq	r3, .L10+8
	sub	sp, sp, #8
	ldr	r1, [r3]
	mov	r8, r2
	ldr	r0, [r7]
	mov	r2, #0
	bl	blk_get_request
	mov	r4, r0
	bl	ide_req
	ldr	r3, .L10+12
	cmp	r5, #0
	ldr	r3, [r3]
	str	r3, [r0, #4]
	beq	.L7
	ldr	r2, .L10+16
	ldr	r3, .L10+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	str	r1, [sp]
	mul	r3, r5, r3
	mov	r2, r8
	mov	r1, r4
	ldr	r0, [r7]
	bl	blk_rq_map_kern
	subs	r5, r0, #0
	bne	.L6
.L7:
	mov	r0, r4
	bl	ide_req
	mov	r3, #0
	str	r6, [r0]
	mov	r1, r3
	mov	r2, r4
	ldr	r0, [r7]
	str	r4, [r6, #4]
	bl	blk_execute_rq
	mov	r0, r4
	bl	scsi_req
	ldr	r5, [r0]
	cmp	r5, #0
	ldrne	r3, .L10+24
	ldrne	r5, [r3]
	rsbne	r5, r5, #0
.L6:
	mov	r0, r4
	bl	blk_put_request
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	IDE_TFLAG_WRITE
	.word	REQ_OP_DRV_OUT
	.word	REQ_OP_DRV_IN
	.word	ATA_PRIV_TASKFILE
	.word	GFP_NOIO
	.word	SECTOR_SIZE
	.word	EIO
	.size	ide_raw_taskfile, .-ide_raw_taskfile
	.comm	SECTOR_SIZE,4,4
	.comm	REQ_OP_DRV_OUT,4,4
	.comm	REQ_OP_DRV_IN,4,4
	.comm	IDE_TFLAG_WRITE,4,4
	.comm	GFP_NOIO,4,4
	.comm	EIO,4,4
	.comm	ATA_PRIV_TASKFILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
