	.file	"681438.c"
	.intel_syntax noprefix
	.text
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	val
	.type	val, @object
	.size	val, 1
val:
	.zero	1
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"reconfigure.conf"
.LC2:
	.string	"fopen"
.LC3:
	.string	"%c %d\n"
.LC4:
	.string	"fscanf"
	.text
	.globl	sighupHandler
	.type	sighupHandler, @function
sighupHandler:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, count[rip]
	lea	rdx, val[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sighupHandler, .-sighupHandler
	.section	.rodata
.LC5:
	.string	"Process id=%d\n"
	.text
	.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
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, sighupHandler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 268435456
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigaction@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -288[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	sigaddset@PLT
	mov	edi, 1
	call	sighupHandler
.L8:
	mov	edi, 1
	call	sleep@PLT
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	DWORD PTR -292[rbp], 0
	jmp	.L6
.L7:
	movzx	eax, BYTE PTR val[rip]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -292[rbp], 1
.L6:
	mov	eax, DWORD PTR count[rip]
	cmp	DWORD PTR -292[rbp], eax
	jl	.L7
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L8
	.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	"681438.c"
	.text
	.comm	count,4,4
	.comm	val,1,1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"reconfigure.conf\000"
	.align	2
.LC2:
	.ascii	"fopen\000"
	.align	2
.LC3:
	.ascii	"%c %d\012\000"
	.align	2
.LC4:
	.ascii	"fscanf\000"
	.text
	.align	2
	.global	sighupHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighupHandler, %function
sighupHandler:
	@ 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	r1, .L5
	ldr	r0, .L5+4
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L5+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L5+12
	ldr	r2, .L5+16
	ldr	r1, .L5+20
	ldr	r0, [fp, #-8]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, [fp, #-8]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L5+24
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	count
	.word	val
	.word	.LC3
	.word	.LC4
	.size	sighupHandler, .-sighupHandler
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Process id=%d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+4
	bl	printf
	ldr	r3, .L12+8
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #268435456
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigaction
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #276
	mov	r1, #1
	mov	r0, r3
	bl	sigaddset
	mov	r0, #1
	bl	sighupHandler
.L10:
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #276
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L8
.L9:
	ldr	r3, .L12+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L8:
	ldr	r3, .L12+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-280]
	cmp	r2, r3
	blt	.L9
	sub	r3, fp, #276
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	mov	r0, #10
	bl	putchar
	b	.L10
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	.LC5
	.word	sighupHandler
	.word	val
	.word	count
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
