	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_variables
_update_variables:                      ## @update_variables
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	$0, -16(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -24(%rbp)
	movq	_RETRO_ENVIRONMENT_GET_VARIABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_environ_cb
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_input_name_to_val
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_PicoSetInputDevice
LBB0_3:
	movq	$0, -16(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_environ_cb
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_input_name_to_val
	movl	$1, %edi
	movl	%eax, %esi
	callq	_PicoSetInputDevice
LBB0_6:
	movq	$0, -16(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_environ_cb
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	movq	_POPT_DIS_SPRITE_LIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	notl	%ecx
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jmp	LBB0_11
LBB0_9:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_11:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_12:
	movq	$0, -16(%rbp)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_environ_cb
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	movq	-16(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	movq	_POPT_EN_MCD_RAMCART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	notl	%ecx
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jmp	LBB0_17
LBB0_15:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_17:
	movq	_PicoOpt@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"picodrive_input1"

	.comm	_RETRO_ENVIRONMENT_GET_VARIABLE,4,2 ## @RETRO_ENVIRONMENT_GET_VARIABLE
L_.str.1:                               ## @.str.1
	.asciz	"picodrive_input2"

L_.str.2:                               ## @.str.2
	.asciz	"picodrive_sprlim"

L_.str.3:                               ## @.str.3
	.asciz	"enabled"

	.comm	_POPT_DIS_SPRITE_LIM,4,2        ## @POPT_DIS_SPRITE_LIM
	.comm	_PicoOpt,4,2                    ## @PicoOpt
L_.str.4:                               ## @.str.4
	.asciz	"picodrive_ramcart"

	.comm	_POPT_EN_MCD_RAMCART,4,2        ## @POPT_EN_MCD_RAMCART
	.comm	_POPT_EN_DRC,4,2                ## @POPT_EN_DRC
	.no_dead_strip	_update_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_variables
_update_variables:                      ; @update_variables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, xzr, [sp]
Lloh2:
	adrp	x19, _RETRO_ENVIRONMENT_GET_VARIABLE@GOTPAGE
Lloh3:
	ldr	x19, [x19, _RETRO_ENVIRONMENT_GET_VARIABLE@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_environ_cb
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	bl	_input_name_to_val
	mov	x1, x0
	mov	w0, #0
	bl	_PicoSetInputDevice
LBB0_2:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
	stp	x8, xzr, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_environ_cb
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_4
; %bb.3:
	bl	_input_name_to_val
	mov	x1, x0
	mov	w0, #1
	bl	_PicoSetInputDevice
LBB0_4:
Lloh6:
	adrp	x8, l_.str.2@PAGE
Lloh7:
	add	x8, x8, l_.str.2@PAGEOFF
	stp	x8, xzr, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_environ_cb
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
Lloh8:
	adrp	x20, _PicoOpt@GOTPAGE
Lloh9:
	ldr	x20, [x20, _PicoOpt@GOTPAGEOFF]
	b.eq	LBB0_9
; %bb.5:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
Lloh12:
	adrp	x8, _POPT_DIS_SPRITE_LIM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POPT_DIS_SPRITE_LIM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w9, [x20]
	bic	w8, w9, w8
	b	LBB0_8
LBB0_7:
	ldr	w9, [x20]
	orr	w8, w9, w8
LBB0_8:
	str	w8, [x20]
LBB0_9:
Lloh15:
	adrp	x8, l_.str.4@PAGE
Lloh16:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x8, xzr, [sp]
	ldr	w0, [x19]
	mov	x1, sp
	bl	_environ_cb
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_14
; %bb.10:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
Lloh19:
	adrp	x8, _POPT_EN_MCD_RAMCART@GOTPAGE
Lloh20:
	ldr	x8, [x8, _POPT_EN_MCD_RAMCART@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w9, [x20]
	bic	w8, w9, w8
	b	LBB0_13
LBB0_12:
	ldr	w9, [x20]
	orr	w8, w9, w8
LBB0_13:
	str	w8, [x20]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"picodrive_input1"

	.comm	_RETRO_ENVIRONMENT_GET_VARIABLE,4,2 ; @RETRO_ENVIRONMENT_GET_VARIABLE
l_.str.1:                               ; @.str.1
	.asciz	"picodrive_input2"

l_.str.2:                               ; @.str.2
	.asciz	"picodrive_sprlim"

l_.str.3:                               ; @.str.3
	.asciz	"enabled"

	.comm	_POPT_DIS_SPRITE_LIM,4,2        ; @POPT_DIS_SPRITE_LIM
	.comm	_PicoOpt,4,2                    ; @PicoOpt
l_.str.4:                               ; @.str.4
	.asciz	"picodrive_ramcart"

	.comm	_POPT_EN_MCD_RAMCART,4,2        ; @POPT_EN_MCD_RAMCART
	.comm	_POPT_EN_DRC,4,2                ; @POPT_EN_DRC
	.no_dead_strip	_update_variables
.subsections_via_symbols
