	.file	"680240.c"
	.intel_syntax noprefix
	.text
	.globl	symbol
	.bss
	.type	symbol, @object
	.size	symbol, 1
symbol:
	.zero	1
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.globl	fd
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Process %d finishes. Symbol %c. Instances %d.\n"
.LC1:
	.string	"Process %d continues\n"
	.text
	.globl	signal_handler
	.type	signal_handler, @function
signal_handler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 15
	je	.L2
	cmp	DWORD PTR -20[rbp], 18
	je	.L3
	jmp	.L5
.L2:
	mov	r12d, DWORD PTR counter[rip]
	movzx	eax, BYTE PTR symbol[rip]
	movsx	ebx, al
	call	getpid@PLT
	mov	ecx, r12d
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	nop
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align 8
.LC2:
	.string	"Usage: ./sym_count <file-path> <symbol>"
	.align 8
.LC3:
	.string	"Signal handle registration failed. %s\n"
.LC4:
	.string	"Error opening file: %s\n"
.LC5:
	.string	"Error reading from file: %s\n"
	.align 8
.LC6:
	.string	"Process %d, symbol %c, going to sleep\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
	push	rbx
	sub	rsp, 1240
	.cfi_offset 3, -24
	mov	DWORD PTR -1236[rbp], edi
	mov	QWORD PTR -1248[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1236[rbp], 2
	jg	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L18
.L7:
	lea	rax, -1216[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -1216[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, signal_handler[rip]
	mov	QWORD PTR -1216[rbp], rax
	lea	rax, -1216[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	test	eax, eax
	jne	.L9
	lea	rax, -1216[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 18
	call	sigaction@PLT
	test	eax, eax
	je	.L10
.L9:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L18
.L10:
	mov	rax, QWORD PTR -1248[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR symbol[rip], al
	mov	rax, QWORD PTR -1248[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	test	eax, eax
	jns	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L18
.L17:
	cmp	QWORD PTR -1224[rbp], 0
	jns	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L18
.L13:
	mov	DWORD PTR -1228[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -1228[rbp]
	cdqe
	movzx	edx, BYTE PTR -1056[rbp+rax]
	movzx	eax, BYTE PTR symbol[rip]
	cmp	dl, al
	jne	.L15
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	movzx	eax, BYTE PTR symbol[rip]
	movsx	ebx, al
	call	getpid@PLT
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 19
	call	raise@PLT
.L15:
	add	DWORD PTR -1228[rbp], 1
.L14:
	mov	eax, DWORD PTR -1228[rbp]
	cdqe
	cmp	QWORD PTR -1224[rbp], rax
	jg	.L16
.L12:
	mov	eax, DWORD PTR fd[rip]
	lea	rcx, -1056[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1224[rbp], rax
	cmp	QWORD PTR -1224[rbp], 0
	jne	.L17
	mov	edi, 15
	call	raise@PLT
	mov	eax, -1
.L18:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"680240.c"
	.text
	.comm	symbol,1,1
	.global	counter
	.bss
	.align	2
	.type	counter, %object
	.size	counter, 4
counter:
	.space	4
	.comm	fd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Process %d finishes. Symbol %c. Instances %d.\012\000"
	.align	2
.LC1:
	.ascii	"Process %d continues\012\000"
	.text
	.align	2
	.global	signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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, [fp, #-8]
	cmp	r3, #15
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #18
	beq	.L3
	b	.L5
.L2:
	bl	getpid
	mov	r1, r0
	ldr	r3, .L6
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L6+4
	ldr	r3, [r3]
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L3:
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L6+16
	bl	printf
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	symbol
	.word	counter
	.word	.LC0
	.word	fd
	.word	.LC1
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: ./sym_count <file-path> <symbol>\000"
	.align	2
.LC3:
	.ascii	"Signal handle registration failed. %s\012\000"
	.align	2
.LC4:
	.ascii	"Error opening file: %s\012\000"
	.align	2
.LC5:
	.ascii	"Error reading from file: %s\012\000"
	.align	2
.LC6:
	.ascii	"Process %d, symbol %c, going to sleep\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1184
	str	r0, [fp, #-1184]
	str	r1, [fp, #-1188]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1184]
	cmp	r3, #2
	bgt	.L9
	ldr	r0, .L22+4
	bl	puts
	mvn	r3, #0
	b	.L20
.L9:
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1168
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	ldr	r3, .L22+8
	str	r3, [fp, #-1172]
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	sub	r3, fp, #1168
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #18
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
.L11:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L20
.L12:
	ldr	r3, [fp, #-1188]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L22+16
	strb	r2, [r3]
	ldr	r3, [fp, #-1188]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L22+20
	str	r3, [r2]
	ldr	r3, .L22+20
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22+24
	bl	printf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-1176]
	cmp	r3, #0
	bge	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22+28
	bl	printf
	ldr	r3, .L22+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L20
.L15:
	mov	r3, #0
	str	r3, [fp, #-1180]
	b	.L16
.L18:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1180]
	add	r3, r3, r2
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L22+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L17
	ldr	r3, .L22+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+32
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L22+16
	ldrb	r2, [r2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+36
	bl	printf
	mov	r0, #19
	bl	raise
.L17:
	ldr	r3, [fp, #-1180]
	add	r3, r3, #1
	str	r3, [fp, #-1180]
.L16:
	ldr	r2, [fp, #-1180]
	ldr	r3, [fp, #-1176]
	cmp	r2, r3
	blt	.L18
.L14:
	ldr	r3, .L22+20
	ldr	r0, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1176]
	ldr	r3, [fp, #-1176]
	cmp	r3, #0
	bne	.L19
	mov	r0, #15
	bl	raise
	mvn	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	.LC2
	.word	signal_handler
	.word	.LC3
	.word	symbol
	.word	fd
	.word	.LC4
	.word	.LC5
	.word	counter
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
