	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAMCheatUpdate                 ## -- Begin function RAMCheatUpdate
	.p2align	4, 0x90
_RAMCheatUpdate:                        ## @RAMCheatUpdate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_maxRAMcheats@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_cheatIndexes@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_cheatlist@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_work_ram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	%rdi, %rsi
	testb	$1, %dil
	je	LBB0_3
## %bb.2:
	leaq	-1(%rdi), %rsi
	movslq	-4(%r11,%rdi,4), %r8
	movl	(%rcx,%r8,8), %r9d
	xorl	%r10d, %r10d
	testl	$65280, %r9d                    ## imm = 0xFF00
	sete	%r10b
	orl	$65534, %r10d                   ## imm = 0xFFFE
	andl	4(%rcx,%r8,8), %r10d
	movl	%r9d, (%rbx,%r10,4)
LBB0_3:
	cmpl	$1, %edi
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	-4(%r11,%rsi,4), %rdi
	movl	(%rcx,%rdi,8), %eax
	xorl	%edx, %edx
	testl	$65280, %eax                    ## imm = 0xFF00
	sete	%dl
	orl	$65534, %edx                    ## imm = 0xFFFE
	andl	4(%rcx,%rdi,8), %edx
	movl	%eax, (%rbx,%rdx,4)
	movslq	-8(%r11,%rsi,4), %rax
	addq	$-2, %rsi
	movl	(%rcx,%rax,8), %edx
	xorl	%edi, %edi
	testl	$65280, %edx                    ## imm = 0xFF00
	sete	%dil
	orl	$65534, %edi                    ## imm = 0xFFFE
	andl	4(%rcx,%rax,8), %edi
	movl	%edx, (%rbx,%rdi,4)
	testl	%esi, %esi
	jne	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maxRAMcheats,4,2               ## @maxRAMcheats
	.comm	_cheatIndexes,8,3               ## @cheatIndexes
	.comm	_cheatlist,8,3                  ## @cheatlist
	.comm	_work_ram,8,3                   ## @work_ram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAMCheatUpdate                 ; -- Begin function RAMCheatUpdate
	.p2align	2
_RAMCheatUpdate:                        ; @RAMCheatUpdate
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _maxRAMcheats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maxRAMcheats@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	sxtw	x11, w8
Lloh3:
	adrp	x9, _cheatIndexes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cheatIndexes@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x9]
Lloh6:
	adrp	x9, _cheatlist@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cheatlist@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _work_ram@GOTPAGE
Lloh10:
	ldr	x10, [x10, _work_ram@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	add	x11, x12, x11, lsl #2
	sub	x11, x11, #4
	mov	w12, #65534
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x11], #-4
	add	x13, x9, x13, lsl #3
	ldp	w14, w13, [x13]
	tst	w14, #0xff00
	cinc	w15, w12, eq
	and	x13, x13, x15
	str	w14, [x10, x13, lsl #2]
	subs	w8, w8, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_maxRAMcheats,4,2               ; @maxRAMcheats
	.comm	_cheatIndexes,8,3               ; @cheatIndexes
	.comm	_cheatlist,8,3                  ; @cheatlist
	.comm	_work_ram,8,3                   ; @work_ram
.subsections_via_symbols
