	.file	"extr_qla_gs.c_qla24xx_async_gnnid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gnnid"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Async-%s - %8phC hdl=%x loopid=%x portid %06x.\n"
	.text
	.p2align 4
	.globl	qla24xx_async_gnnid
	.type	qla24xx_async_gnnid, @function
qla24xx_async_gnnid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rdi]
	mov	r12d, DWORD PTR QLA_FUNCTION_FAILED[rip]
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR [rsi]
	mov	rbx, rsi
	test	DWORD PTR FCF_ASYNC_SENT[rip], eax
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR DSC_GNN_ID[rip]
	mov	edx, DWORD PTR GFP_ATOMIC[rip]
	mov	r13, rdi
	mov	DWORD PTR 32[rsi], eax
	call	qla2x00_get_sp@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR FCF_ASYNC_SENT[rip]
	or	DWORD PTR [rbx], eax
	mov	rdi, r13
	mov	eax, DWORD PTR SRB_CT_PTHRU_CMD[rip]
	mov	DWORD PTR 64[rbp], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR 28[rbx]
	mov	DWORD PTR 60[rbp], eax
	mov	eax, DWORD PTR 24[rbx]
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR qla2x00_async_iocb_timeout[rip]
	mov	DWORD PTR 52[rbp], eax
	call	qla2x00_get_async_timeout@PLT
	mov	rdi, rbp
	lea	rsi, 2[rax]
	call	qla2x00_init_timer@PLT
	mov	edx, DWORD PTR GNN_ID_RSP_SIZE[rip]
	mov	esi, DWORD PTR GNN_ID_CMD[rip]
	mov	edi, DWORD PTR 20[rbx]
	call	qla2x00_prep_ct_req@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r12, rax
	call	port_id_to_be_id@PLT
	mov	edx, DWORD PTR 20[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r8, QWORD PTR 0[rbp]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 16[rbx]
	lea	rcx, .LC1[rip]
	mov	rsi, r13
	mov	DWORD PTR 48[rbp], edx
	mov	edi, DWORD PTR ql_dbg_disc[rip]
	mov	DWORD PTR 44[rbp], eax
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR GNN_ID_REQ_SIZE[rip]
	mov	DWORD PTR 40[rbp], edx
	mov	edx, 65535
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR GNN_ID_RSP_SIZE[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR NPH_SNS[rip]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR qla2x00_async_gnnid_sp_done[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR 4[rbx]
	push	rax
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 8[rbx]
	push	rax
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR 16[rbp]
	push	rax
	.cfi_def_cfa_offset 80
	mov	r9d, DWORD PTR 12[rbx]
	call	ql_dbg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rdi, rbp
	call	qla2x00_start_sp@PLT
	cmp	DWORD PTR QLA_SUCCESS[rip], eax
	mov	r12d, eax
	je	.L1
	mov	rdi, rbp
	call	[QWORD PTR 8[rbp]]
	mov	eax, DWORD PTR FCF_ASYNC_SENT[rip]
	not	eax
	and	DWORD PTR [rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qla24xx_async_gnnid, .-qla24xx_async_gnnid
	.comm	qla2x00_async_iocb_timeout,4,4
	.comm	qla2x00_async_gnnid_sp_done,4,4
	.comm	ql_dbg_disc,4,4
	.comm	SRB_CT_PTHRU_CMD,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	NPH_SNS,4,4
	.comm	GNN_ID_RSP_SIZE,4,4
	.comm	GNN_ID_REQ_SIZE,4,4
	.comm	GNN_ID_CMD,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	FCF_ASYNC_SENT,4,4
	.comm	DSC_GNN_ID,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_gs.c_qla24xx_async_gnnid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gnnid\000"
	.align	2
.LC1:
	.ascii	"Async-%s - %8phC hdl=%x loopid=%x portid %06x.\012\000"
	.text
	.align	2
	.global	qla24xx_async_gnnid
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla24xx_async_gnnid, %function
qla24xx_async_gnnid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, [r0]
	ldr	r3, .L12
	cmp	r2, #0
	ldr	r6, [r3]
	sub	sp, sp, #24
	beq	.L1
	ldr	r8, .L12+4
	ldr	r2, [r1]
	ldr	r3, [r8]
	mov	r4, r1
	tst	r2, r3
	beq	.L11
.L1:
	mov	r0, r6
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [r1, #32]
	mov	r7, r0
	bl	qla2x00_get_sp
	subs	r5, r0, #0
	beq	.L1
	ldr	r3, [r4]
	ldr	r2, [r8]
	ldr	r0, .L12+16
	ldr	r1, .L12+20
	orr	r3, r3, r2
	ldr	ip, [r0]
	ldr	r2, [r4, #24]
	ldr	r0, [r4, #28]
	ldr	r1, [r1]
	str	r3, [r4]
	ldr	r3, .L12+24
	str	ip, [r5, #56]
	str	r2, [r5, #48]
	str	r3, [r5]
	str	r0, [r5, #52]
	str	r1, [r5, #44]
	mov	r0, r7
	bl	qla2x00_get_async_timeout
	mov	r1, r0
	mov	r0, r5
	add	r1, r1, #2
	bl	qla2x00_init_timer
	ldr	r9, .L12+28
	ldr	r3, .L12+32
	ldr	r2, [r9]
	ldr	r1, [r3]
	ldr	r0, [r4, #20]
	bl	qla2x00_prep_ct_req
	mov	r6, r0
	ldr	r0, [r4, #4]
	bl	port_id_to_be_id
	ldr	r10, .L12+36
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #16]
	ldr	ip, .L12+40
	ldr	r1, .L12+44
	str	r0, [r6]
	ldr	ip, [ip]
	ldr	r1, [r1]
	str	r2, [r5, #40]
	str	r3, [r5, #36]
	str	r2, [r5, #32]
	ldr	lr, [r9]
	ldr	r2, [r4, #4]
	ldr	r0, [r10]
	str	r3, [r5, #28]
	ldr	r3, [r4, #8]
	str	lr, [r5, #20]
	str	ip, [r5, #24]
	str	r0, [r5, #16]
	str	r1, [r5, #12]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	ldr	r2, [r5, #8]
	ldr	r3, [r4, #12]
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	ldr	r2, [r5]
	ldr	r3, .L12+48
	str	r2, [sp]
	mov	r1, r7
	ldr	r0, [r3]
	ldr	r2, .L12+52
	ldr	r3, .L12+56
	bl	ql_dbg
	mov	r0, r5
	bl	qla2x00_start_sp
	ldr	r3, .L12+60
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	ldr	r3, [r5, #4]
	mov	r0, r5
	blx	r3
	mov	r0, r6
	ldr	r2, [r8]
	ldr	r3, [r4]
	bic	r3, r3, r2
	str	r3, [r4]
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	QLA_FUNCTION_FAILED
	.word	FCF_ASYNC_SENT
	.word	DSC_GNN_ID
	.word	GFP_ATOMIC
	.word	SRB_CT_PTHRU_CMD
	.word	qla2x00_async_iocb_timeout
	.word	.LC0
	.word	GNN_ID_RSP_SIZE
	.word	GNN_ID_CMD
	.word	NPH_SNS
	.word	GNN_ID_REQ_SIZE
	.word	qla2x00_async_gnnid_sp_done
	.word	ql_dbg_disc
	.word	65535
	.word	.LC1
	.word	QLA_SUCCESS
	.size	qla24xx_async_gnnid, .-qla24xx_async_gnnid
	.comm	qla2x00_async_iocb_timeout,4,4
	.comm	qla2x00_async_gnnid_sp_done,4,4
	.comm	ql_dbg_disc,4,4
	.comm	SRB_CT_PTHRU_CMD,4,4
	.comm	QLA_SUCCESS,4,4
	.comm	QLA_FUNCTION_FAILED,4,4
	.comm	NPH_SNS,4,4
	.comm	GNN_ID_RSP_SIZE,4,4
	.comm	GNN_ID_REQ_SIZE,4,4
	.comm	GNN_ID_CMD,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	FCF_ASYNC_SENT,4,4
	.comm	DSC_GNN_ID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
