	.file	"extr_process.c_copy_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	copy_thread
	.type	copy_thread, @function
copy_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rcx
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	task_pt_regs@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	task_thread_info@PLT
	movdqu	xmm0, XMMWORD PTR [r12]
	mov	rdi, r12
	mov	rbp, rax
	movups	XMMWORD PTR [rbx], xmm0
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR 16[rbx], rax
	call	user_mode@PLT
	test	rax, rax
	jne	.L2
	mov	r13, QWORD PTR THREAD_SIZE[rip]
	add	r13, rbp
.L2:
	mov	QWORD PTR [rbx], r13
	mov	rdi, rbp
	mov	edx, 24
	xor	esi, esi
	call	memset@PLT
	movsx	rax, DWORD PTR 8[rbx]
	mov	QWORD PTR 0[rbp], rbx
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR ret_from_fork[rip]
	sub	rax, 8
	mov	QWORD PTR 16[rbp], rax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	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	copy_thread, .-copy_thread
	.comm	ret_from_fork,8,8
	.comm	THREAD_SIZE,8,8
	.comm	STATE_SAVE_ARG_SPACE,8,8
	.comm	MSR_VMS,4,4
	.comm	MSR_VM,4,4
	.comm	MSR_UMS,4,4
	.comm	MSR_IE,4,4
	.comm	MSR_EIP,4,4
	.comm	MSR_EE,4,4
	.comm	MSR_BIP,4,4
	.comm	CLONE_SETTLS,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_process.c_copy_thread.c"
	.text
	.align	2
	.global	copy_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_thread, %function
copy_thread:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r3
	mov	r5, r3
	mov	r6, r1
	ldr	r7, [sp, #24]
	bl	task_pt_regs
	mov	r4, r0
	mov	r0, r5
	bl	task_thread_info
	mov	r5, r0
	ldm	r7, {r0, r1, r2}
	stm	r4, {r0, r1, r2}
	mov	r0, r7
	bl	user_mode
	cmp	r0, #0
	ldreq	r3, .L5
	mov	r2, #8
	ldreq	r6, [r3]
	mov	r1, #0
	addeq	r6, r5, r6
	str	r6, [r4]
	add	r0, r5, #4
	bl	memset
	ldr	r3, .L5+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r0, #0
	sub	r3, r3, #8
	stmib	r5, {r2, r3}
	str	r4, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	THREAD_SIZE
	.word	ret_from_fork
	.size	copy_thread, .-copy_thread
	.comm	ret_from_fork,4,4
	.comm	THREAD_SIZE,4,4
	.comm	STATE_SAVE_ARG_SPACE,4,4
	.comm	MSR_VMS,4,4
	.comm	MSR_VM,4,4
	.comm	MSR_UMS,4,4
	.comm	MSR_IE,4,4
	.comm	MSR_EIP,4,4
	.comm	MSR_EE,4,4
	.comm	MSR_BIP,4,4
	.comm	CLONE_SETTLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
