	.file	"extr_libata-sff.c_ata_sff_postreset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EXIT, no device\n"
	.text
	.p2align 4
	.globl	ata_sff_postreset
	.type	ata_sff_postreset, @function
ata_sff_postreset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	call	ata_std_postreset@PLT
	mov	eax, DWORD PTR ATA_DEV_NONE[rip]
	cmp	DWORD PTR 0[rbp], eax
	je	.L2
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, 1
	mov	rdi, rbx
	call	[QWORD PTR 8[rax]]
	mov	eax, DWORD PTR ATA_DEV_NONE[rip]
	cmp	DWORD PTR 4[rbp], eax
	je	.L3
.L8:
	mov	rax, QWORD PTR 16[rbx]
	xor	esi, esi
	mov	rdi, rbx
	call	[QWORD PTR 8[rax]]
	mov	eax, DWORD PTR ATA_DEV_NONE[rip]
	cmp	DWORD PTR 0[rbp], eax
	je	.L11
.L4:
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR [rax], 0
	jne	.L5
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
.L5:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbx
	call	ata_sff_set_devctl@PLT
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], eax
.L1:
	add	rsp, 8
	.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
.L11:
	.cfi_restore_state
	cmp	eax, DWORD PTR 4[rbp]
	jne	.L4
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	DPRINTK@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	DWORD PTR 0[rbp], eax
	jne	.L4
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	eax, DWORD PTR 4[rbp]
	jne	.L8
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	ata_sff_postreset, .-ata_sff_postreset
	.comm	ATA_DEV_NONE,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_libata-sff.c_ata_sff_postreset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EXIT, no device\012\000"
	.text
	.align	2
	.global	ata_sff_postreset
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_sff_postreset, %function
ata_sff_postreset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r6, .L15
	ldr	r4, [r0]
	bl	ata_std_postreset
	ldr	r3, [r5]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L2
	ldr	r3, [r4, #12]
	mov	r1, #1
	ldr	r3, [r3, #4]
	mov	r0, r4
	blx	r3
	ldr	r2, [r6]
	ldr	r3, [r5, #4]
	cmp	r3, r2
	beq	.L3
.L8:
	ldr	r3, [r4, #12]
	mov	r1, #0
	ldr	r3, [r3, #4]
	mov	r0, r4
	blx	r3
	ldr	r2, [r6]
	ldr	r3, [r5]
	cmp	r3, r2
	beq	.L14
.L4:
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [r4, #8]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
.L5:
	mov	r0, r4
	ldr	r1, [r4]
	bl	ata_sff_set_devctl
	ldr	r3, [r4]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r2, [r5, #4]
	cmp	r3, r2
	bne	.L4
.L7:
	ldr	r0, .L15+4
	pop	{r4, r5, r6, lr}
	b	DPRINTK
.L3:
	ldr	r2, [r5]
	cmp	r2, r3
	bne	.L4
	b	.L7
.L2:
	ldr	r2, [r5, #4]
	cmp	r3, r2
	bne	.L8
	b	.L7
.L16:
	.align	2
.L15:
	.word	ATA_DEV_NONE
	.word	.LC0
	.size	ata_sff_postreset, .-ata_sff_postreset
	.comm	ATA_DEV_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
