	.file	"extr_vm_machdep.c_cpu_fork.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cpu_fork
	.type	cpu_fork, @function
cpu_fork:
.LFB0:
	.cfi_startproc
	endbr64
	test	DWORD PTR RFPROC[rip], ecx
	jne	.L11
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, DWORD PTR [rdx]
	mov	rbx, rdx
	imul	ebp, DWORD PTR PAGE_SIZE[rip]
	movsx	rbp, ebp
	add	rbp, QWORD PTR 32[rdx]
	lea	rsi, -48[rbp]
	mov	QWORD PTR 24[rdx], rsi
	mov	rdi, QWORD PTR 24[rdi]
	mov	edx, 48
	call	bcopy@PLT
	lea	rdi, -96[rbp]
	call	STACKALIGN@PLT
	mov	rdi, QWORD PTR 16[r12]
	mov	edx, 48
	mov	rbp, rax
	mov	rsi, rax
	call	bcopy@PLT
	mov	rax, QWORD PTR 40[rbp]
	mov	edx, DWORD PTR SSTATUS_SPP[rip]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR 32[rbp]
	not	edx
	mov	QWORD PTR [rax], 0
	mov	rcx, QWORD PTR fork_return[rip]
	mov	QWORD PTR 8[rax], 0
	mov	eax, DWORD PTR 24[rbp]
	or	eax, DWORD PTR SSTATUS_SPIE[rip]
	and	eax, edx
	mov	DWORD PTR 24[rbp], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	QWORD PTR 16[rbx], rbp
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rcx
	mov	QWORD PTR 8[rdx], rbx
	mov	rdx, QWORD PTR fork_trampoline[rip]
	mov	QWORD PTR 16[rax], rbp
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR SSTATUS_SIE[rip]
	mov	DWORD PTR 4[rbx], 1
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cpu_fork, .-cpu_fork
	.comm	fork_trampoline,8,8
	.comm	fork_return,8,8
	.comm	SSTATUS_SPP,4,4
	.comm	SSTATUS_SPIE,4,4
	.comm	SSTATUS_SIE,4,4
	.comm	RFPROC,4,4
	.comm	PAGE_SIZE,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_vm_machdep.c_cpu_fork.c"
	.text
	.align	2
	.global	cpu_fork
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpu_fork, %function
cpu_fork:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L11
	ldr	r1, [r1]
	tst	r3, r1
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r3, .L11+4
	ldr	r5, [r2]
	ldr	r1, [r3]
	ldr	r3, [r2, #20]
	mov	r6, r0
	mla	r5, r1, r5, r3
	sub	r1, r5, #24
	str	r1, [r4, #16]
	mov	r2, #24
	ldr	r0, [r0, #16]
	bl	bcopy
	sub	r0, r5, #48
	bl	STACKALIGN
	mov	r5, r0
	mov	r2, #24
	mov	r1, r5
	ldr	r0, [r6, #12]
	bl	bcopy
	mov	r1, #0
	mov	ip, #1
	ldr	r3, [r5, #20]
	ldr	r0, .L11+8
	ldr	r2, .L11+12
	ldr	lr, [r0]
	str	r1, [r3]
	ldr	r3, [r5, #12]
	ldr	r2, [r2]
	ldr	r0, [r5, #16]
	orr	r3, r3, lr
	bic	r3, r3, r2
	ldr	lr, .L11+16
	ldr	r2, [r4, #16]
	str	r1, [r0]
	str	r1, [r0, #4]
	ldr	lr, [lr]
	ldr	r1, [r2]
	ldr	r0, .L11+20
	str	r3, [r5, #12]
	ldr	r3, .L11+24
	str	r5, [r4, #12]
	str	lr, [r1]
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r4, [r1, #4]
	stmib	r2, {r0, r5}
	str	r3, [r4, #8]
	str	ip, [r4, #4]
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	RFPROC
	.word	PAGE_SIZE
	.word	SSTATUS_SPIE
	.word	SSTATUS_SPP
	.word	fork_return
	.word	fork_trampoline
	.word	SSTATUS_SIE
	.size	cpu_fork, .-cpu_fork
	.comm	fork_trampoline,4,4
	.comm	fork_return,4,4
	.comm	SSTATUS_SPP,4,4
	.comm	SSTATUS_SPIE,4,4
	.comm	SSTATUS_SIE,4,4
	.comm	RFPROC,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
