	.file	"723654.c"
	.intel_syntax noprefix
	.text
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 8192
buf:
	.zero	8192
	.globl	rotostring
	.align 16
	.type	rotostring, @object
	.size	rotostring, 16
rotostring:
	.zero	16
	.globl	bufptr
	.align 8
	.type	bufptr, @object
	.size	bufptr, 8
bufptr:
	.zero	8
	.globl	maxbuf
	.align 4
	.type	maxbuf, @object
	.size	maxbuf, 4
maxbuf:
	.zero	4
	.globl	rsi
	.align 4
	.type	rsi, @object
	.size	rsi, 4
rsi:
	.zero	4
	.text
	.globl	read_buf
	.type	read_buf, @function
read_buf:
.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, 16
	mov	rax, QWORD PTR stdin[rip]
	mov	rcx, rax
	mov	edx, 8192
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	mov	QWORD PTR -8[rbp], rax
	lea	rax, buf[rip]
	mov	QWORD PTR bufptr[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR maxbuf[rip], eax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_buf, .-read_buf
	.globl	next_byte
	.type	next_byte, @function
next_byte:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR maxbuf[rip]
	cdqe
	lea	rdx, -1[rax]
	lea	rax, buf[rip]
	add	rdx, rax
	mov	rax, QWORD PTR bufptr[rip]
	cmp	rdx, rax
	jnb	.L5
	mov	eax, 0
	call	read_buf
	test	eax, eax
	jns	.L5
	mov	eax, -1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR bufptr[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR bufptr[rip], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	next_byte, .-next_byte
	.globl	push_rotobyte
	.type	push_rotobyte, @function
push_rotobyte:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	eax, DWORD PTR rsi[rip]
	add	eax, 1
	cdq
	shr	edx, 28
	add	eax, edx
	and	eax, 15
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, rotostring[rip]
	movzx	edx, BYTE PTR -20[rbp]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR rsi[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	push_rotobyte, .-push_rotobyte
	.globl	test_rotostring
	.type	test_rotostring, @function
test_rotostring:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L10
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, rdx
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR rsi[rip]
	sub	eax, DWORD PTR -4[rbp]
	add	eax, 16
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 28
	add	eax, ecx
	and	eax, 15
	sub	eax, ecx
	cdqe
	lea	rcx, rotostring[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	je	.L10
	mov	eax, 0
	jmp	.L11
.L10:
	add	DWORD PTR -4[rbp], 1
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -40[rbp], rax
	ja	.L12
	mov	eax, 1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	test_rotostring, .-test_rotostring
	.globl	start_str
	.data
	.type	start_str, @object
	.size	start_str, 3
start_str:
	.ascii	"\377\330\377"
	.globl	end_str
	.type	end_str, @object
	.size	end_str, 2
end_str:
	.ascii	"\377\331"
	.globl	end_mask
	.type	end_mask, @object
	.size	end_mask, 2
end_mask:
	.ascii	"\001\001"
	.globl	jfif_str
	.align 8
	.type	jfif_str, @object
	.size	jfif_str, 11
jfif_str:
	.string	"\377\330\377\340\356\356JFIF"
	.globl	jfif_mask
	.align 8
	.type	jfif_mask, @object
	.size	jfif_mask, 11
jfif_mask:
	.string	"\001\001\001\001"
	.string	""
	.ascii	"\001\001\001\001\001"
	.globl	spiff_str
	.align 8
	.type	spiff_str, @object
	.size	spiff_str, 12
spiff_str:
	.string	"\377\330\377\350\356\356SPIFF"
	.globl	spiff_mask
	.align 8
	.type	spiff_mask, @object
	.size	spiff_mask, 12
spiff_mask:
	.string	"\001\001\001\001"
	.string	""
	.ascii	"\001\001\001\001\001\001"
	.globl	exif_str
	.align 8
	.type	exif_str, @object
	.size	exif_str, 11
exif_str:
	.string	"\377\330\377\341\356\356Exif"
	.globl	exif_mask
	.align 8
	.type	exif_mask, @object
	.size	exif_mask, 11
exif_mask:
	.string	"\001\001\001\001"
	.string	""
	.ascii	"\001\001\001\001\001"
	.globl	headerstrings
	.section	.rodata
.LC0:
	.string	"jfif"
.LC1:
	.string	"spiff"
.LC2:
	.string	"exif"
	.section	.data.rel.local,"aw"
	.align 32
	.type	headerstrings, @object
	.size	headerstrings, 96
headerstrings:
	.quad	jfif_str
	.quad	jfif_mask
	.quad	.LC0
	.long	11
	.zero	4
	.quad	spiff_str
	.quad	spiff_mask
	.quad	.LC1
	.long	12
	.zero	4
	.quad	exif_str
	.quad	exif_mask
	.quad	.LC2
	.long	11
	.zero	4
	.globl	opt_maxsz
	.bss
	.align 4
	.type	opt_maxsz, @object
	.size	opt_maxsz, 4
opt_maxsz:
	.zero	4
	.globl	opt_skipbytes
	.align 4
	.type	opt_skipbytes, @object
	.size	opt_skipbytes, 4
opt_skipbytes:
	.zero	4
	.section	.rodata
.LC3:
	.string	"%s %lld %lld\n"
	.text
	.type	output_img.0, @function
output_img.0:
.LFB11:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, r10
	mov	QWORD PTR -8[rbp], r10
	mov	rdx, QWORD PTR 16[rax]
	lea	rcx, 1[rdx]
	mov	rdx, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 24[rdx]
	movsx	rdx, edx
	sub	rcx, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR 16[rdx]
	mov	rdi, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR [rax]
	mov	r8, rax
	lea	rsi, .LC3[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	output_img.0, .-output_img.0
	.globl	read_through
	.type	read_through, @function
read_through:
.LFB10:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -72[rbp], 0
	mov	rax, -1
	mov	QWORD PTR -32[rbp], rax
	mov	eax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -64[rbp], 0
	mov	eax, 0
	mov	QWORD PTR -40[rbp], rax
	jmp	.L15
.L24:
	mov	eax, DWORD PTR -76[rbp]
	movzx	eax, al
	mov	edi, eax
	call	push_rotobyte
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, -1
	je	.L16
	mov	eax, DWORD PTR opt_maxsz[rip]
	cdqe
	mov	rdx, QWORD PTR -48[rbp]
	cmp	rdx, rax
	jl	.L17
	mov	rax, -1
	mov	QWORD PTR -32[rbp], rax
	mov	eax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -72[rbp], 0
	mov	eax, 0
	mov	QWORD PTR -40[rbp], rax
	add	QWORD PTR -64[rbp], 1
	jmp	.L15
.L17:
	cmp	QWORD PTR -72[rbp], 0
	jg	.L18
	mov	edx, 2
	lea	rsi, end_mask[rip]
	lea	rdi, end_str[rip]
	call	test_rotostring
	test	eax, eax
	je	.L19
	mov	eax, DWORD PTR opt_maxsz[rip]
	cdqe
	mov	rdx, QWORD PTR -48[rbp]
	cmp	rdx, rax
	jg	.L19
	lea	rax, -48[rbp]
	mov	r10, rax
	mov	eax, 0
	call	output_img.0
	mov	rax, -1
	mov	QWORD PTR -32[rbp], rax
	mov	eax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -72[rbp], 0
	mov	eax, 0
	mov	QWORD PTR -40[rbp], rax
	add	QWORD PTR -64[rbp], 1
	jmp	.L15
.L18:
	sub	QWORD PTR -72[rbp], 1
.L19:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	QWORD PTR -48[rbp], rax
.L16:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, headerstrings[rip]
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 24[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	test_rotostring
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, -1
	je	.L22
	lea	rax, -48[rbp]
	mov	r10, rax
	mov	eax, 0
	call	output_img.0
.L22:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR opt_skipbytes[rip]
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
.L21:
	add	DWORD PTR -80[rbp], 1
.L20:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, 2
	jbe	.L23
	add	QWORD PTR -64[rbp], 1
.L15:
	mov	eax, 0
	call	next_byte
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L24
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read_through, .-read_through
	.section	.rodata
	.align 8
.LC4:
	.ascii	"Usage: \n\n    %s maxsize skipbytes\n\n  maxsize   - The max"
	.ascii	"imum size of the file to consider, or a single minus\n      "
	.ascii	"        sign. If the latter, 10MiB is assumed.\n  skipbytes "
	.ascii	"- The number of bytes to skip and not check for EOI after SO"
	.ascii	"I is\n              encountered. Since we're still not smart"
	.ascii	" enough to actually\n              skip frames and check for"
	.ascii	" EOI only in the image data (which is\n              guarant"
	.ascii	"eed not to contain a spurious EOI mark in compressed data\n "
	.ascii	"             and can safely be searched),"
	.string	" we need to skip some amount of bytes\n              in order to prevent something that looks like an EOI from triggering\n              us. Note, this is not likely to happen, just possible. A minus sign\n              instead of a value will default to 0.\n\n"
.LC5:
	.string	"-"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	jg	.L27
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L28
.L27:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L30
.L29:
	mov	eax, 10485760
.L30:
	mov	DWORD PTR opt_maxsz[rip], eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L32
.L31:
	mov	eax, 0
.L32:
	mov	DWORD PTR opt_skipbytes[rip], eax
	mov	eax, 0
	call	read_buf
	mov	eax, 0
	call	read_through
	mov	eax, 0
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"723654.c"
	.text
	.comm	buf,8192,4
	.comm	rotostring,16,4
	.comm	bufptr,4,4
	.comm	maxbuf,4,4
	.comm	rsi,4,4
	.align	2
	.global	read_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_buf, %function
read_buf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r2, #8192
	mov	r1, #1
	ldr	r0, .L4+4
	bl	fread
	str	r0, [fp, #-8]
	ldr	r3, .L4+8
	ldr	r2, .L4+4
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, .L4+12
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stdin
	.word	buf
	.word	bufptr
	.word	maxbuf
	.size	read_buf, .-read_buf
	.align	2
	.global	next_byte
	.syntax unified
	.arm
	.fpu softvfp
	.type	next_byte, %function
next_byte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L9
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	add	r2, r3, r2
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L7
	bl	read_buf
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	mvn	r3, #0
	b	.L8
.L7:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L9+8
	str	r2, [r1]
	ldrb	r3, [r3]	@ zero_extendqisi2
.L8:
	mov	r0, r3
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	maxbuf
	.word	buf
	.word	bufptr
	.size	next_byte, .-next_byte
	.align	2
	.global	push_rotobyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_rotobyte, %function
push_rotobyte:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #15
	and	r2, r2, #15
	rsbpl	r3, r2, #0
	str	r3, [fp, #-8]
	ldr	r2, .L12+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	ldr	r2, .L12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	rsi
	.word	rotostring
	.size	push_rotobyte, .-push_rotobyte
	.align	2
	.global	test_rotostring
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_rotostring, %function
test_rotostring:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L18:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L19
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r1, r3
	add	r3, r3, #16
	rsbs	r1, r3, #0
	and	r3, r3, #15
	and	r1, r1, #15
	rsbpl	r3, r1, #0
	ldr	r1, .L19+4
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L16
	mov	r3, #0
	b	.L17
.L16:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L18
	mov	r3, #1
.L17:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L20:
	.align	2
.L19:
	.word	rsi
	.word	rotostring
	.size	test_rotostring, .-test_rotostring
	.global	start_str
	.data
	.align	2
	.type	start_str, %object
	.size	start_str, 3
start_str:
	.ascii	"\377\330\377"
	.global	end_str
	.align	2
	.type	end_str, %object
	.size	end_str, 2
end_str:
	.ascii	"\377\331"
	.global	end_mask
	.align	2
	.type	end_mask, %object
	.size	end_mask, 2
end_mask:
	.ascii	"\001\001"
	.global	jfif_str
	.align	2
	.type	jfif_str, %object
	.size	jfif_str, 11
jfif_str:
	.ascii	"\377\330\377\340\356\356JFIF\000"
	.global	jfif_mask
	.align	2
	.type	jfif_mask, %object
	.size	jfif_mask, 11
jfif_mask:
	.ascii	"\001\001\001\001\000\000\001\001\001\001\001"
	.global	spiff_str
	.align	2
	.type	spiff_str, %object
	.size	spiff_str, 12
spiff_str:
	.ascii	"\377\330\377\350\356\356SPIFF\000"
	.global	spiff_mask
	.align	2
	.type	spiff_mask, %object
	.size	spiff_mask, 12
spiff_mask:
	.ascii	"\001\001\001\001\000\000\001\001\001\001\001\001"
	.global	exif_str
	.align	2
	.type	exif_str, %object
	.size	exif_str, 11
exif_str:
	.ascii	"\377\330\377\341\356\356Exif\000"
	.global	exif_mask
	.align	2
	.type	exif_mask, %object
	.size	exif_mask, 11
exif_mask:
	.ascii	"\001\001\001\001\000\000\001\001\001\001\001"
	.global	headerstrings
	.section	.rodata
	.align	2
.LC0:
	.ascii	"jfif\000"
	.align	2
.LC1:
	.ascii	"spiff\000"
	.align	2
.LC2:
	.ascii	"exif\000"
	.data
	.align	2
	.type	headerstrings, %object
	.size	headerstrings, 48
headerstrings:
	.word	jfif_str
	.word	jfif_mask
	.word	.LC0
	.word	11
	.word	spiff_str
	.word	spiff_mask
	.word	.LC1
	.word	12
	.word	exif_str
	.word	exif_mask
	.word	.LC2
	.word	11
	.comm	opt_maxsz,4,4
	.comm	opt_skipbytes,4,4
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s %lld %lld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_img.5347, %function
output_img.5347:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	ip, [fp, #-24]
	ldr	r1, .L22
	ldr	lr, [r1]
	ldr	r1, [ip, #16]
	ldr	r6, [r1, #8]
	add	r1, ip, #8
	ldmia	r1, {r0-r1}
	adds	r2, r0, #1
	adc	r3, r1, #0
	ldr	r1, [ip, #16]
	ldr	r1, [r1, #12]
	mov	r0, r1
	asr	r1, r0, #31
	subs	r4, r2, r0
	sbc	r5, r3, r1
	ldmia	ip, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r4-r5}
	mov	r2, r6
	ldr	r1, .L22+4
	mov	r0, lr
	bl	fprintf
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L23:
	.align	2
.L22:
	.word	stdout
	.word	.LC3
	.size	output_img.5347, .-output_img.5347
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_through
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_through, %function
read_through:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #80
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L25
.L34:
	ldr	r3, [fp, #-84]
	and	r3, r3, #255
	mov	r0, r3
	bl	push_rotobyte
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L26
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L27
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-44]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-68]
	str	r7, [fp, #-64]
	b	.L25
.L27:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	bge	.L28
	mov	r2, #2
	ldr	r1, .L36+8
	ldr	r0, .L36+12
	bl	test_rotostring
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L29
	sub	r3, fp, #60
	mov	ip, r3
	bl	output_img.5347
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-44]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-68]
	str	r9, [fp, #-64]
	b	.L25
.L28:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	subs	r1, r2, #1
	str	r1, [fp, #-100]
	sbc	r3, r3, #0
	str	r3, [fp, #-96]
	sub	r3, fp, #100
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L29:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
.L26:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L30
.L33:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #4
	ldr	r2, .L36+16
	add	r3, r3, r2
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	ldr	r0, [r3]
	ldr	r3, [fp, #-80]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	test_rotostring
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L32
	sub	r3, fp, #60
	mov	ip, r3
	bl	output_img.5347
.L32:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, .L36+20
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-44]
.L31:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L30:
	ldr	r3, [fp, #-88]
	cmp	r3, #2
	bls	.L33
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-108]
	adc	r3, r3, #0
	str	r3, [fp, #-104]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
.L25:
	bl	next_byte
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L34
	nop
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	opt_maxsz
	.word	end_mask
	.word	end_str
	.word	headerstrings
	.word	opt_skipbytes
	.size	read_through, .-read_through
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: \012\012    %s maxsize skipbytes\012\012  ma"
	.ascii	"xsize   - The maximum size of the file to consider,"
	.ascii	" or a single minus\012              sign. If the la"
	.ascii	"tter, 10MiB is assumed.\012  skipbytes - The number"
	.ascii	" of bytes to skip and not check for EOI after SOI i"
	.ascii	"s\012              encountered. Since we're still n"
	.ascii	"ot smart enough to actually\012              skip f"
	.ascii	"rames and check for EOI only in the image data (whi"
	.ascii	"ch is\012              guaranteed not to contain a "
	.ascii	"spurious EOI mark in compressed data\012           "
	.ascii	"   and can safely be searched), we need to skip som"
	.ascii	"e amount of bytes\012              in order to prev"
	.ascii	"ent something that looks like an EOI from triggerin"
	.ascii	"g\012              us. Note, this is not likely to "
	.ascii	"happen, just possible. A minus sign\012            "
	.ascii	"  instead of a value will default to 0.\012\012\000"
	.align	2
.LC6:
	.ascii	"-\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L39
	ldr	r3, .L45
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L45+4
	bl	fprintf
	mov	r3, #0
	b	.L40
.L39:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L45+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L42
.L41:
	mov	r3, #10485760
.L42:
	ldr	r2, .L45+12
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L45+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L44
.L43:
	mov	r3, #0
.L44:
	ldr	r2, .L45+16
	str	r3, [r2]
	bl	read_buf
	bl	read_through
	mov	r3, #0
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	opt_maxsz
	.word	opt_skipbytes
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
