	.file	"97012834.c"
	.intel_syntax noprefix
	.text
	.globl	clone_pid
	.bss
	.align 4
	.type	clone_pid, @object
	.size	clone_pid, 4
clone_pid:
	.zero	4
	.text
	.type	clone_fn, @function
clone_fn:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clone_fn, .-clone_fn
	.section	.rodata
.LC0:
	.string	"the_stack_data/97012834.c"
.LC1:
	.string	"stack != NULL"
.LC2:
	.string	"clone_pid > 0"
.LC3:
	.string	"res != -1"
	.text
	.globl	thread_fn
	.type	thread_fn, @function
thread_fn:
.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	QWORD PTR -24[rbp], rdi
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 47
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L4:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4096
	mov	ecx, 0
	mov	edx, 256
	mov	rsi, rax
	lea	rdi, clone_fn[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR clone_pid[rip], eax
	mov	eax, DWORD PTR clone_pid[rip]
	test	eax, eax
	jg	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 55
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L5:
	mov	eax, DWORD PTR clone_pid[rip]
	mov	edx, -2147483648
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 59
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_fn, .-thread_fn
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 300
	call	alarm@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread_fn[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 10
__PRETTY_FUNCTION__.0:
	.string	"thread_fn"
	.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	"97012834.c"
	.text
	.comm	clone_pid,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clone_fn, %function
clone_fn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	clone_fn, .-clone_fn
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/97012834.c\000"
	.align	2
.LC1:
	.ascii	"stack != NULL\000"
	.align	2
.LC2:
	.ascii	"clone_pid > 0\000"
	.align	2
.LC3:
	.ascii	"res != -1\000"
	.text
	.align	2
	.global	thread_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_fn, %function
thread_fn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L8
	mov	r2, #47
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	__assert_fail
.L4:
	ldr	r3, [fp, #-12]
	add	r1, r3, #4096
	mov	r3, #0
	mov	r2, #256
	ldr	r0, .L8+12
	bl	clone
	mov	r3, r0
	ldr	r2, .L8+16
	str	r3, [r2]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L5
	ldr	r3, .L8
	mov	r2, #55
	ldr	r1, .L8+4
	ldr	r0, .L8+20
	bl	__assert_fail
.L5:
	ldr	r3, .L8+16
	ldr	r3, [r3]
	mov	r2, #-2147483648
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L8
	mov	r2, #59
	ldr	r1, .L8+4
	ldr	r0, .L8+24
	bl	__assert_fail
.L6:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	__PRETTY_FUNCTION__.6678
	.word	.LC0
	.word	.LC1
	.word	clone_fn
	.word	clone_pid
	.word	.LC2
	.word	.LC3
	.size	thread_fn, .-thread_fn
	.section	.rodata
	.align	2
.LC4:
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #300
	bl	alarm
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L13+4
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	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	.LC4
	.word	thread_fn
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6678, %object
	.size	__PRETTY_FUNCTION__.6678, 10
__PRETTY_FUNCTION__.6678:
	.ascii	"thread_fn\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
