	.file	"877208.c"
	.intel_syntax noprefix
	.text
	.globl	block
	.bss
	.align 8
	.type	block, @object
	.size	block, 8
block:
	.zero	8
	.globl	blockout
	.align 8
	.type	blockout, @object
	.size	blockout, 8
blockout:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Reading: %s\n"
.LC1:
	.string	"rb"
.LC2:
	.string	"%127s\n"
.LC3:
	.string	"%d %d\n"
.LC4:
	.string	"%d\n"
.LC5:
	.string	"Error: cannot open %s\n"
.LC6:
	.string	"Error: depth not valid.\n"
.LC7:
	.string	"Read %d rows\n"
.LC8:
	.string	"Read done.  (%d,%d,%d)\n"
.LC9:
	.string	"MIN: %d / MAX: %d\n"
.LC10:
	.string	"wb"
.LC11:
	.string	"data.bin"
.LC12:
	.string	"Final sizes: %d, %d, %d\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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -292[rbp]
	sub	eax, 1
	mov	DWORD PTR -260[rbp], eax
	mov	DWORD PTR -264[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -264[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cmp	DWORD PTR -260[rbp], eax
	jg	.L3
	mov	eax, DWORD PTR -264[rbp]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -260[rbp], eax
	jmp	.L4
.L3:
	add	DWORD PTR -264[rbp], 1
.L2:
	cmp	DWORD PTR -264[rbp], 31
	jle	.L5
.L4:
	mov	DWORD PTR -264[rbp], 1
	jmp	.L6
.L11:
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -152[rbp], rax
	lea	rdx, -144[rbp]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rcx, -272[rbp]
	lea	rdx, -276[rbp]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	lea	rdx, -268[rbp]
	mov	rax, QWORD PTR -152[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -276[rbp]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -272[rbp]
	test	eax, eax
	jne	.L8
.L7:
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 6
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -268[rbp]
	cmp	eax, 65535
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 7
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR block[rip]
	test	rax, rax
	jne	.L10
	mov	edx, DWORD PTR -276[rbp]
	mov	eax, DWORD PTR -272[rbp]
	imul	eax, edx
	imul	eax, DWORD PTR -260[rbp]
	add	eax, eax
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR block[rip], rax
.L10:
	mov	eax, DWORD PTR -272[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	eax, DWORD PTR -276[rbp]
	cdqe
	mov	rdi, QWORD PTR block[rip]
	mov	ecx, DWORD PTR -264[rbp]
	lea	esi, -1[rcx]
	mov	ecx, DWORD PTR -276[rbp]
	imul	esi, ecx
	mov	ecx, DWORD PTR -272[rbp]
	imul	ecx, esi
	movsx	rcx, ecx
	add	rcx, rcx
	add	rdi, rcx
	mov	rcx, QWORD PTR -152[rbp]
	mov	rsi, rax
	call	fread@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -264[rbp], 1
.L6:
	mov	eax, DWORD PTR -264[rbp]
	cmp	eax, DWORD PTR -292[rbp]
	jl	.L11
	mov	edx, DWORD PTR -272[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	ecx, DWORD PTR -260[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -220[rbp], 128
	mov	DWORD PTR -216[rbp], 128
	mov	DWORD PTR -212[rbp], 32
	mov	eax, DWORD PTR -220[rbp]
	imul	eax, DWORD PTR -216[rbp]
	imul	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR blockout[rip], rax
	mov	edx, DWORD PTR -276[rbp]
	mov	eax, DWORD PTR -272[rbp]
	imul	eax, edx
	mov	DWORD PTR -208[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	imul	eax, DWORD PTR -216[rbp]
	mov	DWORD PTR -204[rbp], eax
	mov	DWORD PTR -244[rbp], 0
	mov	DWORD PTR -240[rbp], 1000000
	mov	DWORD PTR -248[rbp], 0
	jmp	.L12
.L25:
	mov	DWORD PTR -252[rbp], 0
	jmp	.L13
.L24:
	mov	DWORD PTR -256[rbp], 0
	jmp	.L14
.L23:
	mov	DWORD PTR -236[rbp], 0
	mov	eax, DWORD PTR -276[rbp]
	cdq
	idiv	DWORD PTR -220[rbp]
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -272[rbp]
	cdq
	idiv	DWORD PTR -216[rbp]
	mov	DWORD PTR -184[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	cdq
	idiv	DWORD PTR -212[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	DWORD PTR -224[rbp], 0
	jmp	.L15
.L20:
	mov	DWORD PTR -228[rbp], 0
	jmp	.L16
.L19:
	mov	DWORD PTR -232[rbp], 0
	jmp	.L17
.L18:
	mov	rcx, QWORD PTR block[rip]
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, DWORD PTR -188[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -232[rbp]
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -252[rbp]
	imul	eax, DWORD PTR -184[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -228[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -276[rbp]
	imul	eax, edx
	add	esi, eax
	mov	eax, DWORD PTR -248[rbp]
	imul	eax, DWORD PTR -180[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -224[rbp]
	add	eax, edx
	imul	eax, DWORD PTR -208[rbp]
	add	eax, esi
	cdqe
	add	rax, rax
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	DWORD PTR -236[rbp], eax
	add	DWORD PTR -232[rbp], 1
.L17:
	mov	eax, DWORD PTR -232[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L18
	add	DWORD PTR -228[rbp], 1
.L16:
	mov	eax, DWORD PTR -228[rbp]
	cmp	eax, DWORD PTR -184[rbp]
	jl	.L19
	add	DWORD PTR -224[rbp], 1
.L15:
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L20
	mov	eax, DWORD PTR -180[rbp]
	imul	eax, DWORD PTR -184[rbp]
	imul	eax, DWORD PTR -188[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR -236[rbp]
	cdq
	idiv	edi
	mov	DWORD PTR -176[rbp], eax
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -240[rbp]
	jge	.L21
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -240[rbp], eax
.L21:
	mov	eax, DWORD PTR -176[rbp]
	cmp	eax, DWORD PTR -244[rbp]
	jle	.L22
	mov	eax, DWORD PTR -176[rbp]
	mov	DWORD PTR -244[rbp], eax
.L22:
	mov	eax, DWORD PTR -176[rbp]
	sub	eax, 6778
	movsx	rdx, eax
	imul	rdx, rdx, -368140053
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	sar	eax, 31
	mov	esi, edx
	sub	esi, eax
	mov	rdx, QWORD PTR blockout[rip]
	mov	eax, DWORD PTR -252[rbp]
	imul	eax, DWORD PTR -220[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -256[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -248[rbp]
	imul	eax, DWORD PTR -204[rbp]
	add	eax, ecx
	cdqe
	add	rax, rdx
	mov	edx, esi
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -256[rbp], 1
.L14:
	mov	eax, DWORD PTR -256[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jl	.L23
	add	DWORD PTR -252[rbp], 1
.L13:
	mov	eax, DWORD PTR -252[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	jl	.L24
	add	DWORD PTR -248[rbp], 1
.L12:
	mov	eax, DWORD PTR -248[rbp]
	cmp	eax, DWORD PTR -212[rbp]
	jl	.L25
	mov	rax, QWORD PTR block[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -220[rbp]
	imul	eax, DWORD PTR -216[rbp]
	imul	eax, DWORD PTR -212[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -220[rbp]
	imul	eax, DWORD PTR -216[rbp]
	imul	eax, DWORD PTR -212[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -212[rbp]
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR -216[rbp]
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	mov	DWORD PTR -192[rbp], eax
	mov	DWORD PTR -248[rbp], 0
	jmp	.L26
.L31:
	mov	DWORD PTR -252[rbp], 0
	jmp	.L27
.L30:
	mov	DWORD PTR -256[rbp], 0
	jmp	.L28
.L29:
	mov	rdx, QWORD PTR blockout[rip]
	mov	eax, DWORD PTR -252[rbp]
	imul	eax, DWORD PTR -220[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -256[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -248[rbp]
	imul	eax, DWORD PTR -204[rbp]
	add	eax, ecx
	cdqe
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -252[rbp]
	imul	eax, DWORD PTR -200[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -248[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -256[rbp]
	imul	eax, DWORD PTR -200[rbp]
	imul	eax, DWORD PTR -196[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -256[rbp], 1
.L28:
	mov	eax, DWORD PTR -256[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jl	.L29
	add	DWORD PTR -252[rbp], 1
.L27:
	mov	eax, DWORD PTR -252[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	jl	.L30
	add	DWORD PTR -248[rbp], 1
.L26:
	mov	eax, DWORD PTR -248[rbp]
	cmp	eax, DWORD PTR -212[rbp]
	jl	.L31
	mov	edx, DWORD PTR -244[rbp]
	mov	eax, DWORD PTR -240[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	eax, DWORD PTR -216[rbp]
	imul	eax, DWORD PTR -212[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -220[rbp]
	movsx	rsi, eax
	mov	rcx, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	ecx, DWORD PTR -192[rbp]
	mov	edx, DWORD PTR -196[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	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	"877208.c"
	.text
	.comm	block,4,4
	.comm	blockout,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Reading: %s\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"%127s\012\000"
	.align	2
.LC3:
	.ascii	"%d %d\012\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"Error: cannot open %s\012\000"
	.align	2
.LC6:
	.ascii	"Error: depth not valid.\012\000"
	.align	2
.LC7:
	.ascii	"Read %d rows\012\000"
	.align	2
.LC8:
	.ascii	"Read done.  (%d,%d,%d)\012\000"
	.global	__aeabi_idiv
	.align	2
.LC9:
	.ascii	"MIN: %d / MAX: %d\012\000"
	.align	2
.LC10:
	.ascii	"wb\000"
	.align	2
.LC11:
	.ascii	"data.bin\000"
	.align	2
.LC12:
	.ascii	"Final sizes: %d, %d, %d\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #264
	str	r0, [fp, #-264]
	str	r1, [fp, #-268]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-264]
	sub	r3, r3, #1
	str	r3, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-244]
	b	.L2
.L5:
	mov	r2, #1
	ldr	r3, [fp, #-244]
	lsl	r3, r2, r3
	ldr	r2, [fp, #-240]
	cmp	r2, r3
	bgt	.L3
	mov	r2, #1
	ldr	r3, [fp, #-244]
	lsl	r3, r2, r3
	str	r3, [fp, #-240]
	b	.L4
.L3:
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L2:
	ldr	r3, [fp, #-244]
	cmp	r3, #31
	ble	.L5
.L4:
	mov	r3, #1
	str	r3, [fp, #-244]
	b	.L6
.L11:
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-268]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+4
	bl	printf
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-268]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L34+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-144]
	sub	r3, fp, #136
	mov	r2, r3
	ldr	r1, .L34+12
	ldr	r0, [fp, #-144]
	bl	__isoc99_fscanf
	sub	r3, fp, #252
	sub	r2, fp, #256
	ldr	r1, .L34+16
	ldr	r0, [fp, #-144]
	bl	__isoc99_fscanf
	sub	r3, fp, #248
	mov	r2, r3
	ldr	r1, .L34+20
	ldr	r0, [fp, #-144]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-256]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-252]
	cmp	r3, #0
	bne	.L8
.L7:
	ldr	r3, .L34+24
	ldr	r0, [r3]
	ldr	r3, [fp, #-244]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-268]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L34+28
	bl	fprintf
	mov	r0, #6
	bl	exit
.L8:
	ldr	r3, [fp, #-248]
	ldr	r2, .L34+32
	cmp	r3, r2
	beq	.L9
	ldr	r3, .L34+24
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L34+36
	bl	fwrite
	mov	r0, #7
	bl	exit
.L9:
	ldr	r3, .L34+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-256]
	ldr	r2, [fp, #-252]
	mul	r3, r2, r3
	ldr	r2, [fp, #-240]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L34+40
	str	r2, [r3]
.L10:
	ldr	r3, .L34+40
	ldr	r2, [r3]
	ldr	r3, [fp, #-244]
	sub	r3, r3, #1
	ldr	r1, [fp, #-256]
	mul	r3, r1, r3
	ldr	r1, [fp, #-252]
	mul	r3, r1, r3
	lsl	r3, r3, #1
	add	r0, r2, r3
	ldr	r3, [fp, #-256]
	mov	r1, r3
	ldr	r3, [fp, #-252]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-144]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r1, [fp, #-140]
	ldr	r0, .L34+44
	bl	printf
	ldr	r0, [fp, #-144]
	bl	fclose
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L6:
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-264]
	cmp	r2, r3
	blt	.L11
	ldr	r1, [fp, #-256]
	ldr	r2, [fp, #-252]
	ldr	r3, [fp, #-240]
	ldr	r0, .L34+48
	bl	printf
	mov	r3, #128
	str	r3, [fp, #-200]
	mov	r3, #128
	str	r3, [fp, #-196]
	mov	r3, #32
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-196]
	mul	r3, r2, r3
	ldr	r2, [fp, #-192]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L34+52
	str	r2, [r3]
	ldr	r3, [fp, #-256]
	ldr	r2, [fp, #-252]
	mul	r3, r2, r3
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-196]
	mul	r3, r2, r3
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-224]
	ldr	r3, .L34+56
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L12
.L25:
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L13
.L24:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L14
.L23:
	mov	r3, #0
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-256]
	ldr	r1, [fp, #-200]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-252]
	ldr	r1, [fp, #-196]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-156]
	ldr	r1, [fp, #-192]
	ldr	r0, [fp, #-240]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-204]
	b	.L15
.L20:
	mov	r3, #0
	str	r3, [fp, #-208]
	b	.L16
.L19:
	mov	r3, #0
	str	r3, [fp, #-212]
	b	.L17
.L18:
	ldr	r3, .L34+40
	ldr	r2, [r3]
	ldr	r3, [fp, #-236]
	ldr	r1, [fp, #-160]
	mul	r1, r3, r1
	ldr	r3, [fp, #-212]
	add	r1, r1, r3
	ldr	r3, [fp, #-232]
	ldr	r0, [fp, #-156]
	mul	r0, r3, r0
	ldr	r3, [fp, #-208]
	add	r3, r0, r3
	ldr	r0, [fp, #-256]
	mul	r3, r0, r3
	add	r1, r1, r3
	ldr	r3, [fp, #-228]
	ldr	r0, [fp, #-152]
	mul	r0, r3, r0
	ldr	r3, [fp, #-204]
	add	r3, r0, r3
	ldr	r0, [fp, #-188]
	mul	r3, r0, r3
	add	r3, r1, r3
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-216]
	add	r3, r3, r2
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-212]
	add	r3, r3, #1
	str	r3, [fp, #-212]
.L17:
	ldr	r2, [fp, #-212]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L16:
	ldr	r2, [fp, #-208]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
.L15:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L20
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-156]
	mul	r3, r2, r3
	ldr	r2, [fp, #-160]
	mul	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-216]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-148]
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-220]
	cmp	r2, r3
	bge	.L21
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-220]
.L21:
	ldr	r2, [fp, #-148]
	ldr	r3, [fp, #-224]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-224]
.L22:
	ldr	r3, [fp, #-148]
	sub	r3, r3, #6720
	sub	r3, r3, #58
	ldr	r2, .L34+60
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #7
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L34+52
	ldr	r3, [r3]
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-200]
	mul	r0, r1, r0
	ldr	r1, [fp, #-236]
	add	r0, r0, r1
	ldr	r1, [fp, #-228]
	ldr	ip, [fp, #-184]
	mul	r1, ip, r1
	add	r1, r0, r1
	add	r3, r3, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L14:
	ldr	r2, [fp, #-236]
	ldr	r3, [fp, #-200]
	cmp	r2, r3
	blt	.L23
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L13:
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-196]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L12:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	blt	.L25
	ldr	r3, .L34+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-196]
	mul	r3, r2, r3
	ldr	r2, [fp, #-192]
	mul	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-196]
	mul	r3, r2, r3
	ldr	r2, [fp, #-192]
	mul	r3, r2, r3
	mov	r2, r3
	mov	r1, #255
	ldr	r0, [fp, #-180]
	bl	memset
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-196]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-200]
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L26
.L31:
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L27
.L30:
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L28
.L29:
	ldr	r3, .L34+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-232]
	ldr	r1, [fp, #-200]
	mul	r1, r2, r1
	ldr	r2, [fp, #-236]
	add	r1, r1, r2
	ldr	r2, [fp, #-228]
	ldr	r0, [fp, #-184]
	mul	r2, r0, r2
	add	r2, r1, r2
	add	r2, r3, r2
	ldr	r3, [fp, #-232]
	ldr	r1, [fp, #-176]
	mul	r1, r3, r1
	ldr	r3, [fp, #-228]
	add	r1, r1, r3
	ldr	r3, [fp, #-236]
	ldr	r0, [fp, #-176]
	mul	r3, r0, r3
	ldr	r0, [fp, #-172]
	mul	r3, r0, r3
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-180]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L28:
	ldr	r2, [fp, #-236]
	ldr	r3, [fp, #-200]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L27:
	ldr	r2, [fp, #-232]
	ldr	r3, [fp, #-196]
	cmp	r2, r3
	blt	.L30
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L26:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-192]
	cmp	r2, r3
	blt	.L31
	ldr	r2, [fp, #-224]
	ldr	r1, [fp, #-220]
	ldr	r0, .L34+64
	bl	printf
	ldr	r1, .L34+68
	ldr	r0, .L34+72
	bl	fopen
	str	r0, [fp, #-164]
	ldr	r1, [fp, #-200]
	ldr	r3, [fp, #-196]
	ldr	r2, [fp, #-192]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-164]
	ldr	r0, [fp, #-180]
	bl	fwrite
	ldr	r0, [fp, #-164]
	bl	fclose
	ldr	r3, [fp, #-168]
	ldr	r2, [fp, #-172]
	ldr	r1, [fp, #-176]
	ldr	r0, .L34+76
	bl	printf
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	65535
	.word	.LC6
	.word	block
	.word	.LC7
	.word	.LC8
	.word	blockout
	.word	1000000
	.word	-368140053
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
