	.file	"extr_ata-promise.c_ata_promise_mio_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DISCONNECT requested\n"
.LC1:
	.string	"CONNECT requested\n"
	.text
	.p2align 4
	.type	ata_promise_mio_status, @function
ata_promise_mio_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	device_get_parent@PLT
	mov	edi, eax
	call	device_get_softc@PLT
	mov	edi, r12d
	mov	r14, rax
	call	device_get_softc@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR 16[r14]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 130
	jg	.L2
	cmp	eax, 129
	mov	ebp, 96
	mov	esi, 108
	cmovge	ebp, esi
.L3:
	mov	edi, DWORD PTR [r14]
	mov	esi, ebp
	mov	r13, QWORD PTR 8[r14]
	call	ATA_INL@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	edx, 17
	mov	edi, DWORD PTR [r14]
	mov	esi, ebp
	mov	r15d, eax
	sal	edx, cl
	and	edx, eax
	call	ATA_OUTL@PLT
	mov	ecx, DWORD PTR [rbx]
	bt	r15d, ecx
	jnc	.L4
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L18
.L5:
	mov	edi, DWORD PTR taskqueue_thread[rip]
	lea	rsi, 4[rbx]
	call	taskqueue_enqueue@PLT
	mov	ecx, DWORD PTR [rbx]
.L4:
	mov	eax, 16
	sal	eax, cl
	test	eax, r15d
	je	.L6
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L19
.L7:
	mov	edi, DWORD PTR taskqueue_thread[rip]
	lea	rsi, 4[rbx]
	call	taskqueue_enqueue@PLT
	mov	ecx, DWORD PTR [rbx]
.L6:
	add	ecx, 1
	mov	eax, 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	sal	eax, cl
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	and	eax, r13d
	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
.L2:
	.cfi_restore_state
	cmp	eax, 132
	mov	ebp, 96
	mov	esi, 108
	cmove	ebp, esi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, .LC1[rip]
	mov	edi, r12d
	call	device_printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC0[rip]
	mov	edi, r12d
	call	device_printf@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ata_promise_mio_status, .-ata_promise_mio_status
	.comm	taskqueue_thread,4,4
	.comm	bootverbose,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_ata-promise.c_ata_promise_mio_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DISCONNECT requested\012\000"
	.align	2
.LC1:
	.ascii	"CONNECT requested\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_promise_mio_status, %function
ata_promise_mio_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	bl	device_get_parent
	bl	device_get_softc
	mov	r5, r0
	mov	r0, r7
	bl	device_get_softc
	ldr	r3, [r5, #8]
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, #130
	bgt	.L2
	cmp	r3, #129
	movlt	r8, #96
	movge	r8, #108
.L3:
	ldm	r5, {r0, r9}
	mov	r1, r8
	bl	ATA_INL
	mov	r2, #17
	mov	r6, r0
	ldr	r3, [r4]
	mov	r1, r8
	and	r2, r6, r2, lsl r3
	ldr	r0, [r5]
	bl	ATA_OUTL
	ldr	r3, [r4]
	asr	r2, r6, r3
	tst	r2, #1
	beq	.L4
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
.L5:
	ldr	r3, .L26+4
	add	r1, r4, #4
	ldr	r0, [r3]
	bl	taskqueue_enqueue
	ldr	r3, [r4]
.L4:
	mov	r2, #16
	ands	r2, r6, r2, lsl r3
	beq	.L6
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
.L7:
	ldr	r3, .L26+4
	add	r1, r4, #4
	ldr	r0, [r3]
	bl	taskqueue_enqueue
	ldr	r3, [r4]
.L6:
	mov	r0, #1
	add	r3, r3, r0
	and	r0, r9, r0, lsl r3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	cmp	r3, #132
	movne	r8, #96
	moveq	r8, #108
	b	.L3
.L25:
	mov	r0, r7
	ldr	r1, .L26+8
	bl	device_printf
	b	.L7
.L24:
	mov	r0, r7
	ldr	r1, .L26+12
	bl	device_printf
	b	.L5
.L27:
	.align	2
.L26:
	.word	bootverbose
	.word	taskqueue_thread
	.word	.LC1
	.word	.LC0
	.size	ata_promise_mio_status, .-ata_promise_mio_status
	.comm	taskqueue_thread,4,4
	.comm	bootverbose,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
