	.file	"extr_port.c_sci_port_get_properties.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sci_port_get_properties
	.type	sci_port_get_properties, @function
sci_port_get_properties:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L9
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR SCIC_SDS_DUMMY_PORT[rip]
	je	.L13
	mov	QWORD PTR [rsi], rax
	mov	rbx, rsi
	call	sci_port_get_phys@PLT
	lea	rsi, 16[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 20[rbx], eax
	call	sci_port_get_sas_address@PLT
	lea	rsi, 12[rbx]
	mov	rdi, rbp
	call	sci_port_get_protocols@PLT
	lea	rsi, 8[rbx]
	mov	rdi, rbp
	call	sci_port_get_attached_sas_address@PLT
	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
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR SCI_FAILURE_INVALID_PORT[rip]
	add	rsp, 8
	.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
.L9:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR SCI_FAILURE_INVALID_PORT[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	sci_port_get_properties, .-sci_port_get_properties
	.comm	SCI_SUCCESS,4,4
	.comm	SCI_FAILURE_INVALID_PORT,4,4
	.comm	SCIC_SDS_DUMMY_PORT,8,8
	.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_port.c_sci_port_get_properties.c"
	.text
	.align	2
	.global	sci_port_get_properties
	.syntax unified
	.arm
	.fpu softvfp
	.type	sci_port_get_properties, %function
sci_port_get_properties:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r2, .L10
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	str	r3, [r1]
	mov	r5, r1
	bl	sci_port_get_phys
	add	r1, r5, #12
	str	r0, [r5, #16]
	mov	r0, r4
	bl	sci_port_get_sas_address
	add	r1, r5, #8
	mov	r0, r4
	bl	sci_port_get_protocols
	mov	r0, r4
	add	r1, r5, #4
	bl	sci_port_get_attached_sas_address
	ldr	r3, .L10+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	SCIC_SDS_DUMMY_PORT
	.word	SCI_SUCCESS
	.word	SCI_FAILURE_INVALID_PORT
	.size	sci_port_get_properties, .-sci_port_get_properties
	.comm	SCI_SUCCESS,4,4
	.comm	SCI_FAILURE_INVALID_PORT,4,4
	.comm	SCIC_SDS_DUMMY_PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
