	.file	"extr_resource_tracker.c_mlx4_HW2SW_MPT_wrapper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_HW2SW_MPT_wrapper
	.type	mlx4_HW2SW_MPT_wrapper, @function
mlx4_HW2SW_MPT_wrapper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14d, DWORD PTR [rdx]
	mov	QWORD PTR 8[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	mpt_mask@PLT
	lea	r8, 16[rsp]
	mov	esi, r12d
	mov	rdi, rbp
	and	r14d, eax
	mov	ecx, DWORD PTR RES_MPT_MAPPED[rip]
	mov	edx, r14d
	call	mr_res_start_move_to@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L11:
	.cfi_restore_state
	mov	r9, QWORD PTR 8[rsp]
	mov	r8, rbx
	mov	rcx, r15
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, rbp
	call	mlx4_DMA_wrapper@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L4
	mov	DWORD PTR 8[rsp], r8d
	call	atomic_dec@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L4:
	mov	edx, DWORD PTR RES_MPT[rip]
	mov	ecx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	call	res_end_move@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR RES_MPT[rip]
	mov	ecx, r14d
	mov	esi, r12d
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], eax
	call	res_abort_move@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_HW2SW_MPT_wrapper, .-mlx4_HW2SW_MPT_wrapper
	.comm	RES_MPT_MAPPED,4,4
	.comm	RES_MPT,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_resource_tracker.c_mlx4_HW2SW_MPT_wrapper.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx4_HW2SW_MPT_wrapper
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_HW2SW_MPT_wrapper, %function
mlx4_HW2SW_MPT_wrapper:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, .L14
	sub	sp, sp, #20
	ldr	r7, [r2]
	mov	r6, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	ldr	r9, [sp, #56]
	ldr	r10, [sp, #60]
	bl	mpt_mask
	ldr	r3, .L14+4
	and	r7, r7, r0
	add	ip, sp, #8
	ldr	r3, [r3]
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	str	ip, [sp]
	bl	mr_res_start_move_to
	subs	fp, r0, #0
	beq	.L11
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r3, r8
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	stm	sp, {r9, r10}
	bl	mlx4_DMA_wrapper
	subs	fp, r0, #0
	bne	.L13
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L4
	bl	atomic_dec
.L4:
	ldr	r2, .L14+8
	mov	r3, r7
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r2]
	bl	res_end_move
	b	.L1
.L13:
	ldr	r2, .L14+8
	mov	r3, r7
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r2]
	bl	res_abort_move
	b	.L1
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	RES_MPT_MAPPED
	.word	RES_MPT
	.size	mlx4_HW2SW_MPT_wrapper, .-mlx4_HW2SW_MPT_wrapper
	.comm	RES_MPT_MAPPED,4,4
	.comm	RES_MPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
