	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_copy_working_to_idx ## -- Begin function cheat_manager_copy_working_to_idx
	.p2align	4, 0x90
_cheat_manager_copy_working_to_idx:     ## @cheat_manager_copy_working_to_idx
	.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, %ecx
	movq	_cheat_manager_state@GOTPCREL(%rip), %r14
	movq	8(%r14), %rdi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	leal	1(%rcx), %edx
	cmpl	%edx, (%r14)
	jb	LBB0_7
## %bb.2:
	movl	%ecx, %ebx
	shlq	$4, %rbx
	addq	%rbx, %rdi
	leaq	20(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	8(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
LBB0_4:
	movl	16(%r14), %edi
	callq	_strdup
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movq	(%rcx,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	movl	4(%r14), %edi
	callq	_strdup
	movq	8(%r14), %rcx
	movq	%rax, (%rcx,%rbx)
	movl	$1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_state,24,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_copy_working_to_idx ; -- Begin function cheat_manager_copy_working_to_idx
	.p2align	2
_cheat_manager_copy_working_to_idx:     ; @cheat_manager_copy_working_to_idx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _cheat_manager_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cheat_manager_state@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	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_8
LBB0_3:
	mov	w21, w0
	lsl	x20, x21, #4
	add	x0, x8, x20
	add	x1, x19, #20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x8, x8, x20
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
LBB0_5:
	ldr	w0, [x19, #16]
	bl	_strdup
	ldr	x8, [x19, #8]
	add	x8, x8, x21, lsl #4
	str	x0, [x8, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_free
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_strdup
	ldr	x8, [x19, #8]
	str	x0, [x8, x20]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_state,24,3       ; @cheat_manager_state
.subsections_via_symbols
