	.file	"extr_jpgicc.c_OpenInput.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rb"
.LC1:
	.string	"Cannot open '%s'"
	.text
	.p2align 4
	.type	OpenInput, @function
OpenInput:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR lIsITUFax[rip], eax
	call	fopen@PLT
	mov	QWORD PTR InFile[rip], rax
	test	rax, rax
	je	.L7
.L2:
	lea	rdi, ErrorHandler[rip]
	xor	ebx, ebx
	lea	rbp, Decompressor[rip]
	call	jpeg_std_error@PLT
	lea	rdi, Decompressor[rip]
	mov	DWORD PTR Decompressor[rip], eax
	mov	rax, QWORD PTR my_error_exit[rip]
	mov	QWORD PTR ErrorHandler[rip+8], rax
	mov	QWORD PTR ErrorHandler[rip], rax
	call	jpeg_create_decompress@PLT
	mov	rsi, QWORD PTR InFile[rip]
	lea	rdi, Decompressor[rip]
	call	jpeg_stdio_src@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR JPEG_APP0[rip]
	mov	edx, 65535
	mov	rdi, rbp
	add	rsi, rbx
	add	rbx, 1
	call	jpeg_save_markers@PLT
	cmp	rbx, 16
	jne	.L3
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	rdi, QWORD PTR InFile[rip]
	xor	esi, esi
	call	fseek@PLT
	mov	esi, DWORD PTR TRUE[rip]
	lea	rdi, Decompressor[rip]
	call	jpeg_read_header@PLT
	mov	eax, DWORD PTR TRUE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	FatalError@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	OpenInput, .-OpenInput
	.comm	my_error_exit,8,8
	.comm	lIsITUFax,4,4
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	JPEG_APP0,8,8
	.comm	InFile,8,8
	.comm	FALSE,4,4
	.comm	ErrorHandler,16,16
	.comm	Decompressor,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_jpgicc.c_OpenInput.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rb\000"
	.align	2
.LC1:
	.ascii	"Cannot open '%s'\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OpenInput, %function
OpenInput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L8
	ldr	r3, .L8+4
	ldr	r2, [r2]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L8+8
	mov	r4, r0
	str	r2, [r3]
	bl	fopen
	ldr	r8, .L8+12
	cmp	r0, #0
	str	r0, [r8]
	beq	.L7
.L2:
	ldr	r5, .L8+16
	ldr	r4, .L8+20
	mov	r0, r5
	bl	jpeg_std_error
	ldr	r3, .L8+24
	str	r0, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r5, #4]
	str	r3, [r5]
	bl	jpeg_create_decompress
	mov	r0, r4
	ldr	r1, [r8]
	mov	r7, r4
	bl	jpeg_stdio_src
	mov	r4, #0
	ldr	r6, .L8+28
	ldr	r5, .L8+32
.L3:
	ldr	r1, [r6]
	mov	r2, r5
	add	r1, r4, r1
	mov	r0, r7
	add	r4, r4, #1
	bl	jpeg_save_markers
	cmp	r4, #16
	bne	.L3
	ldr	r3, .L8+36
	ldr	r4, .L8+40
	ldr	r2, [r3]
	mov	r1, #0
	ldr	r0, [r8]
	bl	fseek
	ldr	r1, [r4]
	ldr	r0, .L8+20
	bl	jpeg_read_header
	ldr	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r1, r4
	ldr	r0, .L8+44
	bl	FatalError
	b	.L2
.L9:
	.align	2
.L8:
	.word	FALSE
	.word	lIsITUFax
	.word	.LC0
	.word	InFile
	.word	ErrorHandler
	.word	Decompressor
	.word	my_error_exit
	.word	JPEG_APP0
	.word	65535
	.word	SEEK_SET
	.word	TRUE
	.word	.LC1
	.size	OpenInput, .-OpenInput
	.comm	my_error_exit,4,4
	.comm	lIsITUFax,4,4
	.comm	TRUE,4,4
	.comm	SEEK_SET,4,4
	.comm	JPEG_APP0,4,4
	.comm	InFile,4,4
	.comm	FALSE,4,4
	.comm	ErrorHandler,8,4
	.comm	Decompressor,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
