	.file	"1189312.c"
	.intel_syntax noprefix
	.text
	.globl	caught_sigalarm
	.bss
	.type	caught_sigalarm, @object
	.size	caught_sigalarm, 1
caught_sigalarm:
	.zero	1
	.text
	.type	signal_handler, @function
signal_handler:
.LFB0:
	.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
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -20[rbp], 14
	jne	.L2
	mov	BYTE PTR caught_sigalarm[rip], 1
.L2:
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align 8
.LC0:
	.string	"Error %d (%s) registering for SIGALRM"
	.align 8
.LC1:
	.string	"Waiting 2 seconds for alarm signal"
.LC2:
	.string	"Caught SIGALARM!"
	.align 8
.LC3:
	.string	"Error: Did not catch SIGALARM!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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, 200
	.cfi_offset 3, -24
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -177[rbp], 1
	lea	rax, -176[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, signal_handler[rip]
	mov	QWORD PTR -176[rbp], rax
	lea	rax, -176[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	test	eax, eax
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -177[rbp], 0
.L4:
	cmp	BYTE PTR -177[rbp], 0
	je	.L5
	mov	edi, 2
	call	alarm@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	pause@PLT
	movzx	eax, BYTE PTR caught_sigalarm[rip]
	test	al, al
	je	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	BYTE PTR -177[rbp], 0
.L5:
	movzx	eax, BYTE PTR -177[rbp]
	xor	eax, 1
	movzx	eax, al
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"1189312.c"
	.text
	.global	caught_sigalarm
	.bss
	.type	caught_sigalarm, %object
	.size	caught_sigalarm, 1
caught_sigalarm:
	.space	1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #14
	bne	.L2
	ldr	r3, .L3
	mov	r2, #1
	strb	r2, [r3]
.L2:
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	caught_sigalarm
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error %d (%s) registering for SIGALRM\000"
	.align	2
.LC1:
	.ascii	"Waiting 2 seconds for alarm signal\000"
	.align	2
.LC2:
	.ascii	"Caught SIGALARM!\000"
	.align	2
.LC3:
	.ascii	"Error: Did not catch SIGALARM!\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #164
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-157]
	sub	r3, fp, #156
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L11+4
	str	r3, [fp, #-156]
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L11+8
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-157]
.L6:
	ldrb	r3, [fp, #-157]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	mov	r0, #2
	bl	alarm
	ldr	r0, .L11+12
	bl	puts
	bl	pause
	ldr	r3, .L11+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L11+20
	bl	puts
	b	.L7
.L8:
	ldr	r0, .L11+24
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-157]
.L7:
	ldrb	r3, [fp, #-157]
	eor	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	signal_handler
	.word	.LC0
	.word	.LC1
	.word	caught_sigalarm
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
