	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_copy_idx_to_working ## -- Begin function cheat_manager_copy_idx_to_working
	.p2align	4, 0x90
_cheat_manager_copy_idx_to_working:     ## @cheat_manager_copy_idx_to_working
	.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
                                        ## kill: def $edi killed $edi def $rdi
	movq	_cheat_manager_state@GOTPCREL(%rip), %r14
	movq	24(%r14), %rsi
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	leal	1(%rdi), %ecx
	cmpl	%ecx, (%r14)
	jb	LBB0_9
## %bb.2:
	movl	%edi, %ebx
	shlq	$4, %rbx
	addq	%rbx, %rsi
	leaq	32(%r14), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	movq	24(%r14), %rax
	movq	8(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_CHEAT_DESC_SCRATCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	jmp	LBB0_5
LBB0_4:
	movb	$0, (%rdi)
LBB0_5:
	movq	16(%r14), %rdi
	movq	24(%r14), %rax
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	_CHEAT_CODE_SCRATCH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	jmp	LBB0_8
LBB0_7:
	movb	$0, (%rdi)
LBB0_8:
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_state,40,3       ## @cheat_manager_state
	.comm	_CHEAT_DESC_SCRATCH_SIZE,4,2    ## @CHEAT_DESC_SCRATCH_SIZE
	.comm	_CHEAT_CODE_SCRATCH_SIZE,4,2    ## @CHEAT_CODE_SCRATCH_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_copy_idx_to_working ; -- Begin function cheat_manager_copy_idx_to_working
	.p2align	2
_cheat_manager_copy_idx_to_working:     ; @cheat_manager_copy_idx_to_working
	.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
Lloh0:
	adrp	x19, _cheat_manager_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cheat_manager_state@GOTPAGEOFF]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w9, [x19]
	add	w10, w0, #1
	cmp	w9, w10
	b.hs	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	mov	w9, w0
	lsl	x20, x9, #4
	add	x1, x8, x20
	add	x0, x19, #32
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #24]
	add	x8, x8, x20
	ldr	x1, [x8, #8]
	ldr	x0, [x19, #8]
	cbz	x1, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _CHEAT_DESC_SCRATCH_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHEAT_DESC_SCRATCH_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_strlcpy
	b	LBB0_6
LBB0_5:
	strb	wzr, [x0]
LBB0_6:
	ldp	x0, x8, [x19, #16]
	ldr	x1, [x8, x20]
	cbz	x1, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _CHEAT_CODE_SCRATCH_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHEAT_CODE_SCRATCH_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_strlcpy
	b	LBB0_9
LBB0_8:
	strb	wzr, [x0]
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_state,40,3       ; @cheat_manager_state
	.comm	_CHEAT_DESC_SCRATCH_SIZE,4,2    ; @CHEAT_DESC_SCRATCH_SIZE
	.comm	_CHEAT_CODE_SCRATCH_SIZE,4,2    ; @CHEAT_CODE_SCRATCH_SIZE
.subsections_via_symbols
