	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_toggle_index     ## -- Begin function cheat_manager_toggle_index
	.p2align	4, 0x90
_cheat_manager_toggle_index:            ## @cheat_manager_toggle_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	movq	_cheat_manager_state@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.2:
	movl	%ebx, %ecx
	xorl	%edx, %edx
	cmpl	$0, (%rax,%rcx,4)
	sete	%dl
	movl	%edx, (%rax,%rcx,4)
	movq	_cheat_manager_state@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_cheat_manager_update
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cheat_manager_apply_cheats     ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_state,16,3       ## @cheat_manager_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_toggle_index     ; -- Begin function cheat_manager_toggle_index
	.p2align	2
_cheat_manager_toggle_index:            ; @cheat_manager_toggle_index
	.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	x20, x0
	bl	_config_get_ptr
Lloh0:
	adrp	x9, _cheat_manager_state@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cheat_manager_state@GOTPAGEOFF]
	ldp	x9, x8, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w9, w20
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	cmp	w10, #0
	cset	w10, eq
	str	w10, [x8, x9]
Lloh2:
	adrp	x0, _cheat_manager_state@GOTPAGE
Lloh3:
	ldr	x0, [x0, _cheat_manager_state@GOTPAGEOFF]
	mov	x1, x20
	bl	_cheat_manager_update
	cbz	x19, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cheat_manager_apply_cheats
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_state,16,3       ; @cheat_manager_state
.subsections_via_symbols
