	.file	"extr_qla_init.c_qla2x00_alloc_fcport.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to allocate ct_sns request.\n"
	.text
	.p2align 4
	.globl	qla2x00_alloc_fcport
	.type	qla2x00_alloc_fcport, @function
qla2x00_alloc_fcport:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 72
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, r13d
	mov	esi, 4
	mov	rdi, QWORD PTR 16[rax]
	call	dma_alloc_coherent@PLT
	mov	DWORD PTR 20[r12], eax
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR FCT_UNKNOWN[rip]
	mov	QWORD PTR 64[r12], rbp
	mov	rdi, r12
	mov	esi, DWORD PTR FCS_UNCONFIGURED[rip]
	mov	DWORD PTR 60[r12], eax
	mov	eax, DWORD PTR FC_NO_LOOP_ID[rip]
	mov	DWORD PTR 56[r12], eax
	call	qla2x00_set_fcport_state@PLT
	mov	eax, DWORD PTR FC_COS_UNSPECIFIED[rip]
	mov	DWORD PTR 52[r12], eax
	mov	eax, DWORD PTR PORT_SPEED_UNKNOWN[rip]
	mov	DWORD PTR 48[r12], eax
	mov	eax, DWORD PTR DSC_DELETED[rip]
	mov	DWORD PTR 44[r12], eax
	mov	eax, DWORD PTR DSC_LS_PORT_UNAVAIL[rip]
	mov	DWORD PTR 40[r12], eax
	mov	eax, DWORD PTR QLA_SESS_DELETED[rip]
	mov	DWORD PTR 36[r12], eax
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 32[r12], edx
	mov	DWORD PTR [r12], 1
	mov	DWORD PTR 28[r12], eax
	mov	eax, DWORD PTR 20[r12]
	test	eax, eax
	je	.L9
	mov	esi, DWORD PTR qla24xx_delete_sess_fn[rip]
	lea	rdi, 16[r12]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR qla_register_fcport_fn[rip]
	lea	rdi, 12[r12]
	call	INIT_WORK@PLT
	lea	rdi, 8[r12]
	call	INIT_LIST_HEAD@PLT
	lea	rdi, 4[r12]
	call	INIT_LIST_HEAD@PLT
.L1:
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR ql_log_warn[rip]
	mov	rsi, rbp
	mov	edx, 53321
	lea	rcx, .LC0[rip]
	call	ql_log@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	kfree@PLT
	mov	rax, r12
	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	qla2x00_alloc_fcport, .-qla2x00_alloc_fcport
	.comm	qla_register_fcport_fn,4,4
	.comm	qla24xx_delete_sess_fn,4,4
	.comm	ql_log_warn,4,4
	.comm	QLA_SESS_DELETED,4,4
	.comm	PORT_SPEED_UNKNOWN,4,4
	.comm	FC_NO_LOOP_ID,4,4
	.comm	FC_COS_UNSPECIFIED,4,4
	.comm	FCT_UNKNOWN,4,4
	.comm	FCS_UNCONFIGURED,4,4
	.comm	DSC_LS_PORT_UNAVAIL,4,4
	.comm	DSC_DELETED,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_init.c_qla2x00_alloc_fcport.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate ct_sns request.\012\000"
	.text
	.align	2
	.global	qla2x00_alloc_fcport
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla2x00_alloc_fcport, %function
qla2x00_alloc_fcport:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r0, #68
	mov	r5, r1
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r2, [r6]
	mov	r3, r5
	ldr	r0, [r2, #8]
	mov	r1, #4
	add	r2, r4, #24
	bl	dma_alloc_coherent
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4, #20]
	beq	.L9
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L11+8
	str	r1, [r4, #60]
	str	r2, [r4, #56]
	ldr	r1, [r3]
	mov	r0, r4
	str	r6, [r4, #64]
	bl	qla2x00_set_fcport_state
	mov	r2, #1
	ldr	r3, [r6]
	ldr	lr, .L11+12
	ldr	r1, [r3]
	ldr	ip, .L11+16
	ldr	r0, [r1]
	ldr	r1, [r3, #4]
	ldr	r3, .L11+20
	str	r0, [r4, #28]
	ldr	r0, [r3]
	ldr	r3, .L11+24
	str	r1, [r4, #32]
	ldr	r1, [r3]
	ldr	r3, .L11+28
	ldr	r5, [r4, #20]
	ldr	lr, [lr]
	ldr	ip, [ip]
	ldr	r3, [r3]
	cmp	r5, #0
	str	lr, [r4, #52]
	str	ip, [r4, #48]
	str	r0, [r4, #44]
	str	r1, [r4, #40]
	str	r3, [r4, #36]
	str	r2, [r4]
	beq	.L9
	ldr	r3, .L11+32
	add	r0, r4, #16
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L11+36
	add	r0, r4, #12
	ldr	r1, [r3]
	bl	INIT_WORK
	add	r0, r4, #8
	bl	INIT_LIST_HEAD
	add	r0, r4, #4
	bl	INIT_LIST_HEAD
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L11+40
	mov	r1, r6
	ldr	r2, .L11+44
	ldr	r0, [r3]
	ldr	r3, .L11+48
	bl	ql_log
	mov	r0, r4
	mov	r4, r5
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	FCT_UNKNOWN
	.word	FC_NO_LOOP_ID
	.word	FCS_UNCONFIGURED
	.word	FC_COS_UNSPECIFIED
	.word	PORT_SPEED_UNKNOWN
	.word	DSC_DELETED
	.word	DSC_LS_PORT_UNAVAIL
	.word	QLA_SESS_DELETED
	.word	qla24xx_delete_sess_fn
	.word	qla_register_fcport_fn
	.word	ql_log_warn
	.word	53321
	.word	.LC0
	.size	qla2x00_alloc_fcport, .-qla2x00_alloc_fcport
	.comm	qla_register_fcport_fn,4,4
	.comm	qla24xx_delete_sess_fn,4,4
	.comm	ql_log_warn,4,4
	.comm	QLA_SESS_DELETED,4,4
	.comm	PORT_SPEED_UNKNOWN,4,4
	.comm	FC_NO_LOOP_ID,4,4
	.comm	FC_COS_UNSPECIFIED,4,4
	.comm	FCT_UNKNOWN,4,4
	.comm	FCS_UNCONFIGURED,4,4
	.comm	DSC_LS_PORT_UNAVAIL,4,4
	.comm	DSC_DELETED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
