	.file	"extr_fc_lport.c_fc_lport_ms_resp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Received a ms %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Received a management server response, but in state %s\n"
	.align 8
.LC2:
	.string	"Received a management server response, reason=%d explain=%d\n"
	.text
	.p2align 4
	.type	fc_lport_ms_resp, @function
fc_lport_ms_resp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdi, rsi
	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, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	fc_els_resp_type@PLT
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	edx, eax
	xor	eax, eax
	call	FC_LPORT_DBG@PLT
	mov	edi, DWORD PTR FC_EX_CLOSED[rip]
	neg	edi
	call	ERR_PTR@PLT
	cmp	rbp, rax
	je	.L1
	lea	r13, 4[r12]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [r12]
	sub	eax, 129
	cmp	eax, 1
	jbe	.L3
	mov	rdi, r12
	call	fc_lport_state@PLT
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	FC_LPORT_DBG@PLT
	mov	rdi, rbp
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L4
.L5:
	mov	rdi, rbp
	call	fc_frame_free@PLT
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L22
	mov	rdi, rbp
	call	fc_frame_header_get@PLT
	mov	esi, 32
	mov	rdi, rbp
	mov	rbx, rax
	call	fc_frame_payload_get@PLT
	mov	r14, rax
	test	rbx, rbx
	je	.L7
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR FC_TYPE_CT[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L23
.L7:
	mov	rsi, rbp
	mov	rdi, r12
	call	fc_lport_error@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	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
.L22:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	fc_lport_error@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR FC_FST_MGMT[rip]
	cmp	QWORD PTR [r14], rax
	jne	.L7
	mov	rax, QWORD PTR FC_FDMI_SUBTYPE[rip]
	cmp	QWORD PTR 8[r14], rax
	jne	.L7
	mov	ecx, DWORD PTR 20[r14]
	mov	edx, DWORD PTR 24[r14]
	mov	rdi, r12
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	FC_LPORT_DBG@PLT
	mov	eax, DWORD PTR [r12]
	cmp	eax, 130
	je	.L8
	jg	.L9
	cmp	eax, 128
	je	.L10
	cmp	eax, 129
	jne	.L5
	mov	edi, DWORD PTR 16[r14]
	call	ntohs@PLT
	cmp	eax, DWORD PTR FC_FS_ACC[rip]
	je	.L24
.L10:
	mov	rdi, r12
	call	fc_lport_enter_scr@PLT
	jmp	.L5
.L9:
	cmp	eax, 131
	jne	.L5
	mov	esi, 130
	mov	rdi, r12
	call	fc_lport_enter_ms@PLT
	jmp	.L5
.L8:
	mov	esi, 129
	mov	rdi, r12
	call	fc_lport_enter_ms@PLT
	jmp	.L5
.L24:
	mov	esi, 128
	mov	rdi, r12
	call	fc_lport_enter_ms@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	fc_lport_ms_resp, .-fc_lport_ms_resp
	.comm	FC_TYPE_CT,8,8
	.comm	FC_FS_ACC,4,4
	.comm	FC_FST_MGMT,8,8
	.comm	FC_FDMI_SUBTYPE,8,8
	.comm	FC_EX_CLOSED,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_fc_lport.c_fc_lport_ms_resp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Received a ms %s\012\000"
	.align	2
.LC1:
	.ascii	"Received a management server response, but in state"
	.ascii	" %s\012\000"
	.align	2
.LC2:
	.ascii	"Received a management server response, reason=%d ex"
	.ascii	"plain=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fc_lport_ms_resp, %function
fc_lport_ms_resp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r1
	mov	r4, r1
	mov	r5, r2
	bl	fc_els_resp_type
	ldr	r1, .L23
	mov	r2, r0
	mov	r0, r5
	bl	FC_LPORT_DBG
	ldr	r3, .L23+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	cmp	r4, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	add	r6, r5, #4
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, [r5]
	sub	r3, r3, #129
	cmp	r3, #1
	bls	.L3
	mov	r0, r5
	bl	fc_lport_state
	ldr	r1, .L23+8
	mov	r2, r0
	mov	r0, r5
	bl	FC_LPORT_DBG
	mov	r0, r4
	bl	IS_ERR
	cmp	r0, #0
	bne	.L4
.L5:
	mov	r0, r4
	bl	fc_frame_free
.L4:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L3:
	mov	r0, r4
	bl	IS_ERR
	cmp	r0, #0
	bne	.L20
	mov	r0, r4
	bl	fc_frame_header_get
	mov	r1, #20
	mov	r7, r0
	mov	r0, r4
	bl	fc_frame_payload_get
	cmp	r7, #0
	cmpne	r0, #0
	mov	r8, r0
	beq	.L7
	ldr	r3, .L23+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L21
.L7:
	mov	r0, r5
	mov	r1, r4
	bl	fc_lport_error
	b	.L5
.L20:
	mov	r1, r4
	mov	r0, r5
	bl	fc_lport_error
	b	.L4
.L21:
	ldr	r3, .L23+16
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	ldr	r3, .L23+20
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [r0, #12]
	ldr	r2, [r0, #16]
	ldr	r1, .L23+24
	mov	r0, r5
	bl	FC_LPORT_DBG
	ldr	r3, [r5]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L9:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L8:
	mov	r0, r5
	mov	r1, #130
	bl	fc_lport_enter_ms
	b	.L5
.L10:
	mov	r0, r5
	mov	r1, #129
	bl	fc_lport_enter_ms
	b	.L5
.L11:
	ldr	r0, [r8, #8]
	bl	ntohs
	ldr	r3, .L23+28
	ldr	r3, [r3]
	cmp	r0, r3
	mov	r0, r5
	beq	.L22
.L18:
	bl	fc_lport_enter_scr
	b	.L5
.L12:
	mov	r0, r5
	b	.L18
.L22:
	mov	r1, #128
	bl	fc_lport_enter_ms
	b	.L5
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	FC_EX_CLOSED
	.word	.LC1
	.word	FC_TYPE_CT
	.word	FC_FST_MGMT
	.word	FC_FDMI_SUBTYPE
	.word	.LC2
	.word	FC_FS_ACC
	.size	fc_lport_ms_resp, .-fc_lport_ms_resp
	.comm	FC_TYPE_CT,4,4
	.comm	FC_FS_ACC,4,4
	.comm	FC_FST_MGMT,4,4
	.comm	FC_FDMI_SUBTYPE,4,4
	.comm	FC_EX_CLOSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
