	.file	"extr_libretro.c_update_variables.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"picodrive_input1"
.LC1:
	.string	"picodrive_input2"
.LC2:
	.string	"picodrive_sprlim"
.LC3:
	.string	"enabled"
.LC4:
	.string	"picodrive_ramcart"
	.text
	.p2align 4
	.type	update_variables, @function
update_variables:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR RETRO_ENVIRONMENT_GET_VARIABLE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	lea	rax, .LC0[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	rsi, rbp
	mov	QWORD PTR [rsp], rax
	call	environ_cb@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L2
	call	input_name_to_val@PLT
	xor	edi, edi
	mov	esi, eax
	call	PicoSetInputDevice@PLT
.L2:
	mov	edi, DWORD PTR RETRO_ENVIRONMENT_GET_VARIABLE[rip]
	lea	rax, .LC1[rip]
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], rax
	call	environ_cb@PLT
	test	rax, rax
	je	.L3
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L3
	call	input_name_to_val@PLT
	mov	edi, 1
	mov	esi, eax
	call	PicoSetInputDevice@PLT
.L3:
	mov	edi, DWORD PTR RETRO_ENVIRONMENT_GET_VARIABLE[rip]
	lea	rax, .LC2[rip]
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], rax
	call	environ_cb@PLT
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L4
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	mov	eax, DWORD PTR POPT_DIS_SPRITE_LIM[rip]
	jne	.L5
	or	DWORD PTR PicoOpt[rip], eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR RETRO_ENVIRONMENT_GET_VARIABLE[rip]
	lea	rax, .LC4[rip]
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], rax
	call	environ_cb@PLT
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 8[rsp]
	test	rdi, rdi
	je	.L1
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	mov	eax, DWORD PTR POPT_EN_MCD_RAMCART[rip]
	jne	.L7
	or	DWORD PTR PicoOpt[rip], eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	not	eax
	and	DWORD PTR PicoOpt[rip], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	not	eax
	and	DWORD PTR PicoOpt[rip], eax
	jmp	.L4
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	update_variables, .-update_variables
	.comm	RETRO_ENVIRONMENT_GET_VARIABLE,4,4
	.comm	PicoOpt,4,4
	.comm	POPT_EN_MCD_RAMCART,4,4
	.comm	POPT_EN_DRC,4,4
	.comm	POPT_DIS_SPRITE_LIM,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_libretro.c_update_variables.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"picodrive_input1\000"
	.align	2
.LC1:
	.ascii	"picodrive_input2\000"
	.align	2
.LC2:
	.ascii	"picodrive_sprlim\000"
	.align	2
.LC3:
	.ascii	"enabled\000"
	.align	2
.LC4:
	.ascii	"picodrive_ramcart\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_variables, %function
update_variables:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, #0
	ldr	r4, .L36
	sub	sp, sp, #20
	ldr	r3, .L36+4
	ldr	r2, .L36+8
	ldr	r0, [r4]
	add	r1, sp, #4
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	stmib	sp, {r3, r5}
	bl	environ_cb
	cmp	r0, r5
	beq	.L2
	ldr	r0, [sp, #8]
	cmp	r0, r5
	beq	.L2
	bl	input_name_to_val
	mov	r1, r0
	mov	r0, r5
	bl	PicoSetInputDevice
.L2:
	mov	r2, #0
	ldr	r3, .L36+12
	ldr	r0, [r4]
	add	r1, sp, #4
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	bl	environ_cb
	cmp	r0, #0
	beq	.L3
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L3
	bl	input_name_to_val
	mov	r1, r0
	mov	r0, #1
	bl	PicoSetInputDevice
.L3:
	mov	r2, #0
	ldr	r3, .L36+16
	ldr	r0, [r4]
	add	r1, sp, #4
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	bl	environ_cb
	cmp	r0, #0
	beq	.L4
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L4
	ldr	r1, .L36+20
	bl	strcmp
	ldr	r3, .L36+24
	ldr	r2, .L36+28
	ldr	r1, [r3]
	ldr	r3, [r2]
	cmp	r0, #0
	orreq	r3, r3, r1
	bicne	r3, r3, r1
	str	r3, [r2]
.L4:
	mov	r2, #0
	ldr	r3, .L36+32
	ldr	r0, [r4]
	add	r1, sp, #4
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	bl	environ_cb
	cmp	r0, #0
	beq	.L1
	ldr	r0, [sp, #8]
	cmp	r0, #0
	beq	.L1
	ldr	r1, .L36+20
	bl	strcmp
	ldr	r3, .L36+36
	ldr	r2, .L36+28
	ldr	r1, [r3]
	ldr	r3, [r2]
	cmp	r0, #0
	orreq	r3, r3, r1
	bicne	r3, r3, r1
	str	r3, [r2]
.L1:
	ldr	r3, .L36+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	RETRO_ENVIRONMENT_GET_VARIABLE
	.word	.LC0
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	POPT_DIS_SPRITE_LIM
	.word	PicoOpt
	.word	.LC4
	.word	POPT_EN_MCD_RAMCART
	.size	update_variables, .-update_variables
	.comm	RETRO_ENVIRONMENT_GET_VARIABLE,4,4
	.comm	PicoOpt,4,4
	.comm	POPT_EN_MCD_RAMCART,4,4
	.comm	POPT_EN_DRC,4,4
	.comm	POPT_DIS_SPRITE_LIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
