	.file	"378924.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ptrace"
.LC1:
	.string	"kill"
	.text
	.type	clone_child, @function
clone_child:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, 0
	mov	eax, 0
	call	ptrace@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L2:
	call	getpid@PLT
	mov	esi, 19
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L3:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clone_child, .-clone_child
	.globl	clone_stack
	.bss
	.align 4096
	.type	clone_stack, @object
	.size	clone_stack, 16384
clone_stack:
	.zero	16384
	.section	.rodata
.LC2:
	.string	"clone"
.LC3:
	.string	"child pid %d\n"
.LC4:
	.string	"waitpid returned %d\n"
.LC5:
	.string	"waitpid"
.LC6:
	.string	"child %d, status 0x%x\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, clone_stack[rip+12288]
	mov	ecx, 0
	mov	edx, 273
	mov	rsi, rax
	lea	rdi, clone_child[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], 0
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L7:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"378924.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ptrace\000"
	.align	2
.LC1:
	.ascii	"kill\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clone_child, %function
clone_child:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	ptrace
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L5
	bl	perror
.L2:
	bl	getpid
	mov	r3, r0
	mov	r1, #19
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L5+4
	bl	perror
.L3:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	clone_child, .-clone_child
	.comm	clone_stack,16384,4096
	.section	.rodata
	.align	2
.LC2:
	.ascii	"clone\000"
	.align	2
.LC3:
	.ascii	"child pid %d\012\000"
	.align	2
.LC4:
	.ascii	"waitpid returned %d\012\000"
	.align	2
.LC5:
	.ascii	"waitpid\000"
	.align	2
.LC6:
	.ascii	"child %d, status 0x%x\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L13+4
	mov	r3, #0
	ldr	r2, .L13+8
	ldr	r0, .L13+12
	bl	clone
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L13+16
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	ldr	r1, [fp, #-16]
	ldr	r0, .L13+20
	bl	printf
	sub	r3, fp, #20
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+24
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L13+28
	bl	perror
	mov	r3, #1
	b	.L11
.L9:
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L13+32
	bl	printf
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC7
	.word	clone_stack+12288
	.word	273
	.word	clone_child
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
