	.file	"extr_qla_target.c_qlt_make_local_sess.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to find initiator with S_ID %x:%x:%x"
	.align 8
.LC1:
	.string	"qla_target(%d): Unable to find initiator with S_ID %x:%x:%x"
	.align 8
.LC2:
	.string	"qla_target(%d): global reset during session discovery (counter was %d, new %d), retrying"
	.text
	.p2align 4
	.type	qlt_make_local_sess, @function
qlt_make_local_sess:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	shr	r12, 32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], esi
	mov	DWORD PTR 24[rsp], r12d
	mov	DWORD PTR 60[rsp], 0
	cmp	r12d, 252
	jne	.L2
	cmp	esi, 255
	je	.L19
.L2:
	lea	rax, 8[r15]
	lea	r14, 60[rsp]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	lea	r12, .LC2[rip]
	call	mutex_lock@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 60[rsp]
	mov	rdi, r15
	call	qlt_get_port_database@PLT
	mov	r13, rax
	test	rax, rax
	je	.L17
	mov	rdi, QWORD PTR 16[r15]
	call	atomic_read@PLT
	cmp	eax, ebx
	je	.L7
	mov	rdi, QWORD PTR 16[r15]
	call	atomic_read@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	r8d, DWORD PTR [r15]
	mov	r9d, ebx
	push	rax
	.cfi_def_cfa_offset 160
	mov	edi, DWORD PTR ql_dbg_tgt_mgt[rip]
	mov	edx, 61507
	mov	rcx, r12
	mov	rsi, r15
	call	ql_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
.L4:
	mov	rdi, QWORD PTR 16[r15]
	call	atomic_read@PLT
	mov	rcx, r14
	mov	edx, ebp
	mov	rdi, r15
	mov	ebx, eax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 40[rsp], ebp
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR 24[rsp]
	mov	DWORD PTR 36[rsp], eax
	mov	rsi, QWORD PTR 32[rsp]
	call	qla24xx_get_loop_id@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 16[rsp]
	mov	DWORD PTR 28[rsp], eax
	xor	r13d, r13d
	call	mutex_unlock@PLT
	push	rbp
	.cfi_def_cfa_offset 152
	mov	eax, DWORD PTR 32[rsp]
	mov	rsi, r15
	mov	r8d, DWORD PTR [r15]
	mov	edi, DWORD PTR ql_log_info[rip]
	mov	edx, 61553
	lea	rcx, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 160
	mov	r9d, DWORD PTR 28[rsp]
	call	ql_log@PLT
	pop	rcx
	.cfi_def_cfa_offset 152
	pop	rsi
	.cfi_def_cfa_offset 144
	mov	r11d, DWORD PTR 28[rsp]
	add	r11d, DWORD PTR ENOENT[rip]
	jne	.L1
	mov	rdi, QWORD PTR 32[rsp]
	mov	esi, DWORD PTR 40[rsp]
	call	be_to_port_id@PLT
	lea	rsi, 64[rsp]
	mov	rdi, r15
	mov	DWORD PTR 64[rsp], 1
	mov	DWORD PTR 68[rsp], eax
	call	qlt_send_first_logo@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r13
	mov	edx, 1
	mov	rdi, r15
	call	qlt_create_sess@PLT
	mov	r13, rax
.L17:
	mov	rdi, QWORD PTR 16[rsp]
	call	mutex_unlock@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L19:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rsi, rdi
	mov	edi, DWORD PTR ql_dbg_tgt_mgt[rip]
	xor	r13d, r13d
	push	rdx
	.cfi_def_cfa_offset 160
	mov	r8d, 255
	mov	r9d, 252
	lea	rcx, .LC0[rip]
	mov	edx, 61506
	call	ql_dbg@PLT
	pop	rdi
	.cfi_def_cfa_offset 152
	pop	r8
	.cfi_def_cfa_offset 144
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qlt_make_local_sess, .-qlt_make_local_sess
	.comm	ql_log_info,4,4
	.comm	ql_dbg_tgt_mgt,4,4
	.comm	ENOENT,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_qla_target.c_qlt_make_local_sess.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to find initiator with S_ID %x:%x:%x\000"
	.align	2
.LC1:
	.ascii	"qla_target(%d): Unable to find initiator with S_ID "
	.ascii	"%x:%x:%x\000"
	.align	2
.LC2:
	.ascii	"qla_target(%d): global reset during session discove"
	.ascii	"ry (counter was %d, new %d), retrying\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlt_make_local_sess, %function
qlt_make_local_sess:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #60
	add	ip, sp, #28
	stm	ip, {r1, r2, r3}
	ldr	r9, [sp, #32]
	mov	r6, #0
	cmp	r9, #252
	cmpeq	r1, #255
	ldr	r3, .L15
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r3, [sp, #36]
	str	r6, [sp, #40]
	str	r3, [sp, #20]
	beq	.L13
	add	r3, r0, #4
	mov	r0, r3
	mov	r8, r1
	str	r3, [sp, #24]
	ldr	fp, .L15+4
	bl	mutex_lock
	ldr	r10, .L15+8
	b	.L4
.L5:
	mov	r0, r4
	ldr	r1, [sp, #40]
	bl	qlt_get_port_database
	subs	r6, r0, #0
	beq	.L11
	ldr	r0, [r4, #8]
	bl	atomic_read
	cmp	r0, r5
	beq	.L7
	ldr	r3, .L15+12
	ldr	r0, [r4, #8]
	ldr	r6, [r3]
	ldr	r7, [r4]
	bl	atomic_read
	mov	r3, fp
	str	r0, [sp, #8]
	mov	r2, r10
	mov	r0, r6
	mov	r1, r4
	str	r7, [sp]
	str	r5, [sp, #4]
	bl	ql_dbg
.L4:
	ldr	r0, [r4, #8]
	bl	atomic_read
	ldr	r3, [sp, #20]
	str	r8, [sp, #28]
	str	r3, [sp, #36]
	add	r3, sp, #40
	str	r3, [sp]
	str	r9, [sp, #32]
	add	r3, sp, #28
	mov	r5, r0
	ldm	r3, {r1, r2, r3}
	mov	r0, r4
	bl	qla24xx_get_loop_id
	cmp	r0, #0
	beq	.L5
	mov	r6, r0
	ldr	r0, [sp, #24]
	bl	mutex_unlock
	ldr	r3, [r4]
	ldr	r1, [sp, #20]
	stmib	sp, {r8, r9}
	ldr	r2, .L15+16
	str	r1, [sp, #12]
	ldr	r0, [r2]
	mov	r1, r4
	str	r3, [sp]
	ldr	r2, .L15+20
	ldr	r3, .L15+24
	bl	ql_log
	ldr	r3, .L15+28
	ldr	r3, [r3]
	cmn	r6, r3
	movne	r6, #0
	bne	.L1
	add	r3, sp, #28
	ldm	r3, {r0, r1, r2}
	bl	be_to_port_id
	mov	r3, #1
	mov	r2, r0
	add	r1, sp, #44
	mov	r0, r4
	mov	r6, #0
	str	r2, [sp, #48]
	str	r3, [sp, #44]
	bl	qlt_send_first_logo
	b	.L1
.L7:
	mov	r1, r6
	mov	r0, r4
	mov	r2, #1
	bl	qlt_create_sess
	mov	r6, r0
.L11:
	ldr	r0, [sp, #24]
	bl	mutex_unlock
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r6
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, #252
	mov	r2, #255
	ldr	r1, [sp, #20]
	ldr	r3, .L15+12
	str	r1, [sp, #8]
	str	r2, [sp]
	str	r0, [sp, #4]
	mov	r1, r4
	ldr	r0, [r3]
	ldr	r2, .L15+32
	ldr	r3, .L15+36
	bl	ql_dbg
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC2
	.word	61507
	.word	ql_dbg_tgt_mgt
	.word	ql_log_info
	.word	61553
	.word	.LC1
	.word	ENOENT
	.word	61506
	.word	.LC0
	.size	qlt_make_local_sess, .-qlt_make_local_sess
	.comm	ql_log_info,4,4
	.comm	ql_dbg_tgt_mgt,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
