	.file	"extr_sli4.c_sli_cmd_common_get_port_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unsupported IF_TYPE %d\n"
	.text
	.p2align 4
	.type	sli_cmd_common_get_port_name, @function
sli_cmd_common_get_port_name:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edx, DWORD PTR [rdi]
	mov	rbx, rsi
	cmp	edx, 129
	jle	.L13
	lea	eax, -130[rdx]
	mov	r13d, 4
	xor	r14d, r14d
	cmp	eax, 1
	ja	.L4
.L3:
	mov	esi, 4
	mov	edi, 20
	call	max@PLT
	mov	rdi, QWORD PTR SLI4_PORT_TYPE_FC[rip]
	xor	esi, esi
	mov	ecx, eax
	mov	eax, r13d
	cmp	QWORD PTR 8[rbp], rdi
	je	.L14
.L6:
	mov	edx, DWORD PTR SLI4_OPC_COMMON_GET_PORT_NAME[rip]
	mov	DWORD PTR 4[rbx], r13d
	mov	DWORD PTR 8[rbx], r14d
	mov	DWORD PTR 16[rbx], edx
	mov	edx, DWORD PTR SLI4_SUBSYSTEM_COMMON[rip]
	mov	DWORD PTR 12[rbx], edx
	cmp	r14d, 1
	je	.L15
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L13:
	.cfi_restore_state
	cmp	edx, 127
	jg	.L16
.L4:
	mov	edi, DWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	call	ocs_log_test@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L15:
	.cfi_restore_state
	mov	DWORD PTR [rbx], esi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L16:
	.cfi_restore_state
	mov	r13d, 8
	mov	r14d, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, rbx
	mov	rdx, r12
	xor	r8d, r8d
	mov	rdi, rbp
	call	sli_cmd_sli_config@PLT
	mov	esi, 1
	movsx	rdx, eax
	add	eax, r13d
	lea	rbx, [rbx+rdx*4]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	sli_cmd_common_get_port_name, .-sli_cmd_common_get_port_name
	.comm	SLI4_SUBSYSTEM_COMMON,4,4
	.comm	SLI4_PORT_TYPE_FC,8,8
	.comm	SLI4_OPC_COMMON_GET_PORT_NAME,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_sli4.c_sli_cmd_common_get_port_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unsupported IF_TYPE %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sli_cmd_common_get_port_name, %function
sli_cmd_common_get_port_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	mov	r5, r0
	cmp	r3, #129
	mov	r4, r1
	mov	r6, r2
	sub	sp, sp, #8
	ble	.L13
	sub	r2, r3, #130
	cmp	r2, #1
	movls	r8, #4
	movls	r7, #0
	bhi	.L4
.L3:
	mov	r1, #4
	mov	r0, #20
	bl	max
	ldr	r3, .L16
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r0, r8
	movne	r1, #0
	beq	.L14
.L6:
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r7, #1
	str	r8, [r4, #4]
	str	r7, [r4, #8]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	streq	r1, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	cmp	r3, #127
	bgt	.L15
.L4:
	mov	r2, r3
	ldr	r0, [r5, #8]
	ldr	r1, .L16+12
	bl	ocs_log_test
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r8, #8
	mov	r7, #1
	b	.L3
.L14:
	mov	r1, #0
	mov	r3, r0
	str	r1, [sp]
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	sli_cmd_sli_config
	mov	r1, #1
	add	r4, r4, r0, lsl #2
	add	r0, r0, r8
	b	.L6
.L17:
	.align	2
.L16:
	.word	SLI4_PORT_TYPE_FC
	.word	SLI4_OPC_COMMON_GET_PORT_NAME
	.word	SLI4_SUBSYSTEM_COMMON
	.word	.LC0
	.size	sli_cmd_common_get_port_name, .-sli_cmd_common_get_port_name
	.comm	SLI4_SUBSYSTEM_COMMON,4,4
	.comm	SLI4_PORT_TYPE_FC,4,4
	.comm	SLI4_OPC_COMMON_GET_PORT_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
