	.file	"extr_userfaultfd.c_mremap_userfaultfd_complete.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mremap_userfaultfd_complete
	.type	mremap_userfaultfd_complete, @function
mremap_userfaultfd_complete:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	r13, r13
	je	.L1
	mov	rax, QWORD PTR PAGE_MASK[rip]
	mov	rbx, rdx
	not	rax
	test	rax, rdx
	jne	.L11
	mov	r14, rsp
	mov	r12, rsi
	mov	rbp, rcx
	mov	rdi, r14
	call	msg_init@PLT
	mov	rsi, r14
	mov	rdi, r13
	mov	QWORD PTR [rsp], r12
	mov	eax, DWORD PTR UFFD_EVENT_REMAP[rip]
	mov	QWORD PTR 8[rsp], rbx
	mov	QWORD PTR 16[rsp], rbp
	mov	DWORD PTR 24[rsp], eax
	call	userfaultfd_event_wait_completion@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r13
	call	userfaultfd_ctx_put@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mremap_userfaultfd_complete, .-mremap_userfaultfd_complete
	.comm	UFFD_EVENT_REMAP,4,4
	.comm	PAGE_MASK,8,8
	.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_userfaultfd.c_mremap_userfaultfd_complete.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mremap_userfaultfd_complete
	.syntax unified
	.arm
	.fpu softvfp
	.type	mremap_userfaultfd_complete, %function
mremap_userfaultfd_complete:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, [r0]
	mov	r5, r3
	ldr	r3, .L13
	sub	sp, sp, #28
	cmp	r7, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L1
	ldr	r3, .L13+4
	mov	r4, r2
	ldr	r3, [r3]
	bics	r3, r2, r3
	bne	.L11
	mov	r6, r1
	add	r0, sp, #4
	bl	msg_init
	ldr	r3, .L13+8
	mov	r0, r7
	ldr	r3, [r3]
	add	r1, sp, #4
	str	r6, [sp, #4]
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	str	r3, [sp, #16]
	bl	userfaultfd_event_wait_completion
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L11:
	mov	r0, r7
	bl	userfaultfd_ctx_put
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	PAGE_MASK
	.word	UFFD_EVENT_REMAP
	.size	mremap_userfaultfd_complete, .-mremap_userfaultfd_complete
	.comm	UFFD_EVENT_REMAP,4,4
	.comm	PAGE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
