	.file	"210749.c"
	.intel_syntax noprefix
	.text
	.globl	event
	.bss
	.align 32
	.type	event, @object
	.size	event, 48
event:
	.zero	48
	.section	.rodata
.LC0:
	.string	"Syntax: chop_by_rank infile"
.LC1:
	.string	"enter minrank maxrank : "
.LC2:
	.string	"%d %d"
.LC3:
	.string	"r"
	.align 8
.LC4:
	.string	"failed to open input file %s ... exiting\n"
.LC5:
	.string	"mpirank_%d.trc"
.LC6:
	.string	"mpirank_%d_to_%d.trc"
.LC7:
	.string	"w"
.LC8:
	.string	"wrote file %s\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
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -132[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -116[rbp]
	lea	rax, -120[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	edx, DWORD PTR -116[rbp]
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jne	.L4
	mov	edx, DWORD PTR -120[rbp]
	lea	rax, -96[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L5
.L4:
	mov	ecx, DWORD PTR -116[rbp]
	mov	edx, DWORD PTR -120[rbp]
	lea	rax, -96[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L5:
	lea	rax, -96[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 48
	lea	rdi, event[rip]
	call	fread@PLT
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 48
	lea	rdi, event[rip]
	call	fread@PLT
.L6:
	mov	edx, DWORD PTR event[rip+16]
	mov	eax, DWORD PTR -120[rbp]
	cmp	edx, eax
	jl	.L7
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -104[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 48
	lea	rdi, event[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 48
	lea	rdi, event[rip]
	call	fread@PLT
.L8:
	mov	edx, DWORD PTR event[rip+16]
	mov	eax, DWORD PTR -116[rbp]
	cmp	edx, eax
	jle	.L9
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"210749.c"
	.text
	.comm	event,48,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Syntax: chop_by_rank infile\000"
	.align	2
.LC1:
	.ascii	"enter minrank maxrank : \000"
	.align	2
.LC2:
	.ascii	"%d %d\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"failed to open input file %s ... exiting\012\000"
	.align	2
.LC5:
	.ascii	"mpirank_%d.trc\000"
	.align	2
.LC6:
	.ascii	"mpirank_%d_to_%d.trc\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"wrote file %s\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L12+4
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r0, .L12+8
	bl	printf
	sub	r2, fp, #100
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, .L12+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L12+20
	bl	printf
	mov	r0, #0
	bl	exit
.L3:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	bne	.L4
	ldr	r2, [fp, #-104]
	sub	r3, fp, #88
	ldr	r1, .L12+24
	mov	r0, r3
	bl	sprintf
	b	.L5
.L4:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	sub	r0, fp, #88
	ldr	r1, .L12+28
	bl	sprintf
.L5:
	sub	r3, fp, #88
	ldr	r1, .L12+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-96]
	mov	r2, #1
	mov	r1, #48
	ldr	r0, .L12+36
	bl	fread
	b	.L6
.L7:
	ldr	r3, [fp, #-96]
	mov	r2, #1
	mov	r1, #48
	ldr	r0, .L12+36
	bl	fread
.L6:
	ldr	r3, .L12+36
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L7
	b	.L8
.L9:
	ldr	r3, [fp, #-92]
	mov	r2, #1
	mov	r1, #48
	ldr	r0, .L12+36
	bl	fwrite
	ldr	r3, [fp, #-96]
	mov	r2, #1
	mov	r1, #48
	ldr	r0, .L12+36
	bl	fread
.L8:
	ldr	r3, .L12+36
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	ble	.L9
	ldr	r0, [fp, #-96]
	bl	fclose
	ldr	r0, [fp, #-92]
	bl	fclose
	sub	r3, fp, #88
	mov	r1, r3
	ldr	r0, .L12+40
	bl	printf
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	event
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
