	.file	"extr_fcoe.c_fcoe_if_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Create Interface\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Could not allocate host structure\n"
	.align 8
.LC2:
	.string	"Could not configure lport for the interface\n"
	.align 8
.LC3:
	.string	"Setting vport names, %16.16llx %16.16llx\n"
	.align 8
.LC4:
	.string	"Could not configure netdev for the interface\n"
	.align 8
.LC5:
	.string	"Could not configure shost for the interface\n"
	.align 8
.LC6:
	.string	"Could not configure libfc for the interface\n"
	.section	.rodata.str1.1
.LC7:
	.string	"Could not configure the EM\n"
	.text
	.p2align 4
	.type	fcoe_if_create, @function
fcoe_if_create:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	fcoe_to_ctlr@PLT
	mov	r15, QWORD PTR [rbx]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	dev_to_vport@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	mov	r13, rax
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
	mov	esi, 32
	test	ebp, ebp
	jne	.L2
	lea	rdi, fcoe_shost_template[rip]
	call	libfc_host_alloc@PLT
	mov	r12, rax
	test	r12, r12
	je	.L21
.L4:
	mov	rdi, r12
	call	lport_priv@PLT
	mov	esi, DWORD PTR fcoe_destroy_work[rip]
	mov	QWORD PTR 16[rax], rbx
	mov	rdi, rax
	mov	QWORD PTR 24[rax], r12
	mov	eax, DWORD PTR fcoe_netdev[rip]
	mov	DWORD PTR 12[rdi], eax
	mov	eax, DWORD PTR FCOE_MAX_QUEUE_DEPTH[rip]
	mov	DWORD PTR 8[rdi], eax
	mov	eax, DWORD PTR FCOE_MIN_QUEUE_DEPTH[rip]
	mov	DWORD PTR 4[rdi], eax
	call	INIT_WORK@PLT
	mov	rdi, r12
	call	fcoe_hostlist_add@PLT
	mov	rdi, r12
	call	fcoe_lport_config@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L22
	test	ebp, ebp
	jne	.L23
.L8:
	mov	rsi, r15
	mov	rdi, r12
	call	fcoe_netdev_config@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L24
	mov	rsi, r14
	mov	rdi, r12
	call	fcoe_shost_config@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L25
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, 1
	lea	rdx, fcoe_libfc_fcn_templ[rip]
	mov	rdi, r12
	call	fcoe_libfc_config@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L26
	mov	rsi, r15
	mov	rdi, r12
	call	fcoe_fdmi_info@PLT
	test	ebp, ebp
	jne	.L13
	mov	rdi, r12
	call	fcoe_em_config@PLT
	mov	ebx, eax
.L14:
	test	ebx, ebx
	jne	.L27
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	libfc_vport_create@PLT
	mov	r12, rax
	test	r12, r12
	jne	.L4
.L21:
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
	mov	ebx, DWORD PTR ENOMEM[rip]
	neg	ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC4[rip]
	mov	rdi, r15
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
.L10:
	mov	rdi, r12
	call	fc_exch_mgr_free@PLT
.L7:
	mov	rdi, r12
	call	fcoe_hostlist_del@PLT
	mov	edi, DWORD PTR [r12]
	call	scsi_host_put@PLT
.L5:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edi, ebx
	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
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[r13]
	mov	ecx, DWORD PTR 0[r13]
	mov	rdi, r15
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	FCOE_NETDEV_DBG@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r12
	call	fc_set_wwnn@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r12
	call	fc_set_wwpn@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC6[rip]
	mov	rdi, r15
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC5[rip]
	mov	rdi, r15
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r13
	call	vport_to_shost@PLT
	mov	rdi, rax
	call	shost_priv@PLT
	mov	rsi, r12
	mov	rdi, rax
	call	fc_exch_mgr_list_clone@PLT
	mov	ebx, eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rsi, .LC7[rip]
	mov	rdi, r15
	xor	eax, eax
	call	FCOE_NETDEV_DBG@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	fcoe_if_create, .-fcoe_if_create
	.comm	fcoe_shost_template,4,4
	.comm	fcoe_netdev,4,4
	.comm	fcoe_libfc_fcn_templ,4,4
	.comm	fcoe_destroy_work,4,4
	.comm	FCOE_MIN_QUEUE_DEPTH,4,4
	.comm	FCOE_MAX_QUEUE_DEPTH,4,4
	.comm	ENOMEM,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_fcoe.c_fcoe_if_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Create Interface\012\000"
	.align	2
.LC1:
	.ascii	"Could not allocate host structure\012\000"
	.align	2
.LC2:
	.ascii	"Could not configure lport for the interface\012\000"
	.align	2
.LC3:
	.ascii	"Setting vport names, %16.16llx %16.16llx\012\000"
	.align	2
.LC4:
	.ascii	"Could not configure netdev for the interface\012\000"
	.align	2
.LC5:
	.ascii	"Could not configure shost for the interface\012\000"
	.align	2
.LC6:
	.ascii	"Could not configure libfc for the interface\012\000"
	.align	2
.LC7:
	.ascii	"Could not configure the EM\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fcoe_if_create, %function
fcoe_if_create:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r1
	mov	r6, r2
	mov	r5, r0
	bl	fcoe_to_ctlr
	mov	r10, r0
	mov	r0, r8
	ldr	r9, [r5]
	bl	dev_to_vport
	ldr	r1, .L28
	mov	r7, r0
	mov	r0, r9
	bl	FCOE_NETDEV_DBG
	cmp	r6, #0
	mov	r1, #24
	bne	.L2
	ldr	r0, .L28+4
	bl	libfc_host_alloc
	mov	r4, r0
	cmp	r4, #0
	beq	.L21
.L4:
	mov	r0, r4
	bl	lport_priv
	ldr	r1, .L28+8
	ldr	r2, .L28+12
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, .L28+16
	str	r2, [r0, #8]
	ldr	r1, [r1]
	ldr	r2, .L28+20
	str	ip, [r0, #12]
	str	r5, [r0, #16]
	str	r1, [r0, #4]
	str	r4, [r0, #20]
	ldr	r1, [r2]
	bl	INIT_WORK
	mov	r0, r4
	bl	fcoe_hostlist_add
	mov	r0, r4
	bl	fcoe_lport_config
	subs	r5, r0, #0
	bne	.L22
	cmp	r6, #0
	bne	.L23
.L8:
	mov	r1, r9
	mov	r0, r4
	bl	fcoe_netdev_config
	subs	r5, r0, #0
	bne	.L24
	mov	r1, r8
	mov	r0, r4
	bl	fcoe_shost_config
	subs	r5, r0, #0
	bne	.L25
	mov	r1, r10
	mov	r3, #1
	mov	r0, r4
	ldr	r2, .L28+24
	bl	fcoe_libfc_config
	subs	r5, r0, #0
	bne	.L26
	mov	r1, r9
	mov	r0, r4
	bl	fcoe_fdmi_info
	cmp	r6, #0
	bne	.L13
	mov	r0, r4
	bl	fcoe_em_config
	mov	r5, r0
.L14:
	cmp	r5, #0
	bne	.L27
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r7
	bl	libfc_vport_create
	mov	r4, r0
	cmp	r4, #0
	bne	.L4
.L21:
	mov	r0, r9
	ldr	r1, .L28+28
	bl	FCOE_NETDEV_DBG
	ldr	r3, .L28+32
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ERR_PTR
.L24:
	mov	r0, r9
	ldr	r1, .L28+36
	bl	FCOE_NETDEV_DBG
.L10:
	mov	r0, r4
	bl	fc_exch_mgr_free
.L7:
.L5:
	mov	r0, r4
	bl	fcoe_hostlist_del
	ldr	r0, [r4]
	bl	scsi_host_put
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ERR_PTR
.L23:
	ldr	r3, [r7]
	ldr	r2, [r7, #4]
	mov	r0, r9
	ldr	r1, .L28+40
	bl	FCOE_NETDEV_DBG
	ldr	r1, [r7, #4]
	mov	r0, r4
	bl	fc_set_wwnn
	mov	r0, r4
	ldr	r1, [r7]
	bl	fc_set_wwpn
	b	.L8
.L26:
	mov	r0, r9
	ldr	r1, .L28+44
	bl	FCOE_NETDEV_DBG
	b	.L10
.L22:
	mov	r0, r9
	ldr	r1, .L28+48
	bl	FCOE_NETDEV_DBG
	b	.L7
.L25:
	mov	r0, r9
	ldr	r1, .L28+52
	bl	FCOE_NETDEV_DBG
	b	.L10
.L13:
	mov	r0, r7
	bl	vport_to_shost
	bl	shost_priv
	mov	r1, r4
	bl	fc_exch_mgr_list_clone
	mov	r5, r0
	b	.L14
.L27:
	mov	r0, r9
	ldr	r1, .L28+56
	bl	FCOE_NETDEV_DBG
	b	.L10
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	fcoe_shost_template
	.word	fcoe_netdev
	.word	FCOE_MAX_QUEUE_DEPTH
	.word	FCOE_MIN_QUEUE_DEPTH
	.word	fcoe_destroy_work
	.word	fcoe_libfc_fcn_templ
	.word	.LC1
	.word	ENOMEM
	.word	.LC4
	.word	.LC3
	.word	.LC6
	.word	.LC2
	.word	.LC5
	.word	.LC7
	.size	fcoe_if_create, .-fcoe_if_create
	.comm	fcoe_shost_template,4,4
	.comm	fcoe_netdev,4,4
	.comm	fcoe_libfc_fcn_templ,4,4
	.comm	fcoe_destroy_work,4,4
	.comm	FCOE_MIN_QUEUE_DEPTH,4,4
	.comm	FCOE_MAX_QUEUE_DEPTH,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
