	.file	"154827749.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"cge2bin -x U -y V [--width|-w] N [--height|-h] M input output\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 62
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"width"
.LC2:
	.string	"height"
.LC3:
	.string	"invalid x %d (max %d)\n"
.LC4:
	.string	"invalid y %d (max %d)\n"
.LC5:
	.string	"invalid width %d (min 0)\n"
.LC6:
	.string	"invalid height %d (min 0)\n"
.LC7:
	.string	"rb"
.LC8:
	.string	"failed to open %s: %s\n"
.LC9:
	.string	"wb"
.LC10:
	.string	"source x=%d y=%d w=%d h=%d\n"
.LC11:
	.string	"%d,"
	.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, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -88[rbp], 1
	mov	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -72[rbp], 119
	lea	rax, .LC2[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -56[rbp], 1
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -40[rbp], 104
	movabs	rax, 4213463214432205431
	mov	QWORD PTR -17[rbp], rax
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -164[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	mov	DWORD PTR -156[rbp], 40
	mov	DWORD PTR -152[rbp], 25
.L12:
	mov	DWORD PTR -172[rbp], 0
	lea	rdi, -172[rbp]
	lea	rcx, -96[rbp]
	lea	rdx, -17[rbp]
	mov	rsi, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -168[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	test	eax, eax
	js	.L47
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, 121
	je	.L5
	cmp	eax, 121
	jg	.L6
	cmp	eax, 120
	je	.L7
	cmp	eax, 120
	jg	.L6
	cmp	eax, 104
	je	.L8
	cmp	eax, 119
	je	.L9
	jmp	.L6
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -164[rbp], eax
	jmp	.L10
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -160[rbp], eax
	jmp	.L10
.L9:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -156[rbp], eax
	jmp	.L10
.L8:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -152[rbp], eax
	jmp	.L10
.L6:
	mov	eax, 0
	call	usage
	mov	eax, 1
	jmp	.L44
.L10:
	jmp	.L12
.L47:
	nop
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -180[rbp]
	sub	eax, edx
	cmp	eax, 2
	je	.L13
	mov	eax, 0
	call	usage
	mov	eax, 1
	jmp	.L44
.L13:
	cmp	DWORD PTR -164[rbp], 40
	jle	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -164[rbp]
	mov	ecx, 40
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L44
.L14:
	cmp	DWORD PTR -160[rbp], 25
	jle	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -160[rbp]
	mov	ecx, 25
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L44
.L15:
	cmp	DWORD PTR -156[rbp], 0
	jg	.L16
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -156[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L44
.L16:
	cmp	DWORD PTR -152[rbp], 0
	jg	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -152[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L44
.L17:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -128[rbp], rax
	cmp	QWORD PTR -128[rbp], 0
	jne	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L44
.L18:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L44
.L19:
	cmp	DWORD PTR -156[rbp], 40
	jle	.L20
	mov	DWORD PTR -156[rbp], 40
.L20:
	cmp	DWORD PTR -152[rbp], 25
	jle	.L21
	mov	DWORD PTR -152[rbp], 25
.L21:
	cmp	DWORD PTR -164[rbp], 0
	jns	.L22
	mov	DWORD PTR -164[rbp], 0
.L22:
	cmp	DWORD PTR -160[rbp], 0
	jns	.L23
	mov	DWORD PTR -160[rbp], 0
.L23:
	mov	edx, DWORD PTR -164[rbp]
	mov	eax, DWORD PTR -156[rbp]
	add	eax, edx
	cmp	eax, 40
	jle	.L24
	mov	eax, 40
	sub	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -156[rbp], eax
.L24:
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -152[rbp]
	add	eax, edx
	cmp	eax, 25
	jle	.L25
	mov	eax, 25
	sub	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -152[rbp], eax
.L25:
	mov	esi, DWORD PTR -152[rbp]
	mov	ecx, DWORD PTR -156[rbp]
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1000
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	edi, 1000
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	DWORD PTR -144[rbp], 24
	jmp	.L26
.L31:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L27
.L30:
	lea	rdx, -168[rbp]
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	ecx, DWORD PTR -168[rbp]
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, 255
	jle	.L28
	mov	ecx, -128
	jmp	.L29
.L28:
	mov	ecx, 0
.L29:
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], cl
	add	DWORD PTR -148[rbp], 1
.L27:
	cmp	DWORD PTR -148[rbp], 39
	jle	.L30
	sub	DWORD PTR -144[rbp], 1
.L26:
	cmp	DWORD PTR -144[rbp], 0
	jns	.L31
	mov	DWORD PTR -144[rbp], 24
	jmp	.L32
.L35:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L33
.L34:
	lea	rdx, -168[rbp]
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	sal	eax, 4
	and	eax, 112
	mov	ecx, edx
	or	ecx, eax
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -148[rbp], 1
.L33:
	cmp	DWORD PTR -148[rbp], 39
	jle	.L34
	sub	DWORD PTR -144[rbp], 1
.L32:
	cmp	DWORD PTR -144[rbp], 0
	jns	.L35
	mov	DWORD PTR -144[rbp], 24
	jmp	.L36
.L39:
	mov	DWORD PTR -148[rbp], 0
	jmp	.L37
.L38:
	lea	rdx, -168[rbp]
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	and	eax, 7
	mov	ecx, edx
	or	ecx, eax
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -148[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -148[rbp], 1
.L37:
	cmp	DWORD PTR -148[rbp], 39
	jle	.L38
	sub	DWORD PTR -144[rbp], 1
.L36:
	cmp	DWORD PTR -144[rbp], 0
	jns	.L39
	mov	rax, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -164[rbp]
	add	eax, edx
	mov	DWORD PTR -140[rbp], eax
	mov	DWORD PTR -136[rbp], 0
	jmp	.L40
.L41:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	edx, DWORD PTR -140[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -104[rbp]
	lea	rdi, [rcx+rdx]
	mov	rdx, QWORD PTR -120[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fwrite@PLT
	add	DWORD PTR -140[rbp], 40
	add	DWORD PTR -136[rbp], 1
.L40:
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L41
	mov	edx, DWORD PTR -160[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -164[rbp]
	add	eax, edx
	mov	DWORD PTR -140[rbp], eax
	mov	DWORD PTR -132[rbp], 0
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -156[rbp]
	cdqe
	mov	edx, DWORD PTR -140[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -112[rbp]
	lea	rdi, [rcx+rdx]
	mov	rdx, QWORD PTR -120[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	call	fwrite@PLT
	add	DWORD PTR -140[rbp], 40
	add	DWORD PTR -132[rbp], 1
.L42:
	mov	eax, DWORD PTR -132[rbp]
	cmp	eax, DWORD PTR -152[rbp]
	jl	.L43
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L44:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	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	"154827749.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"width\000"
	.align	2
.LC1:
	.ascii	"height\000"
	.text
	.section	.rodata
	.align	2
.LC3:
	.ascii	"cge2bin -x U -y V [--width|-w] N [--height|-h] M in"
	.ascii	"put output\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #62
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC3
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC6:
	.ascii	"invalid x %d (max %d)\012\000"
	.align	2
.LC7:
	.ascii	"invalid y %d (max %d)\012\000"
	.align	2
.LC8:
	.ascii	"invalid width %d (min 0)\012\000"
	.align	2
.LC9:
	.ascii	"invalid height %d (min 0)\012\000"
	.align	2
.LC10:
	.ascii	"rb\000"
	.align	2
.LC11:
	.ascii	"failed to open %s: %s\012\000"
	.align	2
.LC12:
	.ascii	"wb\000"
	.align	2
.LC13:
	.ascii	"source x=%d y=%d w=%d h=%d\012\000"
	.align	2
.LC14:
	.ascii	"%d,\000"
	.align	2
.LC4:
	.word	.LC0
	.word	1
	.word	0
	.word	119
	.word	.LC1
	.word	1
	.word	0
	.word	104
	.align	2
.LC5:
	.ascii	"w:h:x:y:\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L51+4
	sub	ip, fp, #60
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, .L51+8
	sub	r3, fp, #28
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #40
	str	r3, [fp, #-104]
	mov	r3, #25
	str	r3, [fp, #-100]
.L15:
	mov	r3, #0
	str	r3, [fp, #-120]
	sub	r1, fp, #60
	sub	r2, fp, #28
	sub	r3, fp, #120
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-128]
	bl	getopt_long
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L50
	ldr	r3, [fp, #-116]
	sub	r3, r3, #104
	cmp	r3, #17
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L11
	.word	.L10
	.word	.L8
.L10:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-112]
	b	.L13
.L8:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-108]
	b	.L13
.L11:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-104]
	b	.L13
.L12:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-100]
	b	.L13
.L7:
	bl	usage
	mov	r3, #1
	b	.L47
.L13:
	b	.L15
.L50:
	nop
	ldr	r3, .L51+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	sub	r3, r2, r3
	cmp	r3, #2
	beq	.L16
	bl	usage
	mov	r3, #1
	b	.L47
.L16:
	ldr	r3, [fp, #-112]
	cmp	r3, #40
	ble	.L17
	ldr	r3, .L51+20
	ldr	r0, [r3]
	mov	r3, #40
	ldr	r2, [fp, #-112]
	ldr	r1, .L51+24
	bl	fprintf
	mov	r3, #1
	b	.L47
.L17:
	ldr	r3, [fp, #-108]
	cmp	r3, #25
	ble	.L18
	ldr	r3, .L51+20
	ldr	r0, [r3]
	mov	r3, #25
	ldr	r2, [fp, #-108]
	ldr	r1, .L51+28
	bl	fprintf
	mov	r3, #1
	b	.L47
.L18:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bgt	.L19
	ldr	r3, .L51+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	ldr	r1, .L51+32
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L19:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bgt	.L20
	ldr	r3, .L51+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-100]
	ldr	r1, .L51+36
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L47
.L20:
	ldr	r3, .L51+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L51+40
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L51+20
	ldr	r4, [r3]
	ldr	r3, .L51+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L51+44
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L47
.L21:
	ldr	r3, .L51+16
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L51+48
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L51+20
	ldr	r4, [r3]
	ldr	r3, .L51+16
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L51+44
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-76]
	bl	fclose
	mov	r3, #1
	b	.L47
.L22:
	ldr	r3, [fp, #-104]
	cmp	r3, #40
	ble	.L23
	mov	r3, #40
	str	r3, [fp, #-104]
.L23:
	ldr	r3, [fp, #-100]
	cmp	r3, #25
	ble	.L24
	mov	r3, #25
	str	r3, [fp, #-100]
.L24:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L25
	mov	r3, #0
	str	r3, [fp, #-112]
.L25:
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bge	.L26
	mov	r3, #0
	str	r3, [fp, #-108]
.L26:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	cmp	r3, #40
	ble	.L27
	ldr	r3, [fp, #-112]
	rsb	r3, r3, #40
	str	r3, [fp, #-104]
.L27:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	cmp	r3, #25
	ble	.L28
	ldr	r3, [fp, #-112]
	rsb	r3, r3, #25
	str	r3, [fp, #-100]
.L28:
	ldr	r3, [fp, #-100]
	str	r3, [sp]
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-108]
	ldr	r1, [fp, #-112]
	ldr	r0, .L51+52
	bl	printf
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	mov	r0, #1000
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-64]
	mov	r3, #24
	str	r3, [fp, #-92]
	b	.L29
.L34:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L30
.L33:
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L51+56
	ldr	r0, [fp, #-76]
	bl	__isoc99_fscanf
	ldr	r1, [fp, #-116]
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-68]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-116]
	cmp	r3, #255
	ble	.L31
	mov	r1, #128
	b	.L32
.L31:
	mov	r1, #0
.L32:
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L30:
	ldr	r3, [fp, #-96]
	cmp	r3, #39
	ble	.L33
	ldr	r3, [fp, #-92]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
.L29:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L34
	mov	r3, #24
	str	r3, [fp, #-92]
	b	.L35
.L38:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L36
.L37:
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L51+56
	ldr	r0, [fp, #-76]
	bl	__isoc99_fscanf
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #112
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L36:
	ldr	r3, [fp, #-96]
	cmp	r3, #39
	ble	.L37
	ldr	r3, [fp, #-92]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
.L35:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L38
	mov	r3, #24
	str	r3, [fp, #-92]
	b	.L39
.L42:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L40
.L41:
	sub	r3, fp, #116
	mov	r2, r3
	ldr	r1, .L51+56
	ldr	r0, [fp, #-76]
	bl	__isoc99_fscanf
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-116]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #7
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r1, r3, #24
	ldr	r2, [fp, #-92]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L40:
	ldr	r3, [fp, #-96]
	cmp	r3, #39
	ble	.L41
	ldr	r3, [fp, #-92]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
.L39:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bge	.L42
	ldr	r0, [fp, #-76]
	bl	fclose
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-112]
	add	r3, r3, r2
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L43
.L44:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-64]
	add	r0, r2, r3
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-72]
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-88]
	add	r3, r3, #40
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L43:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L44
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-112]
	add	r3, r3, r2
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L45
.L46:
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-68]
	add	r0, r2, r3
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-72]
	mov	r1, #1
	bl	fwrite
	ldr	r3, [fp, #-88]
	add	r3, r3, #40
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L45:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L46
	ldr	r0, [fp, #-72]
	bl	fclose
	ldr	r0, [fp, #-68]
	bl	free
	ldr	r0, [fp, #-64]
	bl	free
	mov	r3, #0
.L47:
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC15
	.word	.LC4
	.word	.LC5
	.word	optarg
	.word	optind
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
