	.file	"276487.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: %s file\n"
.LC1:
	.string	"rb"
.LC2:
	.string	"%s: %s\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
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 64
	mov	DWORD PTR -16436[rbp], edi
	mov	QWORD PTR -16448[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -16436[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -16448[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16448[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen64@PLT
	mov	QWORD PTR -16408[rbp], rax
	cmp	QWORD PTR -16408[rbp], 0
	jne	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -16448[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L15:
	mov	DWORD PTR -16424[rbp], 0
	mov	DWORD PTR -16420[rbp], 0
	jmp	.L6
.L11:
	mov	rax, QWORD PTR -16408[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -16416[rbp], eax
	cmp	DWORD PTR -16416[rbp], -1
	je	.L17
	mov	rax, QWORD PTR -16408[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -16412[rbp], eax
	cmp	DWORD PTR -16412[rbp], -1
	je	.L18
	mov	eax, DWORD PTR -16412[rbp]
	sal	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -16416[rbp]
	or	eax, edx
	mov	WORD PTR -16426[rbp], ax
	mov	eax, DWORD PTR -16424[rbp]
	cdqe
	movzx	edx, WORD PTR -16426[rbp]
	mov	WORD PTR -16400[rbp+rax*2], dx
	add	DWORD PTR -16424[rbp], 1
	cmp	WORD PTR -16426[rbp], 10
	je	.L19
	add	DWORD PTR -16420[rbp], 1
.L6:
	cmp	DWORD PTR -16420[rbp], 8190
	jle	.L11
	jmp	.L8
.L17:
	nop
	jmp	.L8
.L18:
	nop
	jmp	.L8
.L19:
	nop
.L8:
	cmp	DWORD PTR -16424[rbp], 0
	je	.L20
	movzx	eax, WORD PTR -16400[rbp]
	cmp	ax, 122
	jbe	.L21
	mov	rcx, QWORD PTR stdout[rip]
	mov	eax, DWORD PTR -16424[rbp]
	movsx	rdx, eax
	lea	rax, -16400[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	fwrite@PLT
	jmp	.L5
.L20:
	nop
	jmp	.L5
.L21:
	nop
.L5:
	mov	rax, QWORD PTR -16408[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -16408[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"276487.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s file\012\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"%s: %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16384
	sub	sp, sp, #40
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L22+4
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L22+8
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L2:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L22+12
	mov	r0, r3
	bl	fopen64
	str	r0, [r4, #-16]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L22+4
	ldr	r4, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	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, .L22+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L15:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	b	.L6
.L11:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fgetc
	str	r0, [r4, #-12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	beq	.L17
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fgetc
	str	r0, [r4, #-8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmn	r3, #1
	beq	.L18
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	sub	r2, fp, #16384
	sub	r2, r2, #12
	strh	r3, [r2, #-26]	@ movhi
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	sub	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldrh	r2, [r2, #-26]	@ movhi
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	add	r3, r3, #1
	str	r3, [r2, #-24]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrh	r3, [r3, #-26]
	cmp	r3, #10
	beq	.L19
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r3, #1
	str	r3, [r2, #-20]
.L6:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r2, .L22+20
	cmp	r3, r2
	ble	.L11
	b	.L8
.L17:
	nop
	b	.L8
.L18:
	nop
	b	.L8
.L19:
	nop
.L8:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	beq	.L20
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldrh	r3, [r3, #-4]
	cmp	r3, #122
	bls	.L21
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r2, [r3, #-24]
	ldr	r3, .L22+24
	ldr	r3, [r3]
	sub	r0, fp, #16384
	sub	r0, r0, #12
	sub	r0, r0, #4
	mov	r1, #2
	bl	fwrite
	b	.L5
.L20:
	nop
	b	.L5
.L21:
	nop
.L5:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	fclose
	mov	r3, #0
.L3:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	8190
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
