	.file	"extr_qla_iocb.c_qla24xx_els_dcmd2_iocb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SRB allocation failed\n"
.LC1:
	.string	"Enter: PLOGI portid=%06x\n"
.LC2:
	.string	"ELS_DCMD"
.LC3:
	.string	"PLOGI %p %p\n"
.LC4:
	.string	"PLOGI buffer:\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"%s PLOGI sent, hdl=%x, loopid=%x, to port_id %06x from port_id %06x\n"
	.text
	.p2align 4
	.globl	qla24xx_els_dcmd2_iocb
	.type	qla24xx_els_dcmd2_iocb, @function
qla24xx_els_dcmd2_iocb:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	mov	rsi, rbx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	r14, QWORD PTR 8[rdi]
	mov	DWORD PTR 12[rsp], ecx
	call	qla2x00_get_sp@PLT
	test	rax, rax
	je	.L19
	mov	r8d, DWORD PTR 4[rbx]
	mov	r12, rax
	movsx	rdi, DWORD PTR ql_dbg_io[rip]
	xor	eax, eax
	mov	edx, 12403
	lea	rcx, .LC1[rip]
	mov	rsi, rbp
	call	ql_dbg@PLT
	mov	eax, DWORD PTR FCF_ASYNC_SENT[rip]
	or	DWORD PTR [rbx], eax
	lea	r15, 64[r12]
	mov	eax, DWORD PTR SRB_ELS_DCMD[rip]
	mov	QWORD PTR 32[r12], rbx
	mov	rdi, r15
	mov	DWORD PTR 40[r12], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR [r12], rax
	mov	eax, DWORD PTR qla2x00_els_dcmd2_iocb_timeout[rip]
	mov	DWORD PTR 104[r12], eax
	call	init_completion@PLT
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	jne	.L20
.L4:
	mov	rax, QWORD PTR ELS_DCMD_TIMEOUT[rip]
	mov	rdi, r12
	lea	rsi, 2[rax]
	call	qla2x00_init_timer@PLT
	mov	esi, DWORD PTR DMA_POOL_SIZE[rip]
	mov	rdi, QWORD PTR 8[r14]
	lea	rdx, 92[r12]
	mov	eax, DWORD PTR qla2x00_els_dcmd2_sp_done[rip]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	DWORD PTR 96[r12], esi
	mov	DWORD PTR 20[r12], eax
	mov	DWORD PTR 100[r12], esi
	call	dma_alloc_coherent@PLT
	mov	QWORD PTR 72[r12], rax
	test	rax, rax
	je	.L17
	mov	rdi, QWORD PTR 8[r14]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 88[r12]
	mov	QWORD PTR 16[rsp], rax
	mov	esi, DWORD PTR DMA_POOL_SIZE[rip]
	call	dma_alloc_coherent@PLT
	mov	r8, QWORD PTR 16[rsp]
	test	rax, rax
	mov	QWORD PTR 80[r12], rax
	mov	r9, rax
	je	.L17
	movsx	rdi, DWORD PTR ql_dbg_io[rip]
	lea	rcx, .LC3[rip]
	mov	QWORD PTR 24[rsp], rax
	mov	rsi, rbp
	mov	edx, 12403
	xor	eax, eax
	mov	QWORD PTR 16[rsp], r8
	call	ql_dbg@PLT
	mov	r8, QWORD PTR 16[rsp]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, r8
	call	memset@PLT
	mov	r9, QWORD PTR 24[rsp]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, r9
	call	memset@PLT
	mov	rax, QWORD PTR 72[r12]
	mov	edx, 4
	mov	rsi, r14
	mov	edi, DWORD PTR 4[rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR 72[r12]
	mov	rsi, rbp
	mov	DWORD PTR 48[r12], r13d
	mov	rdi, QWORD PTR ql_dbg_buffer[rip]
	lea	rcx, .LC4[rip]
	add	rdi, QWORD PTR ql_dbg_disc[rip]
	mov	edx, 12403
	mov	DWORD PTR [rax], r13d
	xor	eax, eax
	call	ql_dbg@PLT
	mov	rcx, QWORD PTR 72[r12]
	mov	r8d, 112
	mov	rsi, rbp
	mov	rdi, QWORD PTR ql_dbg_buffer[rip]
	mov	edx, 265
	add	rdi, QWORD PTR ql_dbg_disc[rip]
	call	ql_dump_buffer@PLT
	mov	rdi, r12
	call	qla2x00_start_sp@PLT
	cmp	DWORD PTR QLA_SUCCESS[rip], eax
	mov	r13d, eax
	je	.L8
	mov	r13d, DWORD PTR QLA_FUNCTION_FAILED[rip]
.L9:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L1
	mov	rdi, r15
	call	wait_for_completion@PLT
	mov	rax, QWORD PTR CS_COMPLETE[rip]
	cmp	QWORD PTR 56[r12], rax
	je	.L6
.L17:
	mov	r13d, DWORD PTR QLA_FUNCTION_FAILED[rip]
.L6:
	mov	eax, DWORD PTR FCF_ASYNC_SENT[rip]
	mov	rdi, rbp
	lea	rsi, 48[r12]
	not	eax
	and	DWORD PTR [rbx], eax
	call	qla2x00_els_dcmd2_free@PLT
	mov	rdi, r12
	call	[QWORD PTR 8[r12]]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR SRB_WAKEUP_ON_COMP[rip]
	mov	DWORD PTR 24[r12], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR ql_log_info[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 28902
	mov	rsi, rbp
	call	ql_log@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 0[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r9d, DWORD PTR 16[r12]
	mov	rsi, rbp
	mov	r8, QWORD PTR [r12]
	mov	rdi, QWORD PTR ql_dbg_disc[rip]
	mov	edx, 12404
	lea	rcx, .LC5[rip]
	push	rax
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 8[rbx]
	push	rax
	.cfi_def_cfa_offset 128
	xor	eax, eax
	call	ql_dbg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	qla24xx_els_dcmd2_iocb, .-qla24xx_els_dcmd2_iocb
	.comm	qla2x00_els_dcmd2_sp_done,4,4
	.comm	qla2x00_els_dcmd2_iocb_timeout,4,4
	.comm	ql_log_info,4,4
	.comm	ql_dbg_io,4,4
	.comm	ql_dbg_disc,8,8
	.comm	ql_dbg_buffer,8,8
	.comm	SRB_WAKEUP_ON_COMP,4,4
	.comm	SRB_ELS_DCMD,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FCF_ASYNC_SENT,4,4
	.comm	ENOMEM,4,4
	.comm	ELS_DCMD_TIMEOUT,8,8
	.comm	DMA_POOL_SIZE,4,4
	.comm	CS_COMPLETE,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_qla_iocb.c_qla24xx_els_dcmd2_iocb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SRB allocation failed\012\000"
	.align	2
.LC1:
	.ascii	"Enter: PLOGI portid=%06x\012\000"
	.align	2
.LC2:
	.ascii	"ELS_DCMD\000"
	.align	2
.LC3:
	.ascii	"PLOGI %p %p\012\000"
	.align	2
.LC4:
	.ascii	"PLOGI buffer:\012\000"
	.align	2
.LC5:
	.ascii	"%s PLOGI sent, hdl=%x, loopid=%x, to port_id %06x f"
	.ascii	"rom port_id %06x\012\000"
	.text
	.align	2
	.global	qla24xx_els_dcmd2_iocb
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla24xx_els_dcmd2_iocb, %function
qla24xx_els_dcmd2_iocb:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L20
	sub	sp, sp, #44
	mov	r1, r2
	mov	r5, r2
	ldr	r2, [r8]
	mov	r6, r0
	ldr	r9, [r0, #4]
	str	ip, [sp, #32]
	str	r3, [sp, #28]
	bl	qla2x00_get_sp
	subs	r4, r0, #0
	beq	.L19
	ldr	r3, [r5, #4]
	ldr	r2, .L20+4
	ldr	fp, .L20+8
	ldr	r0, [r2]
	mov	r1, r6
	ldr	r2, .L20+12
	str	r3, [sp]
	ldr	r3, .L20+16
	bl	ql_dbg
	ldr	r3, [r5]
	ldr	r2, [fp]
	ldr	r0, .L20+20
	ldr	r1, .L20+24
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L20+28
	str	r3, [r5]
	add	r3, r4, #36
	str	r2, [r4]
	str	r0, [r4, #24]
	str	r1, [r4, #64]
	mov	r0, r3
	str	r5, [r4, #20]
	str	r3, [sp, #36]
	bl	init_completion
	ldr	r3, [sp, #28]
	mov	r0, r4
	cmp	r3, #0
	ldrne	r3, .L20+32
	ldr	r10, .L20+36
	ldrne	r3, [r3]
	strne	r3, [r4, #16]
	ldr	r3, .L20+40
	ldr	r1, [r3]
	add	r1, r1, #2
	bl	qla2x00_init_timer
	ldr	r3, .L20+44
	ldr	r1, [r10]
	ldr	r3, [r3]
	ldr	r0, [r9, #4]
	str	r3, [r4, #12]
	str	r1, [r4, #56]
	ldr	r3, [r8]
	str	r1, [r4, #60]
	add	r2, r4, #52
	bl	dma_alloc_coherent
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r4, #40]
	beq	.L17
	ldr	r3, [r8]
	ldr	r1, [r10]
	ldr	r0, [r9, #4]
	add	r2, r4, #48
	bl	dma_alloc_coherent
	cmp	r0, #0
	mov	r8, r0
	str	r0, [r4, #44]
	beq	.L17
	stm	sp, {r7, r8}
	ldr	r3, .L20+4
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r2, .L20+12
	ldr	r3, .L20+48
	bl	ql_dbg
	mov	r3, #0
	strb	r3, [r7]
	strb	r3, [r7, #1]
	strb	r3, [r7, #2]
	strb	r3, [r7, #3]
	strb	r3, [r8]
	strb	r3, [r8, #1]
	strb	r3, [r8, #2]
	strb	r3, [r8, #3]
	ldr	r3, [r4, #40]
	ldr	r8, .L20+52
	ldr	r7, .L20+56
	mov	r1, r9
	mov	r2, #4
	ldr	r0, [r3, #4]
	bl	memcpy
	ldr	r2, [r8]
	ldr	r1, [sp, #32]
	ldr	r0, [r7]
	ldr	r3, [r4, #40]
	str	r1, [r4, #28]
	add	r0, r0, r2
	str	r1, [r3]
	ldr	r2, .L20+12
	mov	r1, r6
	ldr	r3, .L20+60
	bl	ql_dbg
	mov	r2, #112
	ldr	r1, [r8]
	ldr	r0, [r7]
	ldr	r3, [r4, #40]
	add	r0, r0, r1
	str	r2, [sp]
	mov	r1, r6
	add	r2, r2, #153
	bl	ql_dump_buffer
	mov	r0, r4
	bl	qla2x00_start_sp
	ldr	r3, .L20+64
	mov	r8, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
	ldr	r3, .L20+68
	ldr	r8, [r3]
.L9:
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L1
	ldr	r0, [sp, #36]
	bl	wait_for_completion
	ldr	r3, .L20+72
	ldr	r2, [r4, #32]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
.L17:
	ldr	r3, .L20+68
	ldr	r8, [r3]
.L6:
	ldr	r2, [fp]
	ldr	r3, [r5]
	mov	r0, r6
	bic	r3, r3, r2
	str	r3, [r5]
	add	r1, r4, #28
	bl	qla2x00_els_dcmd2_free
	mov	r0, r4
	ldr	r3, [r4, #4]
	blx	r3
.L1:
	mov	r0, r8
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r3, .L20+76
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r2, .L20+80
	ldr	r3, .L20+84
	bl	ql_log
	ldr	r3, .L20+88
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r1, [r6]
	ldmib	r5, {r2, r3}
	str	r1, [sp, #16]
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	ldr	r3, [r4, #8]
	ldr	r0, [r7]
	str	r3, [sp, #4]
	ldr	r2, [r4]
	mov	r1, r6
	str	r2, [sp]
	ldr	r3, .L20+92
	ldr	r2, .L20+96
	bl	ql_dbg
	b	.L9
.L21:
	.align	2
.L20:
	.word	GFP_KERNEL
	.word	ql_dbg_io
	.word	FCF_ASYNC_SENT
	.word	12403
	.word	.LC1
	.word	SRB_ELS_DCMD
	.word	qla2x00_els_dcmd2_iocb_timeout
	.word	.LC2
	.word	SRB_WAKEUP_ON_COMP
	.word	DMA_POOL_SIZE
	.word	ELS_DCMD_TIMEOUT
	.word	qla2x00_els_dcmd2_sp_done
	.word	.LC3
	.word	ql_dbg_buffer
	.word	ql_dbg_disc
	.word	.LC4
	.word	QLA_SUCCESS
	.word	QLA_FUNCTION_FAILED
	.word	CS_COMPLETE
	.word	ql_log_info
	.word	28902
	.word	.LC0
	.word	ENOMEM
	.word	.LC5
	.word	12404
	.size	qla24xx_els_dcmd2_iocb, .-qla24xx_els_dcmd2_iocb
	.comm	qla2x00_els_dcmd2_sp_done,4,4
	.comm	qla2x00_els_dcmd2_iocb_timeout,4,4
	.comm	ql_log_info,4,4
	.comm	ql_dbg_io,4,4
	.comm	ql_dbg_disc,4,4
	.comm	ql_dbg_buffer,4,4
	.comm	SRB_WAKEUP_ON_COMP,4,4
	.comm	SRB_ELS_DCMD,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FCF_ASYNC_SENT,4,4
	.comm	ENOMEM,4,4
	.comm	ELS_DCMD_TIMEOUT,4,4
	.comm	DMA_POOL_SIZE,4,4
	.comm	CS_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
