	.file	"extr_opj_jpwl_decompress.c_get_num_images.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not open Folder %s\n"
.LC1:
	.string	"."
.LC2:
	.string	".."
	.text
	.p2align 4
	.globl	get_num_images
	.type	get_num_images, @function
get_num_images:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	opendir@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	readdir@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L1
.L6:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	strcmp@PLT
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	mov	rdi, rbp
	cmp	rax, 1
	sbb	r12d, -1
	call	readdir@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L6
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r14
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	get_num_images, .-get_num_images
	.comm	stderr,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_opj_jpwl_decompress.c_get_num_images.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not open Folder %s\012\000"
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"..\000"
	.text
	.align	2
	.global	get_num_images
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_num_images, %function
get_num_images:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	opendir
	subs	r5, r0, #0
	beq	.L15
	mov	r7, #0
	ldr	r6, .L16
	ldr	r8, .L16+4
.L4:
	mov	r0, r5
	bl	readdir
	subs	r4, r0, #0
	beq	.L1
.L6:
	mov	r0, r6
	ldr	r1, [r4]
	bl	strcmp
	cmp	r0, #0
	beq	.L4
	ldr	r1, [r4]
	mov	r0, r8
	bl	strcmp
	cmp	r0, #0
	mov	r0, r5
	addne	r7, r7, #1
	bl	readdir
	subs	r4, r0, #0
	bne	.L6
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r3, .L16+8
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L16+12
	mov	r7, r5
	bl	fprintf
	b	.L1
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC0
	.size	get_num_images, .-get_num_images
	.comm	stderr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
