	.file	"extr_lpfc_mbox.c_lpfc_config_link.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lpfc_config_link
	.type	lpfc_config_link, @function
lpfc_config_link:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 72
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	r12, QWORD PTR 80[rdi]
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	rax, QWORD PTR 72[rbp]
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR LPFC_SLI_REV4[rip]
	cmp	QWORD PTR 0[rbp], rcx
	jl	.L10
.L2:
	mov	eax, DWORD PTR [r12]
	cmp	QWORD PTR 32[rbp], 0
	mov	DWORD PTR 52[rbx], eax
	mov	eax, DWORD PTR 60[rbp]
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR 56[rbp]
	mov	DWORD PTR 44[rbx], eax
	mov	eax, DWORD PTR 52[rbp]
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR 48[rbp]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR 44[rbp]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR 16[rbx], 0
	mov	DWORD PTR 28[rbx], eax
	je	.L3
	cmp	QWORD PTR 24[rbp], 0
	jne	.L11
.L3:
	cmp	QWORD PTR 8[rbp], 0
	je	.L4
	mov	rax, QWORD PTR LPFC_SLI_REV4[rip]
	cmp	QWORD PTR 0[rbp], rax
	jge	.L4
	mov	DWORD PTR 20[rbx], 1
.L4:
	mov	eax, DWORD PTR MBX_CONFIG_LINK[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR OWN_HOST[rip]
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movabs	rdx, 4294967297
	mov	QWORD PTR 64[rbx], rax
	mov	QWORD PTR 8[rbx], rdx
	mov	eax, DWORD PTR 64[rbp]
	mov	DWORD PTR 56[rbx], eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 16[rbx], 1
	mov	edi, DWORD PTR lpfc_bbscn_def[rip]
	lea	rsi, 16[rbp]
	call	bf_get@PLT
	mov	DWORD PTR 24[rbx], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	lpfc_config_link, .-lpfc_config_link
	.comm	lpfc_bbscn_def,4,4
	.comm	OWN_HOST,4,4
	.comm	MBX_CONFIG_LINK,4,4
	.comm	LPFC_SLI_REV4,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_lpfc_mbox.c_lpfc_config_link.c"
	.text
	.align	2
	.global	lpfc_config_link
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpfc_config_link, %function
lpfc_config_link:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	mov	r0, r1
	mov	r2, #64
	mov	r1, #0
	ldr	r6, [r5, #52]
	bl	memset
	ldr	r3, [r5, #48]
	cmp	r3, #0
	beq	.L2
	ldr	r2, .L21
	ldr	r1, [r5]
	ldr	r2, [r2]
	cmp	r1, r2
	blt	.L19
.L2:
	mov	r2, #0
	ldr	r1, [r5, #16]
	ldr	r3, [r6]
	ldr	r0, [r5, #40]
	cmp	r1, r2
	ldr	r1, [r5, #36]
	str	r3, [r4, #52]
	ldr	r3, [r5, #32]
	str	r0, [r4, #48]
	ldr	r0, [r5, #28]
	str	r1, [r4, #44]
	ldr	r1, [r5, #24]
	str	r3, [r4, #40]
	ldr	r3, [r5, #20]
	str	r0, [r4, #36]
	str	r1, [r4, #32]
	str	r2, [r4, #16]
	str	r3, [r4, #28]
	beq	.L3
	ldr	r3, [r5, #12]
	cmp	r3, r2
	bne	.L20
.L3:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L21
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	movlt	r3, #1
	strlt	r3, [r4, #20]
.L4:
	ldr	r2, .L21+4
	ldr	r3, .L21+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L19:
	mov	r2, #1
	ldr	r1, [r5, #44]
	str	r3, [r4, #60]
	str	r2, [r4, #8]
	str	r2, [r4, #12]
	str	r1, [r4, #56]
	b	.L2
.L20:
	mov	r2, #1
	ldr	r3, .L21+12
	str	r2, [r4, #16]
	ldr	r0, [r3]
	add	r1, r5, #8
	bl	bf_get
	str	r0, [r4, #24]
	b	.L3
.L22:
	.align	2
.L21:
	.word	LPFC_SLI_REV4
	.word	MBX_CONFIG_LINK
	.word	OWN_HOST
	.word	lpfc_bbscn_def
	.size	lpfc_config_link, .-lpfc_config_link
	.comm	lpfc_bbscn_def,4,4
	.comm	OWN_HOST,4,4
	.comm	MBX_CONFIG_LINK,4,4
	.comm	LPFC_SLI_REV4,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
