	.file	"extr_..libretro-commonlistsfile_list.c_file_list_set_alt_at_offset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	file_list_set_alt_at_offset
	.type	file_list_set_alt_at_offset, @function
file_list_set_alt_at_offset:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L8
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdx, rdx
	je	.L1
	mov	r13, QWORD PTR [rdi]
	lea	rbx, 0[0+rsi*8]
	mov	rbp, rdi
	add	r13, rbx
	mov	rdi, QWORD PTR 0[r13]
	test	rdi, rdi
	je	.L3
	call	free@PLT
	add	rbx, QWORD PTR 0[rbp]
	mov	r13, rbx
.L3:
	mov	QWORD PTR 0[r13], 0
	mov	rdi, r12
	call	strdup@PLT
	mov	QWORD PTR 0[r13], rax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	file_list_set_alt_at_offset, .-file_list_set_alt_at_offset
	.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_set_alt_at_offset.c"
	.text
	.align	2
	.global	file_list_set_alt_at_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_list_set_alt_at_offset, %function
file_list_set_alt_at_offset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	cmpne	r0, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	mov	r5, r0
	ldr	r0, [r4, r1, lsl #2]
	mov	r6, r2
	cmp	r0, #0
	lsl	r7, r1, #2
	add	r4, r4, r1, lsl #2
	beq	.L3
	bl	free
	ldr	r4, [r5]
	add	r4, r4, r7
.L3:
	mov	r3, #0
	mov	r0, r6
	str	r3, [r4]
	bl	strdup
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	file_list_set_alt_at_offset, .-file_list_set_alt_at_offset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
