	.file	"extr_pd.c_pd_door_unlock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Lock"
.LC1:
	.string	"Lock done"
	.text
	.p2align 4
	.type	pd_door_unlock, @function
pd_door_unlock:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, DWORD PTR STAT_READY[rip]
	lea	rdx, .LC0[rip]
	mov	rbp, rdi
	call	pd_wait_for@PLT
	test	DWORD PTR STAT_ERR[rip], eax
	je	.L5
	mov	eax, DWORD PTR Ok[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR IDE_DOORUNLOCK[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	r9d, r9d
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, 1
	push	rax
	.cfi_def_cfa_offset 32
	call	pd_send_command@PLT
	mov	esi, DWORD PTR STAT_READY[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	pd_wait_for@PLT
	pop	rax
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR Ok[rip]
	pop	rdx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pd_door_unlock, .-pd_door_unlock
	.comm	STAT_READY,4,4
	.comm	STAT_ERR,4,4
	.comm	Ok,4,4
	.comm	IDE_DOORUNLOCK,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_pd.c_pd_door_unlock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Lock\000"
	.align	2
.LC1:
	.ascii	"Lock done\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pd_door_unlock, %function
pd_door_unlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, .L6
	ldr	r2, .L6+4
	ldr	r1, [r5]
	sub	sp, sp, #20
	mov	r4, r0
	bl	pd_wait_for
	ldr	r3, .L6+8
	ldr	r3, [r3]
	ands	r3, r0, r3
	beq	.L5
	ldr	r3, .L6+12
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	ldr	r2, .L6+16
	str	r3, [sp, #4]
	ldr	r2, [r2]
	mov	r1, #1
	str	r3, [sp]
	str	r2, [sp, #8]
	mov	r0, r4
	mov	r2, r3
	bl	pd_send_command
	mov	r0, r4
	ldr	r1, [r5]
	ldr	r2, .L6+20
	bl	pd_wait_for
	ldr	r3, .L6+12
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	.align	2
.L6:
	.word	STAT_READY
	.word	.LC0
	.word	STAT_ERR
	.word	Ok
	.word	IDE_DOORUNLOCK
	.word	.LC1
	.size	pd_door_unlock, .-pd_door_unlock
	.comm	STAT_READY,4,4
	.comm	STAT_ERR,4,4
	.comm	Ok,4,4
	.comm	IDE_DOORUNLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
