	.file	"extr_bfa_fcs_lport.c_bfa_fcs_lport_scn_send_scr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bfa_fcs_lport_scn_send_scr, @function
bfa_fcs_lport_scn_send_scr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	call	bfa_trc@PLT
	mov	esi, DWORD PTR 36[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	call	bfa_trc@PLT
	test	rbp, rbp
	je	.L13
.L2:
	mov	eax, DWORD PTR 32[rbx]
	mov	QWORD PTR [r12], rbp
	test	eax, eax
	je	.L14
.L4:
	mov	r15d, DWORD PTR 16[rbx]
	mov	r14d, DWORD PTR BFA_FALSE[rip]
.L11:
	mov	rdi, rbp
	lea	r13, 4[rsp]
	call	bfa_fcxp_get_reqbuf@PLT
	xor	r8d, r8d
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, eax
	mov	rdi, r13
	call	fc_scr_build@PLT
	mov	ecx, DWORD PTR FC_ELS_TOV[rip]
	xor	esi, esi
	mov	rdi, rbp
	mov	rdx, QWORD PTR 8[rbx]
	mov	r9d, DWORD PTR FC_CLASS_3[rip]
	push	rcx
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR FC_MAX_PDUSZ[rip]
	mov	r8d, DWORD PTR BFA_FALSE[rip]
	push	rcx
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR bfa_fcs_lport_scn_scr_response[rip]
	push	r12
	.cfi_def_cfa_offset 104
	push	rcx
	.cfi_def_cfa_offset 112
	push	r13
	.cfi_def_cfa_offset 120
	push	rax
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR [rdx]
	call	bfa_fcxp_send@PLT
	mov	esi, DWORD PTR SCNSM_EVENT_SCR_SENT[rip]
	add	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rdi, r12
	call	bfa_sm_send_event@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR [rax]
	call	bfa_ioc_get_fcmode@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 8[rbx]
	mov	r15d, DWORD PTR 16[rbx]
	mov	rax, QWORD PTR 8[rax]
	mov	r14d, DWORD PTR [rax]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR BFA_TRUE[rip]
	call	bfa_fcs_fcxp_alloc@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR 24[rbx]
	mov	r8d, DWORD PTR BFA_TRUE[rip]
	lea	rsi, 8[r12]
	mov	rcx, r12
	lea	rdx, bfa_fcs_lport_scn_send_scr[rip]
	mov	rdi, QWORD PTR [rax]
	call	bfa_fcs_fcxp_alloc_wait@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bfa_fcs_lport_scn_send_scr, .-bfa_fcs_lport_scn_send_scr
	.comm	bfa_fcs_lport_scn_scr_response,4,4
	.comm	SCNSM_EVENT_SCR_SENT,4,4
	.comm	FC_MAX_PDUSZ,4,4
	.comm	FC_ELS_TOV,4,4
	.comm	FC_CLASS_3,4,4
	.comm	BFA_TRUE,4,4
	.comm	BFA_FALSE,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_bfa_fcs_lport.c_bfa_fcs_lport_scn_send_scr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfa_fcs_lport_scn_send_scr, %function
bfa_fcs_lport_scn_send_scr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r4, [r0, #8]
	ldr	r3, .L15
	sub	sp, sp, #40
	ldr	r1, [r4, #8]
	mov	r7, r0
	ldr	r0, [r4, #12]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	bfa_trc
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #12]
	bl	bfa_trc
	cmp	r5, #0
	beq	.L12
.L2:
	ldr	r6, [r4, #16]
	str	r5, [r7]
	cmp	r6, #0
	beq	.L13
.L4:
	mov	r0, r5
	bl	bfa_fcxp_get_reqbuf
	mov	r2, #0
	ldr	r6, .L15+4
	ldr	r3, [r4, #8]
	add	r8, sp, #32
	str	r2, [sp]
	mov	r1, r0
	ldr	r2, [r6]
	mov	r0, r8
	bl	fc_scr_build
	mov	r1, r0
.L5:
	ldr	lr, .L15+8
	ldr	r3, [r4, #4]
	ldr	ip, [r6]
	ldr	r0, .L15+12
	ldr	r6, [lr]
	ldr	lr, .L15+16
	ldr	r2, [r3]
	ldr	lr, [lr]
	ldr	r3, [r4]
	ldr	r4, [r0]
	str	ip, [sp]
	ldr	ip, .L15+20
	mov	r0, r5
	ldr	ip, [ip]
	str	r1, [sp, #8]
	str	r7, [sp, #20]
	mov	r1, #0
	str	r8, [sp, #12]
	str	r6, [sp, #28]
	str	r4, [sp, #24]
	str	lr, [sp, #16]
	str	ip, [sp, #4]
	bl	bfa_fcxp_send
	ldr	r3, .L15+24
	mov	r0, r7
	ldr	r1, [r3]
	bl	bfa_sm_send_event
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, [r4, #12]
	ldr	r0, [r3]
	bl	bfa_ioc_get_fcmode
	cmp	r0, #0
	beq	.L4
	mov	r0, r5
	bl	bfa_fcxp_get_reqbuf
	ldmib	r4, {r2, r3}
	ldr	r2, [r2, #4]
	add	r8, sp, #32
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, r8
	str	r6, [sp]
	bl	fc_scr_build
	ldr	r6, .L15+4
	mov	r1, r0
	b	.L5
.L12:
	ldr	r6, .L15+28
	ldr	r0, [r4, #12]
	ldr	r1, [r6]
	bl	bfa_fcs_fcxp_alloc
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, [r4, #12]
	ldr	r2, [r6]
	ldr	r0, [r3]
	add	r1, r7, #4
	str	r2, [sp]
	mov	r3, r7
	ldr	r2, .L15+32
	bl	bfa_fcs_fcxp_alloc_wait
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	BFA_FALSE
	.word	FC_ELS_TOV
	.word	FC_MAX_PDUSZ
	.word	bfa_fcs_lport_scn_scr_response
	.word	FC_CLASS_3
	.word	SCNSM_EVENT_SCR_SENT
	.word	BFA_TRUE
	.word	bfa_fcs_lport_scn_send_scr
	.size	bfa_fcs_lport_scn_send_scr, .-bfa_fcs_lport_scn_send_scr
	.comm	bfa_fcs_lport_scn_scr_response,4,4
	.comm	SCNSM_EVENT_SCR_SENT,4,4
	.comm	FC_MAX_PDUSZ,4,4
	.comm	FC_ELS_TOV,4,4
	.comm	FC_CLASS_3,4,4
	.comm	BFA_TRUE,4,4
	.comm	BFA_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
