	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheatRemoveCodeByIndex         ## -- Begin function CheatRemoveCodeByIndex
	.p2align	4, 0x90
_CheatRemoveCodeByIndex:                ## @CheatRemoveCodeByIndex
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_cheatlist@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	%edi, %r12
	movq	%r12, %rbx
	shlq	$4, %rbx
	movq	8(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_free
	movq	(%r15), %rax
	movq	$0, 8(%rax,%rbx)
LBB0_2:
	movq	_numcheats@GOTPCREL(%rip), %r13
	movslq	(%r13), %rax
	decq	%rax
	cmpl	%r14d, %eax
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	incq	%r12
	leaq	(%rdi,%rbx), %rsi
	addq	$16, %rsi
	addq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movslq	(%r13), %rax
	decq	%rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_4:
	movl	%eax, (%r13)
	movq	_CHEATTYPE_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r15), %rdx
	shlq	$4, %rax
	movl	%ecx, (%rdx,%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cheatlist,8,3                  ## @cheatlist
	.comm	_numcheats,4,2                  ## @numcheats
	.comm	_CHEATTYPE_NONE,4,2             ## @CHEATTYPE_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheatRemoveCodeByIndex         ; -- Begin function CheatRemoveCodeByIndex
	.p2align	2
_CheatRemoveCodeByIndex:                ; @CheatRemoveCodeByIndex
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _cheatlist@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cheatlist@GOTPAGEOFF]
	ldr	x8, [x20]
	sxtw	x21, w19
	add	x8, x8, w0, sxtw #4
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_free
	ldr	x8, [x20]
	add	x8, x8, x21, lsl #4
	str	xzr, [x8, #8]
LBB0_2:
Lloh2:
	adrp	x22, _numcheats@GOTPAGE
Lloh3:
	ldr	x22, [x22, _numcheats@GOTPAGEOFF]
	ldrsw	x8, [x22]
	sub	x8, x8, #1
	cmp	w8, w19
	b.le	LBB0_5
; %bb.3:
	lsl	x19, x21, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x19
	add	x21, x21, #1
	add	x1, x0, #16
	mov	w2, #4
	bl	_memcpy
	ldrsw	x8, [x22]
	sub	x8, x8, #1
	add	x19, x19, #16
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	str	w8, [x22]
Lloh4:
	adrp	x9, _CHEATTYPE_NONE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHEATTYPE_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	x10, [x20]
	lsl	x8, x8, #4
	str	w9, [x10, x8]
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cheatlist,8,3                  ; @cheatlist
	.comm	_numcheats,4,2                  ; @numcheats
	.comm	_CHEATTYPE_NONE,4,2             ; @CHEATTYPE_NONE
.subsections_via_symbols
