	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_setting_ctl               ## -- Begin function menu_setting_ctl
	.p2align	4, 0x90
_menu_setting_ctl:                      ## @menu_setting_ctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	cmpl	$129, %edi
	je	LBB0_10
## %bb.1:
	cmpl	$131, %edi
	je	LBB0_13
## %bb.2:
	cmpl	$130, %edi
	jne	LBB0_16
## %bb.3:
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.4:
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_setting_get_type
	movq	_ST_ACTION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.5:
	cmpl	$0, 24(%rbx)
	je	LBB0_17
## %bb.6:
	cmpq	$0, 8(%rbx)
	jne	LBB0_9
## %bb.7:
	cmpl	$0, 20(%rbx)
	jne	LBB0_9
## %bb.8:
	cmpl	$0, 16(%rbx)
	je	LBB0_17
LBB0_9:
	movq	_SD_FLAG_BROWSER_ACTION@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_16
	jmp	LBB0_17
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	callq	_menu_setting_new
	movq	%rax, (%rbx)
	jmp	LBB0_16
LBB0_13:
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.14:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
	movl	%eax, %ebx
	movq	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	movq	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	cmpl	$-1, %ebx
	je	LBB0_17
LBB0_16:
	movl	$1, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_ACTION,4,2                  ## @ST_ACTION
	.comm	_SD_FLAG_BROWSER_ACTION,4,2     ## @SD_FLAG_BROWSER_ACTION
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH,4,2 ## @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE,4,2 ## @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_setting_ctl               ; -- Begin function menu_setting_ctl
	.p2align	2
_menu_setting_ctl:                      ; @menu_setting_ctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.1:
	cmp	w0, #131
	b.eq	LBB0_12
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_15
; %bb.3:
	cbz	x19, LBB0_16
; %bb.4:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_setting_get_type
Lloh0:
	adrp	x8, _ST_ACTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_ACTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.5:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_16
; %bb.6:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_9
; %bb.7:
	ldr	w8, [x19, #20]
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_16
LBB0_9:
Lloh3:
	adrp	x8, _SD_FLAG_BROWSER_ACTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SD_FLAG_BROWSER_ACTION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_15
	b	LBB0_16
LBB0_10:
	cbz	x19, LBB0_16
; %bb.11:
	bl	_menu_setting_new
	str	x0, [x19]
	b	LBB0_15
LBB0_12:
	cbz	x19, LBB0_16
; %bb.13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	x19, x0
Lloh6:
	adrp	x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
Lloh9:
	adrp	x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
	cmn	w19, #1
	b.eq	LBB0_16
LBB0_15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_ACTION,4,2                  ; @ST_ACTION
	.comm	_SD_FLAG_BROWSER_ACTION,4,2     ; @SD_FLAG_BROWSER_ACTION
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH,4,2 ; @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE,4,2 ; @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE
.subsections_via_symbols
