	.file	"extr_sas_ata.c_sas_ata_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ata_sas_port_alloc failed.\n"
	.text
	.p2align 4
	.globl	sas_ata_init
	.type	sas_ata_init, @function
sas_ata_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, sas_sata_ops[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	mov	r12, QWORD PTR 8[rax]
	mov	esi, DWORD PTR [rax]
	call	ata_host_init@PLT
	mov	rdx, r12
	lea	rsi, sata_port_info[rip]
	mov	rdi, rbp
	call	ata_sas_port_alloc@PLT
	test	rax, rax
	je	.L7
	mov	QWORD PTR 16[rax], rbx
	mov	rbp, rax
	mov	eax, DWORD PTR ATA_CBL_SATA[rip]
	mov	QWORD PTR 0[rbp], r12
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	call	ata_sas_port_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	QWORD PTR [rbx], rbp
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	SAS_DPRINTK@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	ata_sas_port_destroy@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sas_ata_init, .-sas_ata_init
	.comm	sata_port_info,4,4
	.comm	sas_sata_ops,4,4
	.comm	ENODEV,4,4
	.comm	ATA_CBL_SATA,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_sas_ata.c_sas_ata_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ata_sas_port_alloc failed.\012\000"
	.text
	.align	2
	.global	sas_ata_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	sas_ata_init, %function
sas_ata_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	add	r4, r0, #4
	ldm	r3, {r1, r6}
	ldr	r2, .L9
	mov	r5, r0
	mov	r0, r4
	bl	ata_host_init
	mov	r0, r4
	mov	r2, r6
	ldr	r1, .L9+4
	bl	ata_sas_port_alloc
	subs	r4, r0, #0
	beq	.L7
	ldr	r3, .L9+8
	str	r5, [r4, #8]
	ldr	r3, [r3]
	str	r6, [r4]
	str	r3, [r4, #4]
	bl	ata_sas_port_init
	subs	r6, r0, #0
	streq	r4, [r5]
	bne	.L8
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r0, .L9+12
	bl	SAS_DPRINTK
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r6, r0, #0
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r4
	bl	ata_sas_port_destroy
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	sas_sata_ops
	.word	sata_port_info
	.word	ATA_CBL_SATA
	.word	.LC0
	.word	ENODEV
	.size	sas_ata_init, .-sas_ata_init
	.comm	sata_port_info,4,4
	.comm	sas_sata_ops,4,4
	.comm	ENODEV,4,4
	.comm	ATA_CBL_SATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
