	.file	"616945.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"[%d] signal failed: %s, signo = %d\n"
.LC1:
	.string	"[%d] i = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	lea	rax, handle_signal[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	signal@PLT
	test	rax, rax
	je	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, 2
	mov	rcx, rbx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, 15
	call	signal@PLT
	test	rax, rax
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	getpid@PLT
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, 15
	mov	rcx, rbx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L3
.L4:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L5
.L6:
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -28[rbp], 1
.L5:
	cmp	DWORD PTR -28[rbp], 2147483647
	jne	.L6
	mov	eax, 0
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.string	"[%d] receive signal: signo = %d\n"
	.text
	.globl	handle_signal
	.type	handle_signal, @function
handle_signal:
.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
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handle_signal, .-handle_signal
	.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	"616945.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[%d] signal failed: %s, signo = %d\012\000"
	.align	2
.LC1:
	.ascii	"[%d] i = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L7
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L7+4
	ldr	r4, [r3]
	bl	getpid
	mov	r5, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, #2
	str	r2, [sp]
	mov	r2, r5
	ldr	r1, .L7+8
	mov	r0, r4
	bl	fprintf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L3
.L2:
	ldr	r1, [fp, #-16]
	mov	r0, #15
	bl	signal
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L7+4
	ldr	r4, [r3]
	bl	getpid
	mov	r5, r0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, #15
	str	r2, [sp]
	mov	r2, r5
	ldr	r1, .L7+8
	mov	r0, r4
	bl	fprintf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L3
.L4:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L7+12
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-20]
	cmn	r3, #-2147483647
	bne	.L6
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L8:
	.align	2
.L7:
	.word	handle_signal
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"[%d] receive signal: signo = %d\012\000"
	.text
	.align	2
	.global	handle_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_signal, %function
handle_signal:
	@ 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]
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L10
	bl	printf
	mov	r0, #10
	bl	sleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.size	handle_signal, .-handle_signal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
