	.file	"961674.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	" Usage : split <numprocs> <numrequests> \n"
	.align 8
.LC1:
	.string	" This program splits ADCL output files \n into multiple output files per proc and request."
.LC2:
	.string	"%d.out"
.LC3:
	.string	"r"
.LC4:
	.string	"%s.%d"
.LC5:
	.string	"w"
.LC6:
	.string	"request"
.LC7:
	.string	"%7s %d"
.LC8:
	.string	"%s\n"
.LC9:
	.string	"%[^\n]\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, 392
	.cfi_offset 3, -24
	mov	DWORD PTR -388[rbp], edi
	mov	QWORD PTR -400[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	DWORD PTR -368[rbp], -1
	mov	DWORD PTR -364[rbp], -1
	cmp	DWORD PTR -388[rbp], 2
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -368[rbp], eax
	mov	rax, QWORD PTR -400[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	jne	.L3
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	DWORD PTR -372[rbp], 0
	jmp	.L4
.L13:
	mov	edx, DWORD PTR -372[rbp]
	lea	rax, -336[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -336[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -360[rbp], rax
	mov	DWORD PTR -376[rbp], 0
	jmp	.L5
.L7:
	mov	ecx, DWORD PTR -376[rbp]
	lea	rdx, -336[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	lea	rbx, [rdx+rax]
	lea	rax, -272[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L6
	mov	edi, -1
	call	exit@PLT
.L6:
	add	DWORD PTR -376[rbp], 1
.L5:
	mov	eax, DWORD PTR -376[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L7
	jmp	.L8
.L10:
	movzx	eax, BYTE PTR -144[rbp]
	cmp	al, 35
	jne	.L9
	jmp	.L8
.L9:
	lea	rax, -144[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -344[rbp], rax
	lea	rcx, -380[rbp]
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -344[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -380[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -144[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L8:
	lea	rdx, -144[rbp]
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L10
	mov	DWORD PTR -376[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -376[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -376[rbp], 1
.L11:
	mov	eax, DWORD PTR -376[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L12
	add	DWORD PTR -372[rbp], 1
.L4:
	mov	eax, DWORD PTR -372[rbp]
	cmp	eax, DWORD PTR -368[rbp]
	jl	.L13
	mov	rax, QWORD PTR -352[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	mov	rbx, QWORD PTR -8[rbp]
	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	"961674.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" Usage : split <numprocs> <numrequests> \012\000"
	.align	2
.LC1:
	.ascii	" This program splits ADCL output files \012 into mu"
	.ascii	"ltiple output files per proc and request.\000"
	.align	2
.LC2:
	.ascii	"%d.out\000"
	.align	2
.LC3:
	.ascii	"r\000"
	.align	2
.LC4:
	.ascii	"%s.%d\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"request\000"
	.align	2
.LC7:
	.ascii	"%7s %d\000"
	.align	2
.LC8:
	.ascii	"%s\012\000"
	.align	2
.LC9:
	.ascii	"%[^\012]\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #324
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-308]
	mvn	r3, #0
	str	r3, [fp, #-304]
	mvn	r3, #0
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-328]
	cmp	r3, #2
	bgt	.L2
	ldr	r0, .L16+4
	bl	puts
	ldr	r0, .L16+8
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-332]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-304]
	ldr	r3, [fp, #-332]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-308]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	bne	.L3
	mvn	r0, #0
	bl	exit
.L3:
	mov	r3, #0
	str	r3, [fp, #-316]
	b	.L4
.L13:
	sub	r3, fp, #292
	ldr	r2, [fp, #-316]
	ldr	r1, .L16+12
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #292
	ldr	r1, .L16+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-312]
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L5
.L7:
	sub	r2, fp, #292
	sub	r0, fp, #240
	ldr	r3, [fp, #-320]
	ldr	r1, .L16+20
	bl	sprintf
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r4, r2, r3
	sub	r3, fp, #240
	ldr	r1, .L16+24
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L5:
	ldr	r2, [fp, #-320]
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	blt	.L7
	b	.L8
.L10:
	ldrb	r3, [fp, #-136]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L9
	b	.L8
.L9:
	sub	r3, fp, #136
	ldr	r1, .L16+28
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-296]
	sub	r3, fp, #324
	sub	r2, fp, #188
	ldr	r1, .L16+32
	ldr	r0, [fp, #-296]
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-324]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #136
	ldr	r1, .L16+36
	mov	r0, r3
	bl	fprintf
.L8:
	sub	r3, fp, #136
	mov	r2, r3
	ldr	r1, .L16+40
	ldr	r0, [fp, #-312]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	mov	r3, #0
	str	r3, [fp, #-320]
	b	.L11
.L12:
	ldr	r3, [fp, #-320]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, [fp, #-320]
	add	r3, r3, #1
	str	r3, [fp, #-320]
.L11:
	ldr	r2, [fp, #-320]
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-316]
	add	r3, r3, #1
	str	r3, [fp, #-316]
.L4:
	ldr	r2, [fp, #-316]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	blt	.L13
	ldr	r0, [fp, #-308]
	bl	free
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
