	.file	"485054.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Expecting 2 arguments."
.LC1:
	.string	"--min"
.LC2:
	.string	"--max"
.LC3:
	.string	"--print"
	.align 8
.LC4:
	.string	"First argument must be from the list: --min, --max, --print"
	.align 8
.LC5:
	.string	"Error with determining file length."
	.align 8
.LC6:
	.string	"Error while reading from file."
.LC7:
	.string	"%x\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
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -184[rbp], rax
	cmp	DWORD PTR -212[rbp], 3
	je	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L2:
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L3:
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -196[rbp], eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L4
	lea	rsi, .LC5[rip]
	mov	edi, 2
	mov	eax, 0
	call	err@PLT
.L4:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	DWORD PTR -204[rbp], 0
	mov	DWORD PTR -200[rbp], 0
	jmp	.L5
.L7:
	cmp	QWORD PTR -168[rbp], 2
	je	.L6
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rsi, .LC6[rip]
	mov	edi, 3
	mov	eax, 0
	call	err@PLT
.L6:
	mov	eax, DWORD PTR -200[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -200[rbp], edx
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -208[rbp]
	mov	WORD PTR [rdx], ax
.L5:
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jg	.L7
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -206[rbp], ax
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -204[rbp], 1
.L9:
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L10
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cmp	WORD PTR -206[rbp], ax
	jbe	.L13
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -206[rbp], ax
.L13:
	add	DWORD PTR -204[rbp], 1
.L12:
	mov	eax, DWORD PTR -204[rbp]
	cmp	eax, DWORD PTR -200[rbp]
	jl	.L14
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cmp	WORD PTR -206[rbp], ax
	jnb	.L17
	mov	eax, DWORD PTR -204[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -206[rbp], ax
.L17:
	add	DWORD PTR -204[rbp], 1
.L16:
	mov	eax, DWORD PTR -204[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -112[rbp]
	cmp	rdx, rax
	jl	.L18
.L15:
	movzx	eax, WORD PTR -206[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"485054.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Expecting 2 arguments.\000"
	.align	2
.LC1:
	.ascii	"--min\000"
	.align	2
.LC2:
	.ascii	"--max\000"
	.align	2
.LC3:
	.ascii	"--print\000"
	.align	2
.LC4:
	.ascii	"First argument must be from the list: --min, --max,"
	.ascii	" --print\000"
	.align	2
.LC5:
	.ascii	"Error with determining file length.\000"
	.align	2
.LC6:
	.ascii	"Error while reading from file.\000"
	.align	2
.LC7:
	.ascii	"%x\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-140]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-140]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	beq	.L2
	ldr	r1, .L20+4
	mov	r0, #1
	bl	err
.L2:
	ldr	r1, .L20+8
	ldr	r0, [fp, #-116]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r1, .L20+12
	ldr	r0, [fp, #-116]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r1, .L20+16
	ldr	r0, [fp, #-116]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r1, .L20+20
	mov	r0, #1
	bl	err
.L3:
	mov	r1, #0
	ldr	r0, [fp, #-120]
	bl	open
	str	r0, [fp, #-112]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r1, .L20+24
	mov	r0, #2
	bl	err
.L4:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L5
.L7:
	ldr	r3, [fp, #-104]
	cmp	r3, #2
	beq	.L6
	ldr	r0, [fp, #-108]
	bl	free
	ldr	r0, [fp, #-112]
	bl	close
	ldr	r1, .L20+28
	mov	r0, #3
	bl	err
.L6:
	ldr	r3, [fp, #-124]
	add	r2, r3, #1
	str	r2, [fp, #-124]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrh	r2, [fp, #-132]
	strh	r2, [r3]	@ movhi
.L5:
	sub	r3, fp, #132
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	read
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bgt	.L7
	ldr	r3, [fp, #-108]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-130]	@ movhi
	ldr	r1, .L20+16
	ldr	r0, [fp, #-116]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	b	.L9
.L10:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+32
	bl	printf
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L9:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L10
	ldr	r0, [fp, #-108]
	bl	free
	ldr	r0, [fp, #-112]
	bl	close
	mov	r0, #0
	bl	exit
.L8:
	ldr	r1, .L20+8
	ldr	r0, [fp, #-116]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	b	.L12
.L14:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-130]
	cmp	r2, r3
	bls	.L13
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-130]	@ movhi
.L13:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L12:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-124]
	cmp	r2, r3
	blt	.L14
	b	.L15
.L18:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrh	r3, [r3]
	ldrh	r2, [fp, #-130]
	cmp	r2, r3
	bcs	.L17
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-130]	@ movhi
.L17:
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L16:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	blt	.L18
.L15:
	ldrh	r3, [fp, #-130]
	mov	r1, r3
	ldr	r0, .L20+32
	bl	printf
	ldr	r0, [fp, #-108]
	bl	free
	ldr	r0, [fp, #-112]
	bl	close
	mov	r0, #0
	bl	exit
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
