	.file	"extr_io_zip.c_r_io_zip_get_by_file_idx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	r_io_zip_get_by_file_idx
	.type	r_io_zip_get_by_file_idx, @function
r_io_zip_get_by_file_idx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	rsi, rdx
	mov	edx, ecx
	mov	ecx, r8d
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	r_io_zip_open_archive@PLT
	mov	r12, rax
	mov	rdi, rax
	test	rbx, rbx
	je	.L17
	test	rax, rax
	je	.L17
	call	zip_get_num_files@PLT
	mov	rdi, rbx
	mov	r14, rax
	call	atoi@PLT
	mov	r13, rax
	test	rax, rax
	je	.L19
.L5:
	cmp	r14, r13
	jle	.L6
	xor	ebx, ebx
	lea	rbp, 4[rsp]
	test	r14, r14
	jg	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	add	rbx, 1
	cmp	r14, rbx
	je	.L8
.L7:
	mov	rdi, rbp
	call	zip_stat_init@PLT
	xor	edx, edx
	mov	rcx, rbp
	mov	rsi, rbx
	mov	rdi, r12
	call	zip_stat_index@PLT
	cmp	r13, rbx
	jne	.L9
	mov	edi, DWORD PTR 4[rsp]
	call	strdup@PLT
	mov	r13, rax
.L10:
	mov	rdi, r12
	call	zip_close@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L19:
	.cfi_restore_state
	cmp	BYTE PTR [rbx], 48
	je	.L5
.L6:
	mov	rdi, r12
.L17:
	call	zip_close@PLT
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	xor	r13d, r13d
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	r_io_zip_get_by_file_idx, .-r_io_zip_get_by_file_idx
	.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_io_zip.c_r_io_zip_get_by_file_idx.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	r_io_zip_get_by_file_idx
	.syntax unified
	.arm
	.fpu softvfp
	.type	r_io_zip_get_by_file_idx, %function
r_io_zip_get_by_file_idx:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r2
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	sub	sp, sp, #12
	mov	r1, ip
	ldr	ip, .L18
	mov	r2, r3
	ldr	r3, [sp, #32]
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	r_io_zip_open_archive
	cmp	r0, #0
	cmpne	r4, #0
	beq	.L14
	mov	r5, r0
	bl	zip_get_num_files
	mov	r7, r0
	mov	r0, r4
	bl	atoi
	subs	r6, r0, #0
	beq	.L16
.L4:
	cmp	r7, r6
	ble	.L5
	cmp	r7, #0
	movgt	r4, #0
	bgt	.L6
	b	.L7
.L8:
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L7
.L6:
	mov	r0, sp
	bl	zip_stat_init
	mov	r3, sp
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	zip_stat_index
	cmp	r6, r4
	bne	.L8
	ldr	r0, [sp]
	bl	strdup
	mov	r4, r0
.L9:
	mov	r0, r5
	bl	zip_close
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L4
.L5:
	mov	r0, r5
.L14:
	bl	zip_close
	mov	r4, #0
	b	.L1
.L7:
	mov	r4, #0
	b	.L9
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	r_io_zip_get_by_file_idx, .-r_io_zip_get_by_file_idx
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
