	.file	"126702636.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"trapped USR1 and continue"
.LC1:
	.string	"W:\t%s\n"
	.text
	.globl	sigusr1
	.type	sigusr1, @function
sigusr1:
.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	DWORD PTR -4[rbp], edi
	lea	rsi, sigusr1[rip]
	mov	edi, 10
	call	signal@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC0[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sigusr1, .-sigusr1
	.section	.rodata
.LC2:
	.string	"trapped USR2 and continue"
	.text
	.globl	sigusr2
	.type	sigusr2, @function
sigusr2:
.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
	lea	rsi, sigusr2[rip]
	mov	edi, 12
	call	signal@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sigusr2, .-sigusr2
	.section	.rodata
.LC3:
	.string	"trapped HUP and continue"
	.text
	.globl	sighup
	.type	sighup, @function
sighup:
.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	rsi, sighup[rip]
	mov	edi, 1
	call	signal@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sighup, .-sighup
	.section	.rodata
.LC4:
	.string	"trapped TERM and exit"
	.text
	.globl	sigterm
	.type	sigterm, @function
sigterm:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	sigterm, .-sigterm
	.section	.rodata
	.align 8
.LC5:
	.string	"trapped INT and kill itself again"
	.text
	.globl	sigint
	.type	sigint, @function
sigint:
.LFB10:
	.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	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC5[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
	mov	edi, 2
	call	raise@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sigint, .-sigint
	.section	.rodata
	.align 8
.LC6:
	.string	"trapped SIGQUIT and exit abnormally"
	.text
	.globl	sigquit
	.type	sigquit, @function
sigquit:
.LFB11:
	.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	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC6[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	sigquit, .-sigquit
	.section	.rodata
.LC7:
	.string	"PID %d"
.LC8:
	.string	"start work..."
.LC9:
	.string	"more work to do..."
.LC10:
	.string	"exit abnormally"
.LC11:
	.string	"exit normally"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rsi, sigusr1[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sigusr2[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, sighup[rip]
	mov	edi, 1
	call	signal@PLT
	lea	rsi, sigterm[rip]
	mov	edi, 15
	call	signal@PLT
	lea	rsi, sigint[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, sigquit[rip]
	mov	edi, 3
	call	signal@PLT
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -32[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -52[rbp], 1
	jle	.L8
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L9
.L8:
	mov	eax, 7
.L9:
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC8[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L12:
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	sleep@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	je	.L16
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC9[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L12
.L16:
	nop
	mov	DWORD PTR -36[rbp], 6
	call	rand@PLT
	cdq
	idiv	DWORD PTR -36[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC10[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	add	eax, 1
	mov	edi, eax
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC11[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.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	"126702636.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"trapped USR1 and continue\000"
	.align	2
.LC1:
	.ascii	"W:\011%s\012\000"
	.text
	.align	2
	.global	sigusr1
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigusr1, %function
sigusr1:
	@ 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	r1, .L2
	mov	r0, #10
	bl	signal
	ldr	r3, .L2+4
	ldr	r3, [r3]
	ldr	r2, .L2+8
	ldr	r1, .L2+12
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	sigusr1
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	sigusr1, .-sigusr1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"trapped USR2 and continue\000"
	.text
	.align	2
	.global	sigusr2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigusr2, %function
sigusr2:
	@ 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	r1, .L5
	mov	r0, #12
	bl	signal
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r2, .L5+8
	ldr	r1, .L5+12
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	sigusr2
	.word	stderr
	.word	.LC2
	.word	.LC1
	.size	sigusr2, .-sigusr2
	.section	.rodata
	.align	2
.LC3:
	.ascii	"trapped HUP and continue\000"
	.text
	.align	2
	.global	sighup
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighup, %function
sighup:
	@ 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	r1, .L8
	mov	r0, #1
	bl	signal
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, .L8+8
	ldr	r1, .L8+12
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	sighup
	.word	stderr
	.word	.LC3
	.word	.LC1
	.size	sighup, .-sighup
	.section	.rodata
	.align	2
.LC4:
	.ascii	"trapped TERM and exit\000"
	.text
	.align	2
	.global	sigterm
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigterm, %function
sigterm:
	@ 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, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+4
	ldr	r1, .L11+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	stderr
	.word	.LC4
	.word	.LC1
	.size	sigterm, .-sigterm
	.section	.rodata
	.align	2
.LC5:
	.ascii	"trapped INT and kill itself again\000"
	.text
	.align	2
	.global	sigint
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint, %function
sigint:
	@ 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, .L14
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldr	r1, .L14+8
	mov	r0, r3
	bl	fprintf
	mov	r1, #0
	mov	r0, #2
	bl	signal
	mov	r0, #2
	bl	raise
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stderr
	.word	.LC5
	.word	.LC1
	.size	sigint, .-sigint
	.section	.rodata
	.align	2
.LC6:
	.ascii	"trapped SIGQUIT and exit abnormally\000"
	.text
	.align	2
	.global	sigquit
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigquit, %function
sigquit:
	@ 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, .L17
	ldr	r3, [r3]
	ldr	r2, .L17+4
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #3
	bl	exit
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC6
	.word	.LC1
	.size	sigquit, .-sigquit
	.section	.rodata
	.align	2
.LC7:
	.ascii	"PID %d\000"
	.align	2
.LC8:
	.ascii	"start work...\000"
	.align	2
.LC9:
	.ascii	"more work to do...\000"
	.global	__aeabi_idivmod
	.align	2
.LC10:
	.ascii	"exit abnormally\000"
	.align	2
.LC11:
	.ascii	"exit normally\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r1, .L29+4
	mov	r0, #10
	bl	signal
	ldr	r1, .L29+8
	mov	r0, #12
	bl	signal
	ldr	r1, .L29+12
	mov	r0, #1
	bl	signal
	ldr	r1, .L29+16
	mov	r0, #15
	bl	signal
	ldr	r1, .L29+20
	mov	r0, #2
	bl	signal
	ldr	r1, .L29+24
	mov	r0, #3
	bl	signal
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #24
	ldr	r1, .L29+28
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L29+32
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L29+36
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L20
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L21
.L20:
	mov	r3, #7
.L21:
	str	r3, [fp, #-32]
	ldr	r3, .L29+32
	ldr	r3, [r3]
	ldr	r2, .L29+40
	ldr	r1, .L29+36
	mov	r0, r3
	bl	fprintf
.L24:
	ldr	r0, [fp, #-32]
	bl	sleep
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L29+32
	ldr	r3, [r3]
	ldr	r2, .L29+44
	ldr	r1, .L29+36
	mov	r0, r3
	bl	fprintf
	b	.L24
.L28:
	nop
	mov	r3, #6
	str	r3, [fp, #-28]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L29+32
	ldr	r3, [r3]
	ldr	r2, .L29+48
	ldr	r1, .L29+36
	mov	r0, r3
	bl	fprintf
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r3, #1
	mov	r0, r3
	bl	exit
.L25:
	ldr	r3, .L29+32
	ldr	r3, [r3]
	ldr	r2, .L29+52
	ldr	r1, .L29+36
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L30:
	.align	2
.L29:
	.word	.LC12
	.word	sigusr1
	.word	sigusr2
	.word	sighup
	.word	sigterm
	.word	sigint
	.word	sigquit
	.word	.LC7
	.word	stderr
	.word	.LC1
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
