	.file	"extr_scsi_transport_sas.c_sas_port_alloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"port-%d:%d:%d"
.LC1:
	.string	"port-%d:%d"
	.text
	.p2align 4
	.globl	sas_port_alloc
	.type	sas_port_alloc, @function
sas_port_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	dev_to_shost@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 20
	mov	r14, rax
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	DWORD PTR [rax], ebx
	lea	rbp, 4[rax]
	mov	rdi, rbp
	call	device_initialize@PLT
	mov	rdi, r13
	call	get_device@PLT
	lea	rdi, 16[r12]
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR sas_port_release[rip]
	mov	DWORD PTR 4[r12], eax
	call	mutex_init@PLT
	lea	rdi, 12[r12]
	call	INIT_LIST_HEAD@PLT
	mov	rdi, r13
	call	scsi_is_sas_expander_device@PLT
	test	rax, rax
	jne	.L10
	mov	ecx, DWORD PTR [r12]
	mov	edx, DWORD PTR [r14]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	rdi, rbp
	call	dev_set_name@PLT
.L4:
	mov	rdi, rbp
	call	transport_setup_device@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r13
	call	dev_to_rphy@PLT
	mov	r8d, DWORD PTR [r12]
	mov	edx, DWORD PTR [r14]
	mov	rdi, rbp
	mov	ecx, DWORD PTR [rax]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_set_name@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sas_port_alloc, .-sas_port_alloc
	.comm	sas_port_release,4,4
	.comm	GFP_KERNEL,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_scsi_transport_sas.c_sas_port_alloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"port-%d:%d:%d\000"
	.align	2
.LC1:
	.ascii	"port-%d:%d\000"
	.text
	.align	2
	.global	sas_port_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	sas_port_alloc, %function
sas_port_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r7, r1
	mov	r5, r0
	bl	dev_to_shost
	ldr	r2, .L11
	mov	r8, r0
	ldr	r1, [r2]
	mov	r0, #20
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r6, r4
	str	r7, [r6], #4
	mov	r0, r6
	bl	device_initialize
	mov	r0, r5
	bl	get_device
	ldr	r3, .L11+4
	str	r0, [r4, #8]
	ldr	r3, [r3]
	add	r0, r4, #16
	str	r3, [r4, #4]
	bl	mutex_init
	add	r0, r4, #12
	bl	INIT_LIST_HEAD
	mov	r0, r5
	bl	scsi_is_sas_expander_device
	cmp	r0, #0
	bne	.L10
	mov	r0, r6
	ldr	r2, [r8]
	ldr	r3, [r4]
	ldr	r1, .L11+8
	bl	dev_set_name
.L4:
	mov	r0, r6
	bl	transport_setup_device
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r5
	bl	dev_to_rphy
	ldr	r1, [r4]
	ldr	r3, [r0]
	ldr	r2, [r8]
	mov	r0, r6
	str	r1, [sp]
	ldr	r1, .L11+12
	bl	dev_set_name
	b	.L4
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	sas_port_release
	.word	.LC1
	.word	.LC0
	.size	sas_port_alloc, .-sas_port_alloc
	.comm	sas_port_release,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
