	.file	"122014397.c"
	.intel_syntax noprefix
	.text
	.globl	pid
	.bss
	.align 4
	.type	pid, @object
	.size	pid, 4
pid:
	.zero	4
	.globl	counter
	.data
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.long	2
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	handler1
	.type	handler1, @function
handler1:
.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
	mov	eax, DWORD PTR counter[rip]
	sub	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR counter[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	handler1, .-handler1
	.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
	lea	rsi, handler1[rip]
	mov	edi, 10
	call	signal@PLT
	mov	eax, DWORD PTR counter[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	call	fork@PLT
	mov	DWORD PTR pid[rip], eax
	mov	eax, DWORD PTR pid[rip]
	test	eax, eax
	jne	.L3
.L4:
	jmp	.L4
.L3:
	mov	eax, DWORD PTR pid[rip]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	mov	edx, 0
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	eax, DWORD PTR counter[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"122014397.c"
	.text
	.comm	pid,4,4
	.global	counter
	.data
	.align	2
	.type	counter, %object
	.size	counter, 4
counter:
	.word	2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	handler1
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler1, %function
handler1:
	@ 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, .L2
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L2
	str	r3, [r2]
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, .L2+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	counter
	.word	.LC0
	.word	stdout
	.size	handler1, .-handler1
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L7
	mov	r0, #10
	bl	signal
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L7+16
	str	r2, [r3]
	ldr	r3, .L7+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
.L6:
	b	.L6
.L5:
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	kill
	mov	r2, #0
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	ldr	r3, .L7+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+4
	str	r3, [r2]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	handler1
	.word	counter
	.word	.LC0
	.word	stdout
	.word	pid
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
