	.file	"extr_scsi_transport_sas.c_sas_port_alloc_num.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sas_port_alloc_num
	.type	sas_port_alloc_num, @function
sas_port_alloc_num:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	dev_to_shost@PLT
	mov	rdi, rax
	call	to_sas_host_attrs@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	mutex_lock@PLT
	mov	rdi, r12
	call	scsi_is_sas_expander_device@PLT
	test	rax, rax
	jne	.L6
	mov	r13d, DWORD PTR 4[rbp]
	lea	eax, 1[r13]
	mov	DWORD PTR 4[rbp], eax
.L3:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r13d
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	sas_port_alloc@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r12
	call	dev_to_rphy@PLT
	mov	rdi, rax
	call	rphy_to_expander_device@PLT
	mov	r13d, DWORD PTR [rax]
	lea	edx, 1[r13]
	mov	DWORD PTR [rax], edx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sas_port_alloc_num, .-sas_port_alloc_num
	.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_num.c"
	.text
	.align	2
	.global	sas_port_alloc_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	sas_port_alloc_num, %function
sas_port_alloc_num:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	dev_to_shost
	bl	to_sas_host_attrs
	mov	r4, r0
	bl	mutex_lock
	mov	r0, r5
	bl	scsi_is_sas_expander_device
	cmp	r0, #0
	bne	.L6
	ldr	r6, [r4, #4]
	add	r3, r6, #1
	str	r3, [r4, #4]
.L3:
	mov	r0, r4
	bl	mutex_unlock
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	sas_port_alloc
.L6:
	mov	r0, r5
	bl	dev_to_rphy
	bl	rphy_to_expander_device
	ldr	r6, [r0]
	add	r3, r6, #1
	str	r3, [r0]
	b	.L3
	.size	sas_port_alloc_num, .-sas_port_alloc_num
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
