	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_apply_retro_cheats ## -- Begin function cheat_manager_apply_retro_cheats
	.p2align	4, 0x90
_cheat_manager_apply_retro_cheats:      ## @cheat_manager_apply_retro_cheats
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -60(%rbp)
	movl	$1, -64(%rbp)
	movl	$8, -68(%rbp)
	movq	_cheat_manager_state@GOTPCREL(%rip), %r9
	movq	24(%r9), %rax
	testq	%rax, %rax
	je	LBB0_78
## %bb.1:
	cmpl	$0, (%r9)
	je	LBB0_78
## %bb.2:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
                                        ##       Child Loop BB0_73 Depth 3
	movq	$0, -56(%rbp)
	movq	%rbx, %r12
	shlq	$6, %r12
	movq	8(%rax,%r12), %rcx
	movq	_CHEAT_HANDLER_TYPE_RETRO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 56(%rax,%r12)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax,%r12), %r15d
	cmpl	$0, 36(%r9)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_cheat_manager_initialize_memory
	movq	_cheat_manager_state@GOTPCREL(%rip), %r9
	cmpl	$0, 36(%r9)
	je	LBB0_78
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r13d
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r9), %rax
	movl	52(%rax,%r12), %edi
	leaq	-64(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r9, %rbx
	callq	_cheat_manager_setup_search_meta
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rax, -56(%rbp)
	movl	16(%rcx,%r12), %ebx
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	callq	_translate_address
	movl	%eax, %r14d
	movl	-64(%rbp), %eax
	cmpl	$4, %eax
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %eax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax
	addq	%rbx, %rax
	movl	%r14d, %ecx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	negq	%rcx
	movq	_cheat_manager_state@GOTPCREL(%rip), %rdi
	cmpl	$0, 32(%rdi)
	movzbl	(%rdx), %edx
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	shll	$8, %edx
	movzbl	1(%rax,%rcx), %esi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r13d
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movl	(%r9), %eax
	cmpq	%rax, %rbx
	jae	LBB0_78
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r9), %rax
	movl	%r13d, %r14d
	jmp	LBB0_3
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax
	addq	%rbx, %rax
	movl	%r14d, %ecx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	negq	%rcx
	movq	_cheat_manager_state@GOTPCREL(%rip), %rdi
	cmpl	$0, 32(%rdi)
	movzbl	(%rdx), %edx
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	shll	$24, %edx
	movzbl	1(%rax,%rcx), %esi
	shll	$16, %esi
	orl	%edx, %esi
	movzbl	2(%rax,%rcx), %edx
	shll	$8, %edx
	orl	%esi, %edx
	movzbl	3(%rax,%rcx), %esi
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax
	addq	%rbx, %rax
	movl	%r14d, %ecx
	subq	%rcx, %rax
	movzbl	(%rax), %esi
	movq	_cheat_manager_state@GOTPCREL(%rip), %rdi
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rax,%rcx), %esi
	shll	$8, %esi
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	1(%rax,%rcx), %esi
	shll	$8, %esi
	orl	%edx, %esi
	movzbl	2(%rax,%rcx), %edx
	shll	$16, %edx
	orl	%esi, %edx
	movzbl	3(%rax,%rcx), %esi
	shll	$24, %esi
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	orl	%edx, %esi
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rdi), %rdi
	addq	%r12, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_cheat_manager_apply_rumble
	movq	_cheat_manager_state@GOTPCREL(%rip), %r9
	movq	24(%r9), %rax
	movl	20(%rax,%r12), %ecx
	addl	$-128, %ecx
	cmpl	$6, %ecx
	ja	LBB0_14
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rax,%r12), %ecx
	jmp	LBB0_31
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	24(%rax,%r12), %ecx
	setne	%r13b
	jmp	LBB0_14
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 24(%rax,%r12)
	setb	%r13b
	jmp	LBB0_14
LBB0_27:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 24(%rax,%r12)
	seta	%r13b
	jmp	LBB0_14
LBB0_28:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	24(%rax,%r12), %ecx
	sete	%r13b
	jmp	LBB0_14
LBB0_29:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	24(%rax,%r12), %ecx
	jmp	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	subl	24(%rax,%r12), %ecx
LBB0_31:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 28(%rax,%r12)
	je	LBB0_14
## %bb.32:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r13d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_35 Depth=2
	imull	-64(%rbp), %r8d
	addl	%r8d, %ebx
LBB0_34:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	16(%r9)
	movl	%edx, %ebx
	movl	%edx, %edi
	leaq	-56(%rbp), %rsi
	callq	_translate_address
	movq	_cheat_manager_state@GOTPCREL(%rip), %r9
	movl	%eax, %r14d
	incl	%r13d
	movq	24(%r9), %rax
	cmpl	28(%rax,%r12), %r13d
	ja	LBB0_77
LBB0_35:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_73 Depth 3
	movl	-64(%rbp), %ecx
	cmpl	$1, %ecx
	je	LBB0_40
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$4, %ecx
	je	LBB0_52
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$2, %ecx
	jne	LBB0_51
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$0, 48(%rax,%r12)
	je	LBB0_54
## %bb.39:                              ##   in Loop: Header=BB0_35 Depth=2
	movl	%ebx, %eax
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	movl	%r14d, %esi
	subq	%rsi, %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movb	%dh, (%rcx)
	addq	-56(%rbp), %rax
	subq	%rsi, %rax
	movb	%dl, 1(%rax)
	movl	%edx, %eax
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$7, -68(%rbp)
	ja	LBB0_51
## %bb.41:                              ##   in Loop: Header=BB0_35 Depth=2
	movl	%ebx, %esi
	addq	-56(%rbp), %rsi
	movl	%r14d, %ecx
	movq	%rsi, %rdx
	subq	%rcx, %rdx
	movb	(%rdx), %dl
	testb	$1, %r15b
	jne	LBB0_56
## %bb.42:                              ##   in Loop: Header=BB0_35 Depth=2
	testb	$2, %r15b
	jne	LBB0_57
LBB0_43:                                ##   in Loop: Header=BB0_35 Depth=2
	testb	$4, %r15b
	jne	LBB0_58
LBB0_44:                                ##   in Loop: Header=BB0_35 Depth=2
	testb	$8, %r15b
	jne	LBB0_59
LBB0_45:                                ##   in Loop: Header=BB0_35 Depth=2
	testb	$16, %r15b
	jne	LBB0_60
LBB0_46:                                ##   in Loop: Header=BB0_35 Depth=2
	testb	$32, %r15b
	jne	LBB0_61
LBB0_47:                                ##   in Loop: Header=BB0_35 Depth=2
	testb	$64, %r15b
	je	LBB0_49
LBB0_48:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$191, -60(%rbp)
	andb	$-65, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$64, %al
	orb	%al, %dl
LBB0_49:                                ##   in Loop: Header=BB0_35 Depth=2
	negq	%rcx
	testb	$-128, %r15b
	jne	LBB0_62
## %bb.50:                              ##   in Loop: Header=BB0_35 Depth=2
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	%ebx, %eax
	addq	-56(%rbp), %rax
	movl	%r14d, %ecx
	subq	%rcx, %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movb	%cl, (%rax)
	movl	%ecx, %eax
	jmp	LBB0_64
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$0, 48(%rax,%r12)
	je	LBB0_55
## %bb.53:                              ##   in Loop: Header=BB0_35 Depth=2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %ecx
	shrl	$24, %ecx
	movl	%ebx, %eax
	movq	-56(%rbp), %rdx
	addq	%rax, %rdx
	movl	%r14d, %esi
	subq	%rsi, %rdx
	movb	%cl, (%rdx)
	movl	%edi, %ecx
	shrl	$16, %ecx
	movq	-56(%rbp), %rdx
	addq	%rax, %rdx
	subq	%rsi, %rdx
	movb	%cl, 1(%rdx)
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	subq	%rsi, %rcx
	movl	%edi, %edx
	movb	%dh, 2(%rcx)
	addq	-56(%rbp), %rax
	subq	%rsi, %rax
	movb	%dl, 3(%rax)
	movl	%edi, %eax
	jmp	LBB0_64
LBB0_54:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	%ebx, %eax
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	movl	%r14d, %esi
	subq	%rsi, %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, (%rcx)
	addq	-56(%rbp), %rax
	subq	%rsi, %rax
	movb	%dh, 1(%rax)
	movl	%edx, %eax
	jmp	LBB0_64
LBB0_55:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	%ebx, %eax
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	movl	%r14d, %edi
	subq	%rdi, %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movb	%dl, (%rcx)
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	subq	%rdi, %rcx
	movb	%dh, 1(%rcx)
	movl	%edx, %ecx
	shrl	$16, %ecx
	movq	-56(%rbp), %rsi
	addq	%rax, %rsi
	subq	%rdi, %rsi
	movb	%cl, 2(%rsi)
	movl	%edx, %ecx
	shrl	$24, %ecx
	addq	-56(%rbp), %rax
	subq	%rdi, %rax
	movb	%cl, 3(%rax)
	movl	%edx, %eax
	jmp	LBB0_64
LBB0_56:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$254, -60(%rbp)
	andb	$-2, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$1, %al
	orb	%al, %dl
	testb	$2, %r15b
	je	LBB0_43
LBB0_57:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$253, -60(%rbp)
	andb	$-3, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$2, %al
	orb	%al, %dl
	testb	$4, %r15b
	je	LBB0_44
LBB0_58:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$251, -60(%rbp)
	andb	$-5, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$4, %al
	orb	%al, %dl
	testb	$8, %r15b
	je	LBB0_45
LBB0_59:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$247, -60(%rbp)
	andb	$-9, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$8, %al
	orb	%al, %dl
	testb	$16, %r15b
	je	LBB0_46
LBB0_60:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$239, -60(%rbp)
	andb	$-17, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$16, %al
	orb	%al, %dl
	testb	$32, %r15b
	je	LBB0_47
LBB0_61:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$223, -60(%rbp)
	andb	$-33, %dl
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $al killed $al killed $eax
	andb	$32, %al
	orb	%al, %dl
	testb	$64, %r15b
	jne	LBB0_48
	jmp	LBB0_49
LBB0_62:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	$127, -60(%rbp)
	andb	$127, %dl
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %eax
	andb	$-128, %al
	orb	%al, %dl
	movl	%edi, %eax
LBB0_63:                                ##   in Loop: Header=BB0_35 Depth=2
	movb	%dl, (%rsi,%rcx)
	.p2align	4, 0x90
LBB0_64:                                ##   in Loop: Header=BB0_35 Depth=2
	movq	24(%r9), %rsi
	addl	40(%rsi,%r12), %eax
	movl	-60(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_66
## %bb.65:                              ##   in Loop: Header=BB0_35 Depth=2
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_66:                                ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$7, -68(%rbp)
	movl	32(%rsi,%r12), %r8d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	ja	LBB0_33
## %bb.67:                              ##   in Loop: Header=BB0_35 Depth=2
	testl	%r8d, %r8d
	je	LBB0_34
## %bb.68:                              ##   in Loop: Header=BB0_35 Depth=2
	cmpl	$1, %r8d
	jne	LBB0_71
LBB0_69:                                ##   in Loop: Header=BB0_35 Depth=2
	testb	$1, %r8b
	je	LBB0_34
## %bb.70:                              ##   in Loop: Header=BB0_35 Depth=2
	shll	%cl, %r15d
	movzbl	%r15b, %r15d
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	cmovel	%ecx, %r15d
	addl	%eax, %ebx
	jmp	LBB0_34
LBB0_71:                                ##   in Loop: Header=BB0_35 Depth=2
	movl	%r8d, %edx
	andl	$-2, %edx
	jmp	LBB0_73
	.p2align	4, 0x90
LBB0_72:                                ##   in Loop: Header=BB0_73 Depth=3
	movb	%al, %sil
	addl	%esi, %ebx
	addl	$-2, %edx
	je	LBB0_69
LBB0_73:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	shll	%cl, %r15d
	xorl	%edi, %edi
	movl	%ecx, %esi
	testb	%r15b, %r15b
	sete	%al
	je	LBB0_75
## %bb.74:                              ##   in Loop: Header=BB0_73 Depth=3
	movl	%r15d, %esi
LBB0_75:                                ##   in Loop: Header=BB0_73 Depth=3
	movb	%al, %dil
	addl	%edi, %ebx
	shll	%cl, %esi
	movzbl	%sil, %edi
	xorl	%esi, %esi
	movl	%ecx, %r15d
	testl	%edi, %edi
	sete	%al
	je	LBB0_72
## %bb.76:                              ##   in Loop: Header=BB0_73 Depth=3
	movl	%edi, %r15d
	jmp	LBB0_72
LBB0_77:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r13d
	jmp	LBB0_14
LBB0_78:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_cheat_manager_state,40,3       ## @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_RETRO,8,3   ## @CHEAT_HANDLER_TYPE_RETRO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_apply_retro_cheats ; -- Begin function cheat_manager_apply_retro_cheats
	.p2align	2
_cheat_manager_apply_retro_cheats:      ; @cheat_manager_apply_retro_cheats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w8, #1
	stp	w8, wzr, [sp, #24]
	mov	w8, #8
	str	w8, [sp, #20]
Lloh0:
	adrp	x22, _cheat_manager_state@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cheat_manager_state@GOTPAGEOFF]
	ldr	x8, [x22, #24]
	ldr	w9, [x22]
	cmp	x8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x23, #0
	mov	w19, #1
Lloh2:
	adrp	x24, _CHEAT_HANDLER_TYPE_RETRO@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CHEAT_HANDLER_TYPE_RETRO@GOTPAGEOFF]
	mov	w28, #254
Lloh4:
	adrp	x25, lJTI0_0@PAGE
Lloh5:
	add	x25, x25, lJTI0_0@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
                                        ;       Child Loop BB0_55 Depth 3
	str	xzr, [sp, #8]
	add	x8, x8, x23, lsl #6
	ldr	x9, [x8, #8]
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_64
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x8, #56]
	cbz	w9, LBB0_64
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w26, [x8]
	ldr	w8, [x22, #36]
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, #0
	mov	w1, #0
	bl	_cheat_manager_initialize_memory
	ldr	w8, [x22, #36]
	cbz	w8, LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w19, LBB0_63
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #24]
	lsl	x27, x23, #6
	add	x8, x8, x27
	ldr	w0, [x8, #52]
	add	x1, sp, #24
	add	x2, sp, #28
	add	x3, sp, #20
	bl	_cheat_manager_setup_search_meta
	ldr	x8, [x22, #8]
	str	x8, [sp, #8]
	ldr	x8, [x22, #24]
	add	x8, x8, x27
	ldr	w19, [x8, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_translate_address
	mov	x20, x0
	ldr	w8, [sp, #24]
	cmp	w8, #4
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #2
	b.ne	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x22, #32]
	ldr	x8, [sp, #8]
	mov	w12, w20
	neg	x9, x12
	add	x10, x8, x19
	sub	x8, x10, x12
	ldrb	w8, [x8]
	add	x9, x10, x9
	cbz	w11, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w21, [x9, #1]
	bfi	w21, w8, #8, #8
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x22, #32]
	ldr	x9, [sp, #8]
	mov	w11, w20
	neg	x8, x11
	add	x9, x9, x19
	sub	x11, x9, x11
	ldrb	w21, [x11]
	cbz	w10, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	lsl	w10, w21, #24
	add	x8, x9, x8
	ldrb	w9, [x8, #1]
	bfi	w10, w9, #16, #8
	ldrb	w9, [x8, #2]
	bfi	w10, w9, #8, #8
	ldrb	w8, [x8, #3]
	orr	w21, w10, w8
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #8]
	add	x8, x8, x19
	sub	x8, x8, w20, uxtw
	ldrb	w21, [x8]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x9, #1]
	bfi	w8, w9, #8, #8
	mov	x21, x8
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x8
	ldrb	w9, [x8, #1]
	bfi	w21, w9, #8, #8
	ldrb	w9, [x8, #2]
	bfi	w21, w9, #16, #8
	ldrb	w8, [x8, #3]
	bfi	w21, w8, #24, #8
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #24]
	add	x0, x8, x27
	mov	x1, x21
	bl	_cheat_manager_apply_rumble
	ldr	x8, [x22, #24]
	add	x9, x8, x27
	ldr	w9, [x9, #20]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hi	LBB0_63
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	adr	x10, LBB0_19
	ldrb	w11, [x25, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x23, lsl #6
	ldr	w21, [x9, #24]
	b	LBB0_26
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23, lsl #6
	ldr	w8, [x8, #24]
	cmp	w21, w8
	cset	w19, ne
	b	LBB0_64
LBB0_21:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23, lsl #6
	ldr	w8, [x8, #24]
	cmp	w8, w21
	cset	w19, lo
	b	LBB0_64
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23, lsl #6
	ldr	w8, [x8, #24]
	cmp	w8, w21
	cset	w19, hi
	b	LBB0_64
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23, lsl #6
	ldr	w8, [x8, #24]
	cmp	w21, w8
	cset	w19, eq
	b	LBB0_64
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x23, lsl #6
	ldr	w9, [x9, #24]
	add	w21, w9, w21
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x23, lsl #6
	ldr	w9, [x9, #24]
	sub	w21, w21, w9
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x8, x23, lsl #6
	ldr	w9, [x9, #28]
	cbz	w9, LBB0_63
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #1
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	w8, [sp, #24]
	madd	w19, w8, w9, w19
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	w8, [x22, #16]
	udiv	w9, w19, w8
	msub	w19, w9, w8, w19
	add	x1, sp, #8
	mov	x0, x19
	bl	_translate_address
	mov	x20, x0
	add	w27, w27, #1
	ldr	x8, [x22, #24]
	add	x9, x8, x23, lsl #6
	ldr	w9, [x9, #28]
	cmp	w27, w9
	b.hi	LBB0_63
LBB0_30:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_55 Depth 3
	ldr	w9, [sp, #24]
	cmp	w9, #1
	b.eq	LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	cmp	w9, #4
	b.eq	LBB0_47
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	cmp	w9, #2
	b.ne	LBB0_46
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=2
	add	x8, x8, x23, lsl #6
	ldr	w10, [x8, #48]
	mov	w8, w19
	lsr	w9, w21, #8
	cbz	w10, LBB0_49
; %bb.34:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x10, [sp, #8]
	mov	w11, w20
	add	x10, x10, x8
	sub	x10, x10, x11
	strb	w9, [x10]
	ldr	x9, [sp, #8]
	add	x8, x9, x8
	sub	x8, x8, x11
	strb	w21, [x8, #1]
	b	LBB0_51
LBB0_35:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	w8, [sp, #20]
	cmp	w8, #7
	b.hi	LBB0_46
; %bb.36:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x8, [sp, #8]
	add	x8, x8, w19, uxtw
	mov	w10, w20
	sub	x9, x8, x10
	ldrb	w9, [x9]
	tbnz	w26, #0, LBB0_56
; %bb.37:                               ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w26, #1, LBB0_57
LBB0_38:                                ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w26, #2, LBB0_58
LBB0_39:                                ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w26, #3, LBB0_59
LBB0_40:                                ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w26, #4, LBB0_60
LBB0_41:                                ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w26, #5, LBB0_61
LBB0_42:                                ;   in Loop: Header=BB0_30 Depth=2
	tbnz	w26, #6, LBB0_62
LBB0_43:                                ;   in Loop: Header=BB0_30 Depth=2
	neg	x10, x10
	tbz	w26, #7, LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #127
	str	w11, [sp, #28]
	mov	x11, x21
	bfxil	w11, w9, #0, #7
	mov	x9, x11
LBB0_45:                                ;   in Loop: Header=BB0_30 Depth=2
	strb	w9, [x8, x10]
	b	LBB0_51
LBB0_46:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x8, [sp, #8]
	add	x8, x8, w19, uxtw
	sub	x8, x8, w20, uxtw
	strb	w21, [x8]
	b	LBB0_51
LBB0_47:                                ;   in Loop: Header=BB0_30 Depth=2
	add	x8, x8, x23, lsl #6
	ldr	w10, [x8, #48]
	lsr	w8, w21, #16
	lsr	w9, w21, #24
	cbz	w10, LBB0_50
; %bb.48:                               ;   in Loop: Header=BB0_30 Depth=2
	ldr	x10, [sp, #8]
	mov	w11, w19
	mov	w12, w20
	add	x10, x10, x11
	sub	x10, x10, x12
	strb	w9, [x10]
	ldr	x9, [sp, #8]
	add	x9, x9, x11
	sub	x9, x9, x12
	strb	w8, [x9, #1]
	lsr	w8, w21, #8
	ldr	x9, [sp, #8]
	add	x9, x9, x11
	sub	x9, x9, x12
	strb	w8, [x9, #2]
	ldr	x8, [sp, #8]
	add	x8, x8, x11
	sub	x8, x8, x12
	strb	w21, [x8, #3]
	b	LBB0_51
LBB0_49:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x10, [sp, #8]
	mov	w11, w20
	add	x10, x10, x8
	sub	x10, x10, x11
	strb	w21, [x10]
	ldr	x10, [sp, #8]
	add	x8, x10, x8
	sub	x8, x8, x11
	strb	w9, [x8, #1]
	b	LBB0_51
LBB0_50:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x10, [sp, #8]
	mov	w11, w19
	mov	w12, w20
	add	x10, x10, x11
	sub	x10, x10, x12
	strb	w21, [x10]
	lsr	w10, w21, #8
	ldr	x13, [sp, #8]
	add	x13, x13, x11
	sub	x13, x13, x12
	strb	w10, [x13, #1]
	ldr	x10, [sp, #8]
	add	x10, x10, x11
	sub	x10, x10, x12
	strb	w8, [x10, #2]
	ldr	x8, [sp, #8]
	add	x8, x8, x11
	sub	x8, x8, x12
	strb	w9, [x8, #3]
LBB0_51:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	x8, [x22, #24]
	add	x9, x8, x23, lsl #6
	ldr	w8, [x9, #40]
	add	w21, w21, w8
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_30 Depth=2
	udiv	w10, w21, w8
	msub	w21, w10, w8, w21
LBB0_53:                                ;   in Loop: Header=BB0_30 Depth=2
	ldr	w10, [sp, #20]
	ldr	w9, [x9, #32]
	cmp	w10, #7
	b.hi	LBB0_28
; %bb.54:                               ;   in Loop: Header=BB0_30 Depth=2
	cbz	w9, LBB0_29
LBB0_55:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_30 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	lsl	w10, w26, w8
	ands	w10, w10, #0xff
	cinc	w19, w19, eq
	csel	w26, w8, w10, eq
	subs	w9, w9, #1
	b.ne	LBB0_55
	b	LBB0_29
LBB0_56:                                ;   in Loop: Header=BB0_30 Depth=2
	str	w28, [sp, #28]
	and	w9, w9, #0xfe
	bfxil	w9, w21, #0, #1
	tbz	w26, #1, LBB0_38
LBB0_57:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #253
	str	w11, [sp, #28]
	and	w9, w9, #0xfffffffd
	and	w11, w21, #0x2
	orr	w9, w9, w11
	tbz	w26, #2, LBB0_39
LBB0_58:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #251
	str	w11, [sp, #28]
	lsr	w11, w21, #2
	bfi	w9, w11, #2, #1
	tbz	w26, #3, LBB0_40
LBB0_59:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #247
	str	w11, [sp, #28]
	lsr	w11, w21, #3
	bfi	w9, w11, #3, #1
	tbz	w26, #4, LBB0_41
LBB0_60:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #239
	str	w11, [sp, #28]
	lsr	w11, w21, #4
	bfi	w9, w11, #4, #1
	tbz	w26, #5, LBB0_42
LBB0_61:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #223
	str	w11, [sp, #28]
	lsr	w11, w21, #5
	bfi	w9, w11, #5, #1
	tbz	w26, #6, LBB0_43
LBB0_62:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	w11, #191
	str	w11, [sp, #28]
	lsr	w11, w21, #6
	bfi	w9, w11, #6, #1
	neg	x10, x10
	tbnz	w26, #7, LBB0_44
	b	LBB0_45
LBB0_63:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w19, #1
LBB0_64:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	cmp	x23, x8
	b.hs	LBB0_1
; %bb.65:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #24]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_19)>>2
	.byte	(LBB0_20-LBB0_19)>>2
	.byte	(LBB0_21-LBB0_19)>>2
	.byte	(LBB0_22-LBB0_19)>>2
	.byte	(LBB0_23-LBB0_19)>>2
	.byte	(LBB0_24-LBB0_19)>>2
	.byte	(LBB0_25-LBB0_19)>>2
                                        ; -- End function
	.comm	_cheat_manager_state,40,3       ; @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_RETRO,8,3   ; @CHEAT_HANDLER_TYPE_RETRO
.subsections_via_symbols
