	.file	"extr_core.c_mlx5_fpga_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FPGA capability not present\n"
.LC1:
	.string	"Initializing FPGA\n"
	.text
	.p2align 4
	.globl	mlx5_fpga_init
	.type	mlx5_fpga_init, @function
mlx5_fpga_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR fpga[rip]
	call	MLX5_CAP_GEN@PLT
	test	eax, eax
	je	.L7
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mlx5_core_dbg@PLT
	xor	eax, eax
	call	mlx5_fpga_device_alloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	QWORD PTR [rax], rbp
	xor	r12d, r12d
	mov	QWORD PTR 0[rbp], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	mlx5_core_dbg@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5_fpga_init, .-mlx5_fpga_init
	.comm	fpga,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_core.c_mlx5_fpga_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FPGA capability not present\012\000"
	.align	2
.LC1:
	.ascii	"Initializing FPGA\012\000"
	.text
	.align	2
	.global	mlx5_fpga_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_fpga_init, %function
mlx5_fpga_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	bl	MLX5_CAP_GEN
	subs	r4, r0, #0
	beq	.L7
	ldr	r1, .L8+4
	mov	r0, r5
	bl	mlx5_core_dbg
	bl	mlx5_fpga_device_alloc
	cmp	r0, #0
	movne	r4, #0
	ldreq	r3, .L8+8
	strne	r5, [r0]
	ldreq	r0, [r3]
	strne	r0, [r5]
	rsbeq	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r5
	ldr	r1, .L8+12
	bl	mlx5_core_dbg
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	fpga
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.size	mlx5_fpga_init, .-mlx5_fpga_init
	.comm	fpga,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
