	.file	"extr_scif_sas_remote_device.c_scif_sas_remote_device_update_port_width.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	scif_sas_remote_device_update_port_width
	.type	scif_sas_remote_device_update_port_width, @function
scif_sas_remote_device_update_port_width:
.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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	sci_base_object_get_logger@PLT
	mov	edi, ebp
	call	SCIF_LOG_INFO@PLT
	mov	rax, QWORD PTR 16[rbx]
	cmp	rax, QWORD PTR SCI_BASE_REMOTE_DEVICE_STATE_READY[rip]
	mov	QWORD PTR [rbx], rbp
	je	.L11
	cmp	rax, QWORD PTR SCI_BASE_REMOTE_DEVICE_STATE_STARTING[rip]
	jne	.L5
	mov	eax, DWORD PTR SCIF_SAS_REMOTE_DEVICE_DESTINATION_STATE_UPDATING_PORT_WIDTH[rip]
	mov	DWORD PTR 8[rbx], eax
.L5:
	mov	eax, DWORD PTR SCI_FAILURE_INVALID_STATE[rip]
	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
	test	rbp, rbp
	jne	.L12
.L3:
	mov	eax, DWORD PTR SCI_SUCCESS[rip]
	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
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR SCI_BASE_REMOTE_DEVICE_STATE_UPDATING_PORT_WIDTH[rip]
	lea	rdi, 16[rbx]
	call	sci_base_state_machine_change_state@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	scif_sas_remote_device_update_port_width, .-scif_sas_remote_device_update_port_width
	.comm	SCI_SUCCESS,4,4
	.comm	SCI_FAILURE_INVALID_STATE,4,4
	.comm	SCI_BASE_REMOTE_DEVICE_STATE_UPDATING_PORT_WIDTH,4,4
	.comm	SCI_BASE_REMOTE_DEVICE_STATE_STARTING,8,8
	.comm	SCI_BASE_REMOTE_DEVICE_STATE_READY,8,8
	.comm	SCIF_SAS_REMOTE_DEVICE_DESTINATION_STATE_UPDATING_PORT_WIDTH,4,4
	.comm	SCIF_LOG_OBJECT_REMOTE_DEVICE,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_scif_sas_remote_device.c_scif_sas_remote_device_update_port_width.c"
	.text
	.align	2
	.global	scif_sas_remote_device_update_port_width
	.syntax unified
	.arm
	.fpu softvfp
	.type	scif_sas_remote_device_update_port_width, %function
scif_sas_remote_device_update_port_width:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	bl	sci_base_object_get_logger
	mov	r0, r5
	bl	SCIF_LOG_INFO
	ldr	r2, .L13
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	str	r5, [r4]
	cmp	r3, r2
	beq	.L11
	ldr	r2, .L13+4
	ldr	r2, [r2]
	cmp	r3, r2
	ldreq	r3, .L13+8
	ldreq	r3, [r3]
	streq	r3, [r4, #4]
	ldr	r3, .L13+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	cmp	r5, #0
	bne	.L12
.L3:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+20
	add	r0, r4, #8
	ldr	r1, [r3]
	bl	sci_base_state_machine_change_state
	b	.L3
.L14:
	.align	2
.L13:
	.word	SCI_BASE_REMOTE_DEVICE_STATE_READY
	.word	SCI_BASE_REMOTE_DEVICE_STATE_STARTING
	.word	SCIF_SAS_REMOTE_DEVICE_DESTINATION_STATE_UPDATING_PORT_WIDTH
	.word	SCI_FAILURE_INVALID_STATE
	.word	SCI_SUCCESS
	.word	SCI_BASE_REMOTE_DEVICE_STATE_UPDATING_PORT_WIDTH
	.size	scif_sas_remote_device_update_port_width, .-scif_sas_remote_device_update_port_width
	.comm	SCI_SUCCESS,4,4
	.comm	SCI_FAILURE_INVALID_STATE,4,4
	.comm	SCI_BASE_REMOTE_DEVICE_STATE_UPDATING_PORT_WIDTH,4,4
	.comm	SCI_BASE_REMOTE_DEVICE_STATE_STARTING,4,4
	.comm	SCI_BASE_REMOTE_DEVICE_STATE_READY,4,4
	.comm	SCIF_SAS_REMOTE_DEVICE_DESTINATION_STATE_UPDATING_PORT_WIDTH,4,4
	.comm	SCIF_LOG_OBJECT_REMOTE_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
