	.file	"709143.c"
	.intel_syntax noprefix
	.text
	.globl	get_file_offset
	.type	get_file_offset, @function
get_file_offset:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 1
	sal	rax, 3
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 8
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_file_offset, .-get_file_offset
	.section	.rodata
.LC0:
	.string	"rb"
	.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, 2464
	mov	DWORD PTR -2452[rbp], edi
	mov	QWORD PTR -2464[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2416[rbp], 0
	mov	QWORD PTR -2408[rbp], 0
	mov	DWORD PTR -2436[rbp], 2048
	mov	rax, QWORD PTR -2464[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2400[rbp], rax
	mov	rax, QWORD PTR -2464[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2392[rbp], rax
	mov	rax, QWORD PTR -2464[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoll@PLT
	mov	QWORD PTR -2384[rbp], rax
	mov	rax, QWORD PTR -2464[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -2352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -2464[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -2208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -2304[rbp]
	mov	QWORD PTR -2376[rbp], rax
	mov	rax, QWORD PTR -2160[rbp]
	shr	rax, 3
	mov	QWORD PTR -2368[rbp], rax
	mov	rdx, QWORD PTR -2384[rbp]
	mov	rax, QWORD PTR -2392[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_file_offset
	mov	QWORD PTR -2360[rbp], rax
	mov	rax, QWORD PTR -2376[rbp]
	mov	QWORD PTR -2432[rbp], rax
	mov	rax, QWORD PTR -2360[rbp]
	mov	QWORD PTR -2424[rbp], rax
	mov	rax, QWORD PTR -2384[rbp]
	cmp	rax, QWORD PTR -2368[rbp]
	jge	.L5
	mov	rax, QWORD PTR -2384[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -2392[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_file_offset
	sub	rax, 1
	mov	QWORD PTR -2432[rbp], rax
.L5:
	mov	rcx, QWORD PTR -2360[rbp]
	mov	rax, QWORD PTR -2400[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -2436[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -2424[rbp]
	add	rax, rdx
	cmp	QWORD PTR -2432[rbp], rax
	jge	.L7
	mov	rax, QWORD PTR -2432[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -2424[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -2436[rbp], eax
.L7:
	mov	eax, DWORD PTR -2436[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -2400[rbp]
	lea	rax, -2064[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rcx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -2436[rbp]
	movsx	rdx, eax
	lea	rax, -2064[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -2436[rbp]
	cdqe
	add	QWORD PTR -2424[rbp], rax
.L6:
	mov	rax, QWORD PTR -2424[rbp]
	cmp	rax, QWORD PTR -2432[rbp]
	jl	.L8
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -2400[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2392[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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	"709143.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_file_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_file_offset, %function
get_file_offset:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	mov	r3, r4
	lsl	r3, r3, #3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	fseek
	sub	r0, fp, #28
	ldr	r3, [fp, #-32]
	mov	r2, #1
	mov	r1, #8
	bl	fread
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	mov	r3, r2
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	get_file_offset, .-get_file_offset
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2304
	str	r0, [fp, #-2312]
	str	r1, [fp, #-2316]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-2276]
	str	r3, [fp, #-2272]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-2268]
	str	r3, [fp, #-2264]
	mov	r3, #2048
	str	r3, [fp, #-2304]
	ldr	r3, [fp, #-2316]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2292]
	ldr	r3, [fp, #-2316]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2288]
	ldr	r3, [fp, #-2316]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoll
	str	r0, [fp, #-2260]
	str	r1, [fp, #-2256]
	ldr	r3, [fp, #-2316]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #2224
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	stat
	ldr	r3, [fp, #-2316]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #2144
	sub	r2, r2, #12
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-2200]
	str	r3, [fp, #-2284]
	ldr	r3, [fp, #-2112]
	lsr	r3, r3, #3
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-2252]
	str	r3, [fp, #-2248]
	ldr	r2, [fp, #-2260]
	ldr	r3, [fp, #-2256]
	ldr	r0, [fp, #-2288]
	bl	get_file_offset
	str	r0, [fp, #-2280]
	ldr	r3, [fp, #-2284]
	str	r3, [fp, #-2300]
	ldr	r3, [fp, #-2280]
	str	r3, [fp, #-2296]
	ldr	r0, [fp, #-2260]
	ldr	r1, [fp, #-2256]
	ldr	r2, [fp, #-2252]
	ldr	r3, [fp, #-2248]
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L7
	ldr	r2, [fp, #-2260]
	ldr	r3, [fp, #-2256]
	adds	r4, r2, #1
	adc	r5, r3, #0
	mov	r2, r4
	mov	r3, r5
	ldr	r0, [fp, #-2288]
	bl	get_file_offset
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-2300]
.L7:
	mov	r2, #0
	ldr	r1, [fp, #-2280]
	ldr	r0, [fp, #-2292]
	bl	fseek
	b	.L8
.L10:
	ldr	r2, [fp, #-2296]
	ldr	r3, [fp, #-2304]
	add	r3, r2, r3
	ldr	r2, [fp, #-2300]
	cmp	r2, r3
	bge	.L9
	ldr	r2, [fp, #-2300]
	ldr	r3, [fp, #-2296]
	sub	r3, r2, r3
	str	r3, [fp, #-2304]
.L9:
	ldr	r2, [fp, #-2304]
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2292]
	mov	r1, #1
	bl	fread
	ldr	r2, [fp, #-2304]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	mov	r1, #1
	bl	fwrite
	ldr	r2, [fp, #-2296]
	ldr	r3, [fp, #-2304]
	add	r3, r2, r3
	str	r3, [fp, #-2296]
.L8:
	ldr	r2, [fp, #-2296]
	ldr	r3, [fp, #-2300]
	cmp	r2, r3
	blt	.L10
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-2292]
	bl	fclose
	ldr	r0, [fp, #-2288]
	bl	fclose
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC1
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
