	.file	"extr_uverbs_cmd.c_ib_uverbs_rereg_mr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ib_uverbs_rereg_mr, @function
ib_uverbs_rereg_mr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 40
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rsi, 16[rsp]
	call	uverbs_request@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR IB_MR_REREG_SUPPORTED[rip]
	mov	edx, DWORD PTR 16[rsp]
	not	eax
	test	eax, edx
	jne	.L6
	test	edx, edx
	je	.L6
	test	DWORD PTR IB_MR_REREG_TRANS[rip], edx
	je	.L5
	mov	eax, DWORD PTR 20[rsp]
	test	eax, eax
	je	.L6
	mov	edx, DWORD PTR 24[rsp]
	test	edx, edx
	je	.L6
	cmp	QWORD PTR 32[rsp], 0
	jle	.L6
	mov	ecx, DWORD PTR PAGE_MASK[rip]
	xor	eax, edx
	not	ecx
	test	ecx, eax
	jne	.L6
.L5:
	mov	edi, DWORD PTR UVERBS_OBJECT_MR[rip]
	mov	esi, DWORD PTR 48[rsp]
	mov	rdx, rbp
	call	uobj_get_write@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L38
	mov	rbx, QWORD PTR 0[r13]
	cmp	QWORD PTR 24[rbx], 0
	jne	.L12
	mov	esi, DWORD PTR 16[rsp]
	test	DWORD PTR IB_MR_REREG_ACCESS[rip], esi
	jne	.L39
.L10:
	xor	r14d, r14d
	test	DWORD PTR IB_MR_REREG_PD[rip], esi
	jne	.L40
.L11:
	mov	rax, QWORD PTR 16[rbx]
	mov	r15, QWORD PTR 8[rbx]
	mov	rdi, rbx
	push	rbp
	.cfi_def_cfa_offset 136
	push	r14
	.cfi_def_cfa_offset 144
	mov	r9d, DWORD PTR 56[rsp]
	mov	r8d, DWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	edx, DWORD PTR 36[rsp]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	test	r12d, r12d
	jne	.L13
	mov	eax, DWORD PTR 16[rsp]
	test	DWORD PTR IB_MR_REREG_PD[rip], eax
	jne	.L41
.L14:
	lea	r12, 8[rsp]
	mov	edx, 8
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	rsi, r12
	mov	edx, 8
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 8[rsp], eax
	call	uverbs_response@PLT
	mov	r12d, eax
.L13:
	mov	eax, DWORD PTR 16[rsp]
	test	DWORD PTR IB_MR_REREG_PD[rip], eax
	jne	.L42
.L9:
	mov	rdi, r13
	call	uobj_put_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L39:
	.cfi_restore_state
	mov	edi, DWORD PTR 40[rsp]
	call	ib_check_mr_access@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	esi, DWORD PTR 16[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edx, DWORD PTR 44[rsp]
	mov	esi, DWORD PTR UVERBS_OBJECT_PD[rip]
	mov	rcx, rbp
	xor	edi, edi
	call	uobj_get_obj_read@PLT
	mov	r14, rax
	test	rax, rax
	je	.L12
	mov	esi, DWORD PTR 16[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r14
	call	uobj_put_obj_read@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, r14
	call	atomic_inc@PLT
	mov	QWORD PTR 8[rbx], r14
	mov	rdi, r15
	call	atomic_dec@PLT
	jmp	.L14
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ib_uverbs_rereg_mr, .-ib_uverbs_rereg_mr
	.comm	UVERBS_OBJECT_PD,4,4
	.comm	UVERBS_OBJECT_MR,4,4
	.comm	PAGE_MASK,4,4
	.comm	IB_MR_REREG_TRANS,4,4
	.comm	IB_MR_REREG_SUPPORTED,4,4
	.comm	IB_MR_REREG_PD,4,4
	.comm	IB_MR_REREG_ACCESS,4,4
	.comm	EINVAL,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_uverbs_cmd.c_ib_uverbs_rereg_mr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ib_uverbs_rereg_mr, %function
ib_uverbs_rereg_mr:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L42
	sub	sp, sp, #56
	mov	r2, #28
	add	r1, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r5, r0
	bl	uverbs_request
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L42+4
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	bics	r3, r2, r3
	movne	r3, #1
	moveq	r3, #0
	cmp	r2, #0
	moveq	r3, #1
	cmp	r3, #0
	beq	.L3
.L5:
	ldr	r3, .L42+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r4
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, .L42+12
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [sp, #32]
	cmp	r2, #0
	beq	.L5
	ldr	r1, [sp, #36]
	cmp	r1, #0
	ble	.L5
	ldr	r1, .L42+16
	eor	r3, r3, r2
	ldr	r2, [r1]
	bics	r3, r3, r2
	bne	.L5
.L4:
	ldr	r3, .L42+20
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, [sp, #48]
	bl	uobj_get_write
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L37
	ldr	r8, [r6]
	ldr	r3, [r8, #16]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L42+24
	ldr	r1, [sp, #24]
	ldr	r3, [r3]
	tst	r1, r3
	bne	.L38
.L9:
	ldr	r9, .L42+28
	ldr	r7, [r9]
	ands	r7, r1, r7
	bne	.L39
.L10:
	ldr	r0, [sp, #40]
	ldr	r2, [sp, #32]
	ldr	r3, [r8, #12]
	ldr	r10, [r8, #8]
	str	r0, [sp, #4]
	str	r2, [sp]
	str	r5, [sp, #12]
	str	r7, [sp, #8]
	ldr	r4, [r3]
	mov	r0, r8
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #28]
	blx	r4
	subs	r4, r0, #0
	bne	.L12
	ldr	r2, [sp, #24]
	ldr	r3, [r9]
	tst	r2, r3
	bne	.L40
.L13:
	ldr	r1, [r8, #4]
	ldr	r3, [r8]
	mov	r0, r5
	str	r1, [sp, #20]
	mov	r2, #8
	add	r1, sp, #16
	str	r3, [sp, #16]
	bl	uverbs_response
	mov	r4, r0
.L12:
	ldr	r3, [r9]
	ldr	r2, [sp, #24]
	tst	r2, r3
	bne	.L41
.L8:
	mov	r0, r6
	bl	uobj_put_write
	b	.L1
.L38:
	ldr	r0, [sp, #40]
	bl	ib_check_mr_access
	subs	r4, r0, #0
	bne	.L8
	ldr	r1, [sp, #24]
	b	.L9
.L39:
	ldr	r2, .L42+32
	mov	r3, r5
	ldr	r1, [r2]
	mov	r0, #0
	ldr	r2, [sp, #44]
	bl	uobj_get_obj_read
	subs	r7, r0, #0
	beq	.L11
	ldr	r1, [sp, #24]
	b	.L10
.L41:
	mov	r0, r7
	bl	uobj_put_obj_read
	b	.L8
.L11:
	ldr	r3, .L42+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L37:
	mov	r0, r6
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L40:
	mov	r0, r7
	bl	atomic_inc
	mov	r0, r10
	str	r7, [r8, #8]
	bl	atomic_dec
	b	.L13
.L36:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	.LC0
	.word	IB_MR_REREG_SUPPORTED
	.word	EINVAL
	.word	IB_MR_REREG_TRANS
	.word	PAGE_MASK
	.word	UVERBS_OBJECT_MR
	.word	IB_MR_REREG_ACCESS
	.word	IB_MR_REREG_PD
	.word	UVERBS_OBJECT_PD
	.size	ib_uverbs_rereg_mr, .-ib_uverbs_rereg_mr
	.comm	UVERBS_OBJECT_PD,4,4
	.comm	UVERBS_OBJECT_MR,4,4
	.comm	PAGE_MASK,4,4
	.comm	IB_MR_REREG_TRANS,4,4
	.comm	IB_MR_REREG_SUPPORTED,4,4
	.comm	IB_MR_REREG_PD,4,4
	.comm	IB_MR_REREG_ACCESS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
