	.file	"extr_..libretro-commonlistsfile_list.c_file_list_insert.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	file_list_insert
	.type	file_list_insert, @function
file_list_insert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebp, DWORD PTR [rdi]
	mov	eax, DWORD PTR 4[rdi]
	mov	QWORD PTR [rsp], rsi
	mov	DWORD PTR 12[rsp], ecx
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR 24[rsp], r9
	cmp	ebp, eax
	jge	.L20
.L2:
	cmp	ebp, DWORD PTR 96[rsp]
	jle	.L4
	mov	eax, DWORD PTR 96[rsp]
	movsx	r13, ebp
	mov	rbx, r13
	not	eax
	sal	rbx, 6
	add	eax, ebp
	sub	rbx, 64
	sub	r13, rax
	sal	r13, 6
	add	r13, -128
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 64
	mov	edi, 1
	lea	rbp, 64[rbx]
	call	calloc@PLT
	mov	rsi, QWORD PTR 8[r12]
	mov	edx, 64
	mov	rdi, rax
	mov	r14, rax
	add	rsi, rbx
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	edx, 64
	lea	rsi, [rdi+rbp]
	add	rdi, rbx
	sub	rbx, 64
	call	memcpy@PLT
	mov	rdi, QWORD PTR 8[r12]
	mov	edx, 64
	mov	rsi, r14
	add	rdi, rbp
	call	memcpy@PLT
	mov	rdi, r14
	call	free@PLT
	cmp	rbx, r13
	jne	.L5
	mov	ebp, DWORD PTR [r12]
.L4:
	mov	rbx, QWORD PTR 96[rsp]
	mov	eax, DWORD PTR 12[rsp]
	sal	rbx, 6
	add	rbx, QWORD PTR 8[r12]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 40[rbx], 0
	test	r15, r15
	je	.L6
	mov	rdi, r15
	call	strdup@PLT
	mov	QWORD PTR 32[rbx], rax
.L6:
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR 24[rbx], rax
.L7:
	add	ebp, 1
	mov	eax, 1
	mov	DWORD PTR [r12], ebp
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	esi, 1[rax+rax]
	call	file_list_reserve@PLT
	test	eax, eax
	je	.L1
	mov	ebp, DWORD PTR [r12]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	file_list_insert, .-file_list_insert
	.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_..libretro-commonlistsfile_list.c_file_list_insert.c"
	.text
	.align	2
	.global	file_list_insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_list_insert, %function
file_list_insert:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r0, {r4, ip}
	sub	sp, sp, #12
	cmp	r4, ip
	mov	r7, r0
	mov	r10, r2
	ldr	r8, [sp, #56]
	str	r1, [sp]
	str	r3, [sp, #4]
	bge	.L20
.L2:
	cmp	r8, r4
	bge	.L4
	sub	r6, r4, #-134217727
	lsl	r6, r6, #5
.L5:
	mov	r1, #32
	mov	r0, #1
	bl	calloc
	mov	r5, r0
	ldr	r9, [r7, #8]
	mov	r2, #32
	add	fp, r9, r6
	mov	r1, fp
	bl	memcpy
	add	r1, r9, r4, lsl #5
	mov	r2, #32
	mov	r0, fp
	bl	memcpy
	ldr	r0, [r7, #8]
	lsl	r3, r4, #5
	mov	r1, r5
	mov	r2, #32
	add	r0, r0, r3
	bl	memcpy
	sub	r4, r4, #1
	mov	r0, r5
	bl	free
	cmp	r4, r8
	sub	r6, r6, #32
	bne	.L5
	ldr	r4, [r7]
.L4:
	mov	r3, #0
	ldr	r2, [r7, #8]
	ldr	r1, [sp, #4]
	add	r5, r2, r8, lsl #5
	str	r3, [r5, #12]
	str	r3, [r5, #16]
	str	r3, [r5, #28]
	str	r1, [r2, r8, lsl #5]
	ldr	r2, [sp, #48]
	cmp	r10, r3
	str	r2, [r5, #4]
	ldr	r2, [sp, #52]
	str	r3, [r5, #24]
	str	r2, [r5, #8]
	str	r3, [r5, #20]
	beq	.L6
	mov	r0, r10
	bl	strdup
	str	r0, [r5, #16]
.L6:
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L7
	mov	r0, r3
	bl	strdup
	str	r0, [r5, #12]
.L7:
	mov	r0, #1
	add	r4, r4, r0
	str	r4, [r7]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	lsl	r1, ip, #1
	add	r1, r1, #1
	bl	file_list_reserve
	cmp	r0, #0
	beq	.L1
	ldr	r4, [r7]
	b	.L2
	.size	file_list_insert, .-file_list_insert
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
