	.file	"extr_mlx5fpga_sdk.c_mem_transaction.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Transfer execution failed: %d\n"
	.text
	.p2align 4
	.type	mem_transaction, @function
mem_transaction:
.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
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	jne	.L2
	mov	r12d, DWORD PTR ENOTCONN[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	QWORD PTR 32[rsp], rax
	lea	r13, 8[rsp]
	mov	eax, DWORD PTR mem_complete[rip]
	mov	rbp, rdi
	mov	rdi, r13
	mov	QWORD PTR 48[rsp], rcx
	mov	QWORD PTR 16[rsp], rsi
	mov	DWORD PTR 40[rsp], edx
	mov	DWORD PTR 24[rsp], r8d
	mov	DWORD PTR 28[rsp], eax
	call	init_completion@PLT
	lea	rdi, 16[rsp]
	call	mlx5_fpga_xfer_exec@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, r13
	call	wait_for_completion@PLT
	cmp	QWORD PTR [rsp], 0
	je	.L1
.L3:
	endbr64
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	mlx5_fpga_dbg@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mem_transaction, .-mem_transaction
	.comm	mem_complete,4,4
	.comm	ENOTCONN,4,4
	.comm	EIO,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_mlx5fpga_sdk.c_mem_transaction.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Transfer execution failed: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mem_transaction, %function
mem_transaction:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	ip, [r0]
	mov	r5, r0
	ldr	r0, .L13
	sub	sp, sp, #44
	cmp	ip, #0
	ldr	r0, [r0]
	str	r0, [sp, #36]
	mov	r0,#0
	bne	.L2
	ldr	r3, .L13+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r0, .L13+8
	str	r3, [sp, #32]
	str	r2, [sp, #28]
	ldr	r3, [r0]
	ldr	r2, [sp, #56]
	add	r0, sp, #8
	str	r1, [sp, #12]
	str	ip, [sp, #24]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bl	init_completion
	add	r0, sp, #12
	bl	mlx5_fpga_xfer_exec
	subs	r4, r0, #0
	bne	.L12
.L3:
	add	r0, sp, #8
	bl	wait_for_completion
	ldr	r4, [sp, #4]
	cmp	r4, #0
	ldrne	r3, .L13+12
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
	b	.L1
.L12:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L13+16
	bl	mlx5_fpga_dbg
	b	.L1
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	ENOTCONN
	.word	mem_complete
	.word	EIO
	.word	.LC0
	.size	mem_transaction, .-mem_transaction
	.comm	mem_complete,4,4
	.comm	ENOTCONN,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
