	.file	"extr_dasd.c_dasd_enable_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dasd_enable_device
	.type	dasd_enable_device, @function
dasd_enable_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR DASD_STATE_ONLINE[rip]
	mov	rbp, rdi
	call	dasd_set_target_state@PLT
	mov	rax, QWORD PTR DASD_STATE_KNOWN[rip]
	cmp	QWORD PTR 0[rbp], rax
	jle	.L6
.L2:
	mov	rdi, rbp
	call	_wait_for_device@PLT
	mov	edi, DWORD PTR dasd_init_waitq[rip]
	mov	esi, eax
	call	wait_event@PLT
	mov	rdi, rbp
	call	dasd_reload_device@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR DASD_STATE_NEW[rip]
	mov	rdi, rbp
	call	dasd_set_target_state@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dasd_enable_device, .-dasd_enable_device
	.comm	dasd_init_waitq,4,4
	.comm	DASD_STATE_ONLINE,4,4
	.comm	DASD_STATE_NEW,4,4
	.comm	DASD_STATE_KNOWN,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_dasd.c_dasd_enable_device.c"
	.text
	.align	2
	.global	dasd_enable_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	dasd_enable_device, %function
dasd_enable_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L7
	ldr	r1, [r3]
	bl	dasd_set_target_state
	ldr	r3, .L7+4
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
.L2:
	ldr	r3, .L7+8
	mov	r0, r4
	ldr	r5, [r3]
	bl	_wait_for_device
	mov	r1, r0
	mov	r0, r5
	bl	wait_event
	mov	r0, r4
	bl	dasd_reload_device
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	bx	r3
.L6:
	ldr	r3, .L7+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	dasd_set_target_state
	b	.L2
.L8:
	.align	2
.L7:
	.word	DASD_STATE_ONLINE
	.word	DASD_STATE_KNOWN
	.word	dasd_init_waitq
	.word	DASD_STATE_NEW
	.size	dasd_enable_device, .-dasd_enable_device
	.comm	dasd_init_waitq,4,4
	.comm	DASD_STATE_ONLINE,4,4
	.comm	DASD_STATE_NEW,4,4
	.comm	DASD_STATE_KNOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
