	.file	"1144699.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"(exit) status:%x\n"
.LC1:
	.string	"(signal)status: 0x%x\n"
	.text
	.globl	term_status
	.type	term_status, @function
term_status:
.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	rax, -4[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 127
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 127
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	term_status, .-term_status
	.section	.rodata
.LC2:
	.string	"signo=%d\n"
	.text
	.globl	my_sig
	.type	my_sig, @function
my_sig:
.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	term_status
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	my_sig, .-my_sig
	.section	.rodata
.LC3:
	.string	"%d\n"
.LC4:
	.string	"fork"
	.text
	.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, 16
	lea	rsi, my_sig[rip]
	mov	edi, 17
	call	signal@PLT
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jle	.L8
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L10:
	mov	edi, 50000
	call	usleep@PLT
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 9999
	jle	.L10
	jmp	.L11
.L8:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L12
	mov	edi, 5
	call	sleep@PLT
	jmp	.L11
.L12:
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L11:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"1144699.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"(exit) status:%x\012\000"
	.align	2
.LC1:
	.ascii	"(signal)status: 0x%x\012\000"
	.text
	.align	2
	.global	term_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	term_status, %function
term_status:
	@ 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]
	sub	r3, fp, #8
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-8]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-8]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L5
	bl	printf
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	and	r3, r3, #127
	mov	r1, r3
	ldr	r0, .L5+4
	bl	printf
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.size	term_status, .-term_status
	.section	.rodata
	.align	2
.LC2:
	.ascii	"signo=%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	my_sig
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_sig, %function
my_sig:
	@ 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, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-16]
	ldr	r0, .L9+4
	bl	printf
	sub	r3, fp, #12
	mov	r0, r3
	bl	wait
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	term_status
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC2
	.size	my_sig, .-my_sig
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"fork\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L18
	mov	r0, #17
	bl	signal
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L12
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L13
.L14:
	ldr	r0, .L18+4
	bl	usleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L18+8
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-12]
	ldr	r2, .L18+12
	cmp	r3, r2
	ble	.L14
	b	.L15
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L16
	mov	r0, #5
	bl	sleep
	b	.L15
.L16:
	ldr	r0, .L18+16
	bl	perror
	mvn	r0, #0
	bl	exit
.L15:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	my_sig
	.word	50000
	.word	.LC4
	.word	9999
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
