	.file	"extr_fork.c_dup_mm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dup_mm
	.type	dup_mm, @function
dup_mm:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR current[rip]
	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
	mov	r13, QWORD PTR [rax]
	test	r13, r13
	je	.L21
	xor	eax, eax
	mov	rbp, rdi
	call	allocate_mm@PLT
	mov	r12, rax
	test	rax, rax
	je	.L21
	mov	rsi, r13
	mov	rdi, rax
	mov	edx, 48
	call	memcpy@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	QWORD PTR 40[r12], 0
	mov	QWORD PTR 32[r12], 0
	call	mm_init@PLT
	test	eax, eax
	je	.L21
	mov	rsi, r12
	mov	rdi, rbp
	call	init_new_context@PLT
	test	rax, rax
	jne	.L23
	mov	rsi, r12
	mov	rdi, r13
	call	dup_mm_exe_file@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	dup_mmap@PLT
	test	eax, eax
	jne	.L7
	mov	rdi, r12
	call	get_mm_rss@PLT
	mov	DWORD PTR 16[r12], eax
	mov	eax, DWORD PTR 8[r12]
	mov	DWORD PTR 12[r12], eax
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR [rax]
	call	try_module_get@PLT
	test	eax, eax
	jne	.L1
.L7:
	mov	QWORD PTR [r12], 0
	mov	rdi, r12
	xor	r12d, r12d
	call	mmput@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L23:
	.cfi_restore_state
	mov	rdi, r12
	call	mm_free_pgd@PLT
	mov	rdi, r12
	call	free_mm@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r12d, r12d
.L1:
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dup_mm, .-dup_mm
	.comm	current,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_fork.c_dup_mm.c"
	.text
	.align	2
	.global	dup_mm
	.syntax unified
	.arm
	.fpu softvfp
	.type	dup_mm, %function
dup_mm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r6, [r3]
	cmp	r6, #0
	beq	.L4
	mov	r5, r0
	bl	allocate_mm
	subs	r4, r0, #0
	beq	.L4
	mov	r7, #0
	mov	r2, #28
	mov	r1, r6
	bl	memcpy
	mov	r1, r5
	mov	r0, r4
	str	r7, [r4, #24]
	str	r7, [r4, #20]
	bl	mm_init
	cmp	r0, r7
	beq	.L4
	mov	r0, r5
	mov	r1, r4
	bl	init_new_context
	cmp	r0, r7
	bne	.L22
	mov	r1, r4
	mov	r0, r6
	bl	dup_mm_exe_file
	mov	r1, r6
	mov	r0, r4
	bl	dup_mmap
	cmp	r0, #0
	bne	.L7
	mov	r0, r4
	bl	get_mm_rss
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	cmp	r3, #0
	str	r0, [r4, #12]
	str	r2, [r4, #8]
	beq	.L1
	ldr	r0, [r3]
	bl	try_module_get
	cmp	r0, #0
	beq	.L7
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r4
	bl	mm_free_pgd
	mov	r0, r4
	bl	free_mm
	mov	r4, r7
	b	.L1
.L7:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r4]
	mov	r4, r5
	bl	mmput
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	current
	.size	dup_mm, .-dup_mm
	.comm	current,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
