	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cht_CheckCheat                 ## -- Begin function cht_CheckCheat
	.p2align	4, 0x90
_cht_CheckCheat:                        ## @cht_CheckCheat
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_firsttime@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	movq	_cheat_xlate_table@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_SCRAMBLE
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	movq	%rax, (%r15)
LBB0_5:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	movq	_cheat_xlate_table@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movzbl	%r14b, %esi
	cmpl	%ecx, (%rdx,%rsi,4)
	jne	LBB0_9
## %bb.8:
	addq	$4, %rax
	movq	%rax, (%r15)
	movq	%rax, %rcx
	jmp	LBB0_10
LBB0_6:
	movsbl	%r14b, %edx
	leaq	4(%rax), %rcx
	movq	%rcx, (%r15)
	movl	%edx, (%rax)
	jmp	LBB0_10
LBB0_9:
	movq	8(%r15), %rcx
	movq	%rcx, (%r15)
LBB0_10:
	movl	(%rcx), %edx
	cmpl	$255, %edx
	je	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	cmpl	$1, %edx
	jne	LBB0_15
## %bb.12:
	addq	$4, %rcx
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_13:
	movq	8(%r15), %rcx
	movl	$1, %eax
LBB0_14:
	movq	%rcx, (%r15)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_firsttime,8,3                  ## @firsttime
	.comm	_cheat_xlate_table,8,3          ## @cheat_xlate_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cht_CheckCheat                 ; -- Begin function cht_CheckCheat
	.p2align	2
_cht_CheckCheat:                        ; @cht_CheckCheat
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _firsttime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _firsttime@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x22, _cheat_xlate_table@GOTPAGE
Lloh3:
	ldr	x22, [x22, _cheat_xlate_table@GOTPAGEOFF]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x21, #0
	str	xzr, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_SCRAMBLE
	ldr	x8, [x22]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	cmp	x21, #256
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	w9, [x8]
	cbz	w9, LBB0_8
LBB0_5:
	ldr	x10, [x22]
	and	x11, x20, #0xff
	ldr	w10, [x10, x11, lsl #2]
	cmp	w10, w9
	b.ne	LBB0_9
; %bb.6:
	add	x8, x8, #4
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
	str	x8, [x19]
	ldr	w9, [x8]
	cbnz	w9, LBB0_5
LBB0_8:
	str	w20, [x8], #4
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
LBB0_10:
	str	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #255
	b.eq	LBB0_13
; %bb.11:
	cmp	w9, #1
	b.ne	LBB0_15
; %bb.12:
	mov	w0, #0
	add	x8, x8, #4
	b	LBB0_14
LBB0_13:
	ldr	x8, [x19, #8]
	mov	w0, #1
LBB0_14:
	str	x8, [x19]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_firsttime,8,3                  ; @firsttime
	.comm	_cheat_xlate_table,8,3          ; @cheat_xlate_table
.subsections_via_symbols
