	.file	"736069.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"pthread_detach error"
.LC1:
	.string	"(%d) %s\n"
	.text
	.type	alarm_thread, @function
alarm_thread:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	call	pthread_self@PLT
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	sleep@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alarm_thread, .-alarm_thread
	.section	.rodata
.LC2:
	.string	"Alarm> "
.LC3:
	.string	"%d %64[^\n]"
.LC4:
	.string	"Bad command"
.LC5:
	.string	"pthread_create has failed"
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L9:
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -40[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 1
	jne	.L5
	mov	eax, 0
	jmp	.L10
.L5:
	mov	edi, 68
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 4[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jg	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L8
.L7:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	lea	rdx, alarm_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L8
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L9
.L10:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"736069.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pthread_detach error\000"
	.align	2
.LC1:
	.ascii	"(%d) %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alarm_thread, %function
alarm_thread:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	bl	pthread_self
	mov	r3, r0
	mov	r0, r3
	bl	pthread_detach
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L4
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	sleep
	ldr	r3, [fp, #-12]
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L4+4
	bl	printf
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	alarm_thread, .-alarm_thread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Alarm> \000"
	.align	2
.LC3:
	.ascii	"%d %64[^\012]\000"
	.align	2
.LC4:
	.ascii	"Bad command\000"
	.align	2
.LC5:
	.ascii	"pthread_create has failed\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L11:
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, .L14+4
	bl	printf
	ldr	r3, .L14+8
	ldr	r2, [r3]
	sub	r1, fp, #28
	sub	r3, fp, #32
	mov	r0, r3
	bl	getline
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L7
	mov	r3, #0
	b	.L12
.L7:
	mov	r0, #68
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-32]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r1, .L14+12
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bgt	.L9
	ldr	r0, .L14+16
	bl	puts
	b	.L10
.L9:
	sub	r0, fp, #24
	ldr	r3, [fp, #-16]
	ldr	r2, .L14+20
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L14+24
	bl	puts
	mov	r3, #1
	b	.L12
.L10:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	b	.L11
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC2
	.word	stdin
	.word	.LC3
	.word	.LC4
	.word	alarm_thread
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
