	.file	"extr_mr.c_dereg_mr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dereg_mr, @function
dereg_mr:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	r14d, DWORD PTR [rsi]
	mov	r12, QWORD PTR 16[rsi]
	call	is_odp_mr@PLT
	test	rax, rax
	jne	.L16
	mov	rsi, rbp
	mov	rdi, r13
	call	clean_mr@PLT
	mov	rdi, r13
	mov	rsi, rbp
	call	mlx5_mr_cache_free@PLT
	mov	rdi, r12
	call	ib_umem_release@PLT
	test	r12, r12
	je	.L6
	mov	rsi, QWORD PTR 0[r13]
	mov	edi, r14d
	call	atomic_sub@PLT
.L6:
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L17
.L1:
	pop	rbp
	.cfi_remember_state
	.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
.L16:
	.cfi_restore_state
	mov	rdi, r12
	lea	r15, 8[rbp]
	call	to_ib_umem_odp@PLT
	mov	edi, DWORD PTR 12[rbp]
	xor	esi, esi
	mov	r12, rax
	call	WRITE_ONCE@PLT
	lea	rdi, 8[r13]
	call	synchronize_srcu@PLT
	mov	rdi, r15
	call	atomic_read@PLT
	test	rax, rax
	jne	.L18
.L3:
	mov	rdi, r15
	call	atomic_read@PLT
	mov	rdi, rax
	call	WARN_ON@PLT
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	je	.L19
	mov	rdi, rbp
	call	mlx5_ib_free_implicit_mr@PLT
.L5:
	mov	rdi, r12
	call	ib_umem_odp_release@PLT
	mov	rsi, QWORD PTR 0[r13]
	mov	edi, r14d
	call	atomic_sub@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	clean_mr@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	mlx5_mr_cache_free@PLT
	xor	edi, edi
	call	ib_umem_release@PLT
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jne	.L1
.L17:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.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	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, r12
	call	ib_umem_end@PLT
	mov	rdi, r12
	mov	r15d, eax
	call	ib_umem_start@PLT
	mov	edx, r15d
	mov	rdi, r12
	mov	esi, eax
	call	mlx5_ib_invalidate_range@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR system_unbound_wq[rip]
	call	flush_workqueue@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dereg_mr, .-dereg_mr
	.comm	system_unbound_wq,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_mr.c_dereg_mr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dereg_mr, %function
dereg_mr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	ldr	r7, [r1]
	ldr	r6, [r1, #16]
	bl	is_odp_mr
	cmp	r0, #0
	bne	.L16
	mov	r1, r4
	mov	r0, r5
	bl	clean_mr
	mov	r1, r4
	mov	r0, r5
	bl	mlx5_mr_cache_free
	mov	r0, r6
	bl	ib_umem_release
	cmp	r6, #0
	beq	.L6
	mov	r0, r7
	ldr	r1, [r5]
	bl	atomic_sub
.L6:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	kfree
.L16:
	mov	r0, r6
	bl	to_ib_umem_odp
	mov	r1, #0
	mov	r6, r0
	ldr	r0, [r4, #12]
	bl	WRITE_ONCE
	add	r8, r4, #8
	add	r0, r5, #4
	bl	synchronize_srcu
	mov	r0, r8
	bl	atomic_read
	cmp	r0, #0
	bne	.L17
.L3:
	mov	r0, r8
	bl	atomic_read
	bl	WARN_ON
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L18
	mov	r0, r4
	bl	mlx5_ib_free_implicit_mr
.L5:
	mov	r0, r6
	bl	ib_umem_odp_release
	ldr	r1, [r5]
	mov	r0, r7
	bl	atomic_sub
	mov	r1, r4
	mov	r0, r5
	bl	clean_mr
	mov	r1, r4
	mov	r0, r5
	bl	mlx5_mr_cache_free
	mov	r0, #0
	bl	ib_umem_release
	b	.L6
.L18:
	mov	r0, r6
	bl	ib_umem_start
	mov	r8, r0
	mov	r0, r6
	bl	ib_umem_end
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	mlx5_ib_invalidate_range
	b	.L5
.L17:
	ldr	r3, .L19
	ldr	r0, [r3]
	bl	flush_workqueue
	b	.L3
.L20:
	.align	2
.L19:
	.word	system_unbound_wq
	.size	dereg_mr, .-dereg_mr
	.comm	system_unbound_wq,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
