	.file	"98792.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	child_pid, @object
	.size	child_pid, 4
child_pid:
	.long	-1
	.section	.rodata
	.align 8
.LC0:
	.string	"time: %d-%02d-%02d %02d:%02d:%02d\n"
	.text
	.globl	print_time
	.type	print_time, @function
print_time:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -88[rbp], rax
	lea	rax, -88[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -56[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -40[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	ecx, DWORD PTR -80[rbp]
	mov	r8d, DWORD PTR -76[rbp]
	mov	edi, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, DWORD PTR -64[rbp]
	add	edx, 1
	mov	esi, DWORD PTR -60[rbp]
	add	esi, 1900
	sub	rsp, 8
	push	rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_time, .-print_time
	.section	.rodata
.LC1:
	.string	"Stopped. Waiting for:"
.LC2:
	.string	"\t^Z -- continue"
.LC3:
	.string	"\t^C -- interrupt"
.LC4:
	.string	"showdate.sh"
.LC5:
	.string	"bash"
.LC6:
	.string	"/bin/bash"
	.text
	.globl	tstp_handler
	.type	tstp_handler, @function
tstp_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR child_pid[rip]
	test	eax, eax
	jle	.L4
	mov	eax, DWORD PTR child_pid[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	DWORD PTR child_pid[rip], -1
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L6
.L4:
	call	fork@PLT
	mov	DWORD PTR child_pid[rip], eax
	mov	eax, DWORD PTR child_pid[rip]
	test	eax, eax
	jne	.L6
	mov	ecx, 0
	lea	rdx, .LC4[rip]
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	execl@PLT
	mov	edi, -1
	call	exit@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	tstp_handler, .-tstp_handler
	.section	.rodata
.LC7:
	.string	"Received SIGINT."
	.text
	.globl	int_handler
	.type	int_handler, @function
int_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	int_handler, .-int_handler
	.section	.rodata
	.align 8
.LC8:
	.string	"Cannot install SIGTSTP handler"
.LC9:
	.string	"Cannot install SIGINT handler"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, tstp_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 20
	call	sigaction@PLT
	test	eax, eax
	jns	.L9
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L13
.L9:
	lea	rsi, int_handler[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L11
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L13
.L11:
	mov	edi, 0
	call	tstp_handler
.L12:
	mov	edi, 10
	call	sleep@PLT
	jmp	.L12
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"98792.c"
	.text
	.data
	.align	2
	.type	child_pid, %object
	.size	child_pid, 4
child_pid:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"time: %d-%02d-%02d %02d:%02d:%02d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_time, %function
print_time:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-56]
	sub	r3, fp, #56
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #52
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-32]
	add	r1, r3, #1888
	add	r1, r1, #12
	ldr	r3, [fp, #-36]
	add	ip, r3, #1
	ldr	lr, [fp, #-40]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-52]
	str	r0, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r0, .L3+4
	bl	printf
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC1
	.word	.LC0
	.size	print_time, .-print_time
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Stopped. Waiting for:\000"
	.align	2
.LC3:
	.ascii	"\011^Z -- continue\000"
	.align	2
.LC4:
	.ascii	"\011^C -- interrupt\000"
	.align	2
.LC5:
	.ascii	"showdate.sh\000"
	.align	2
.LC6:
	.ascii	"bash\000"
	.align	2
.LC7:
	.ascii	"/bin/bash\000"
	.text
	.align	2
	.global	tstp_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	tstp_handler, %function
tstp_handler:
	@ 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]
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L6
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	ldr	r3, .L9
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, .L9+4
	bl	puts
	ldr	r0, .L9+8
	bl	puts
	ldr	r0, .L9+12
	bl	puts
	b	.L8
.L6:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9
	str	r2, [r3]
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	ldr	r2, .L9+16
	ldr	r1, .L9+20
	ldr	r0, .L9+24
	bl	execl
	mvn	r0, #0
	bl	exit
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	child_pid
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	tstp_handler, .-tstp_handler
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Received SIGINT.\000"
	.text
	.align	2
	.global	int_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_handler, %function
int_handler:
	@ 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]
	ldr	r0, .L12
	bl	puts
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	.LC8
	.size	int_handler, .-int_handler
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Cannot install SIGTSTP handler\000"
	.align	2
.LC10:
	.ascii	"Cannot install SIGINT handler\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #20
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L21+8
	bl	perror
	mvn	r3, #0
	b	.L19
.L15:
	ldr	r1, .L21+12
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L21+16
	bl	perror
	mvn	r3, #0
	b	.L19
.L17:
	mov	r0, #0
	bl	tstp_handler
.L18:
	mov	r0, #10
	bl	sleep
	b	.L18
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC11
	.word	tstp_handler
	.word	.LC9
	.word	int_handler
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
