	.file	"690665.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"fopen"
.LC2:
	.string	"%4.4X  "
.LC3:
	.string	"%2.2X "
.LC4:
	.string	"   "
.LC5:
	.string	"\n%4.4X  "
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	WORD PTR -48[rbp+rax*2], 0
	add	DWORD PTR -64[rbp], 1
.L3:
	cmp	DWORD PTR -64[rbp], 15
	jle	.L4
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	WORD PTR -74[rbp], ax
.L5:
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -72[rbp], edx
	cdqe
	movzx	edx, WORD PTR -74[rbp]
	mov	WORD PTR -48[rbp+rax*2], dx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L6
	mov	DWORD PTR -60[rbp], 1
.L6:
	cmp	WORD PTR -74[rbp], 0
	js	.L7
	cmp	WORD PTR -74[rbp], 255
	jle	.L8
.L7:
	mov	WORD PTR -74[rbp], 0
.L8:
	movsx	eax, WORD PTR -74[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -72[rbp], 16
	jne	.L16
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -64[rbp], 0
	jmp	.L10
.L13:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	movzx	eax, WORD PTR -48[rbp+rax*2]
	movsx	rax, ax
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	movzx	eax, WORD PTR -48[rbp+rax*2]
	cwde
	mov	edi, eax
	call	putchar@PLT
	jmp	.L12
.L11:
	mov	edi, 46
	call	putchar@PLT
.L12:
	add	DWORD PTR -64[rbp], 1
.L10:
	cmp	DWORD PTR -64[rbp], 15
	jle	.L13
	cmp	DWORD PTR -60[rbp], 0
	jne	.L20
	add	DWORD PTR -68[rbp], 16
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -72[rbp], 0
	jmp	.L16
.L20:
	nop
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	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	"690665.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"fopen\000"
	.align	2
.LC2:
	.ascii	"%4.4X  \000"
	.align	2
.LC3:
	.ascii	"%2.2X \000"
	.align	2
.LC4:
	.ascii	"   \000"
	.align	2
.LC5:
	.ascii	"\012%4.4X  \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L21+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L21+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L3
.L4:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #36
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L3:
	ldr	r3, [fp, #-52]
	cmp	r3, #15
	ble	.L4
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r1, [fp, #-56]
	ldr	r0, .L21+12
	bl	printf
.L16:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L5
	ldr	r0, [fp, #-44]
	bl	fgetc
	mov	r3, r0
	strh	r3, [fp, #-62]	@ movhi
.L5:
	ldr	r3, [fp, #-60]
	add	r2, r3, #1
	str	r2, [fp, #-60]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #36
	ldrh	r2, [fp, #-62]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-44]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	mov	r3, #1
	str	r3, [fp, #-48]
.L6:
	ldrsh	r3, [fp, #-62]
	cmp	r3, #0
	blt	.L7
	ldrsh	r3, [fp, #-62]
	cmp	r3, #255
	ble	.L8
.L7:
	mov	r3, #0
	strh	r3, [fp, #-62]	@ movhi
.L8:
	ldrsh	r3, [fp, #-62]
	mov	r1, r3
	ldr	r0, .L21+16
	bl	printf
	ldr	r3, [fp, #-60]
	cmp	r3, #16
	bne	.L16
	ldr	r0, .L21+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L10
.L13:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #1
	sub	r1, fp, #4
	add	r3, r1, r3
	sub	r3, r3, #36
	ldrsh	r3, [r3]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #36
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	putchar
	b	.L12
.L11:
	mov	r0, #46
	bl	putchar
.L12:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L10:
	ldr	r3, [fp, #-52]
	cmp	r3, #15
	ble	.L13
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-56]
	add	r3, r3, #16
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-56]
	ldr	r0, .L21+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L16
.L20:
	nop
	ldr	r0, [fp, #-44]
	bl	fclose
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
