	.file	"29824563.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"rb"
.LC1:
	.string	"wb"
.LC2:
	.string	"0x%02X, "
.LC3:
	.string	"0x00"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -4180[rbp], edi
	mov	QWORD PTR -4192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4180[rbp], 3
	je	.L2
	call	abort@PLT
.L2:
	mov	rax, QWORD PTR -4192[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -4152[rbp], rax
	mov	rax, QWORD PTR -4192[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -4144[rbp], rax
	mov	rax, QWORD PTR -4144[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4136[rbp], rax
	mov	rax, QWORD PTR -4152[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4128[rbp], rax
	jmp	.L3
.L7:
	mov	rdx, QWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	rcx, rdx
	mov	edx, 4096
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -4120[rbp], rax
	mov	QWORD PTR -4160[rbp], 0
	jmp	.L4
.L6:
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4160[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -4161[rbp], al
	movsx	edx, BYTE PTR -4161[rbp]
	mov	rax, QWORD PTR -4128[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rcx, QWORD PTR -4160[rbp]
	movabs	rdx, 5675921253449092805
	mov	rax, rcx
	mul	rdx
	shr	rdx, 2
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sub	rcx, rax
	mov	rdx, rcx
	cmp	rdx, 12
	jne	.L5
	mov	rax, QWORD PTR -4128[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L5:
	add	QWORD PTR -4160[rbp], 1
.L4:
	mov	rax, QWORD PTR -4160[rbp]
	cmp	rax, QWORD PTR -4120[rbp]
	jb	.L6
.L3:
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -4128[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4128[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"29824563.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"wb\000"
	.align	2
.LC2:
	.ascii	"0x%02X, \000"
	.align	2
.LC3:
	.ascii	"0x00\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #3
	beq	.L2
	bl	abort
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3, #8]
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L10+4
	ldr	r0, [r3, #-20]
	bl	fopen
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L10+8
	ldr	r0, [r3, #-24]
	bl	fopen
	str	r0, [r4, #-12]
	b	.L3
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-16]
	mov	r2, #4096
	mov	r1, #1
	bl	fread
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	b	.L4
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	add	r3, r1, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]
	strb	r3, [r2, #-29]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-29]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L10+12
	ldr	r0, [r0, #-12]
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-28]
	ldr	r3, .L10+16
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #12
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	mov	r0, #10
	bl	fputc
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	add	r3, r3, #1
	str	r3, [r2, #-28]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-28]
	ldr	r3, [r3, #-8]
	cmp	r2, r3
	bcc	.L6
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L10+20
	bl	fwrite
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1321528399
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
