	.file	"140110.c"
	.intel_syntax noprefix
	.text
	.globl	print_bytes_as_ascii
	.type	print_bytes_as_ascii, @function
print_bytes_as_ascii:
.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	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jbe	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 126
	ja	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L4
.L3:
	mov	edi, 46
	call	putchar@PLT
.L4:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	ja	.L5
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_bytes_as_ascii, .-print_bytes_as_ascii
	.section	.rodata
.LC0:
	.string	"%02X"
.LC1:
	.string	"  "
	.text
	.globl	print_hex_segments
	.type	print_hex_segments, @function
print_hex_segments:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jb	.L8
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	and	eax, 3
	test	eax, eax
	jne	.L10
	cmp	DWORD PTR -4[rbp], 23
	je	.L10
	mov	edi, 32
	call	putchar@PLT
.L10:
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 23
	jle	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_hex_segments, .-print_hex_segments
	.globl	get_offset_width
	.type	get_offset_width, @function
get_offset_width:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 15[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 4
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L13
.L14:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 15[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 4
	mov	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L13:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_offset_width, .-get_offset_width
	.section	.rodata
.LC2:
	.string	"Usage: HexView \"PATH-TO-FILE\""
.LC3:
	.string	"rb"
.LC4:
	.string	"File '%s' doesn't exist.\n"
	.align 8
.LC5:
	.string	"Expected file size >= %d bytes, received only %ld.\n"
.LC6:
	.string	"0x%%0%ix  "
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 2
	je	.L17
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	QWORD PTR -56[rbp], 23
	jg	.L20
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, rax
	mov	esi, 24
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
	jmp	.L18
.L20:
	mov	edi, 9
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	get_offset_width
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L21
.L22:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 24
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_hex_segments
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	print_bytes_as_ascii
.L21:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	ftell@PLT
	cmp	QWORD PTR -56[rbp], rax
	jg	.L22
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"140110.c"
	.text
	.align	2
	.global	print_bytes_as_ascii
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_bytes_as_ascii, %function
print_bytes_as_ascii:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	bhi	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L4
.L3:
	mov	r0, #46
	bl	putchar
.L4:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L5
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print_bytes_as_ascii, .-print_bytes_as_ascii
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%02X\000"
	.align	2
.LC1:
	.ascii	"  \000"
	.text
	.align	2
	.global	print_hex_segments
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hex_segments, %function
print_hex_segments:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L11:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bcc	.L8
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L12
	bl	printf
	b	.L9
.L8:
	ldr	r0, .L12+4
	bl	printf
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #23
	beq	.L10
	mov	r0, #32
	bl	putchar
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #23
	ble	.L11
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.size	print_hex_segments, .-print_hex_segments
	.align	2
	.global	get_offset_width
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_offset_width, %function
get_offset_width:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L15
.L16:
	ldr	r3, [fp, #-12]
	add	r2, r3, #15
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_offset_width, .-get_offset_width
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: HexView \"PATH-TO-FILE\"\000"
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"File '%s' doesn't exist.\012\000"
	.align	2
.LC5:
	.ascii	"Expected file size >= %d bytes, received only %ld.\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"0x%%0%ix  \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L19
	ldr	r0, .L26+4
	bl	puts
	mov	r3, #1
	b	.L20
.L19:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L26+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+12
	bl	printf
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, #1
	b	.L20
.L21:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	fseek
	ldr	r0, [fp, #-48]
	bl	ftell
	str	r0, [fp, #-44]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	fseek
	ldr	r3, [fp, #-44]
	cmp	r3, #23
	bgt	.L22
	ldr	r2, [fp, #-44]
	mov	r1, #24
	ldr	r0, .L26+16
	bl	printf
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, #1
	b	.L20
.L22:
	mov	r0, #9
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	get_offset_width
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L26+20
	ldr	r0, [fp, #-40]
	bl	sprintf
	b	.L23
.L24:
	ldr	r0, [fp, #-48]
	bl	ftell
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	printf
	sub	r0, fp, #32
	ldr	r3, [fp, #-48]
	mov	r2, #24
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-36]
	sub	r3, fp, #32
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	print_hex_segments
	ldr	r0, .L26+24
	bl	printf
	sub	r3, fp, #32
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	print_bytes_as_ascii
.L23:
	ldr	r0, [fp, #-48]
	bl	ftell
	mov	r2, r0
	ldr	r3, [fp, #-44]
	cmp	r3, r2
	bgt	.L24
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, #0
.L20:
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
