	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_load             ## -- Begin function cheat_manager_load
	.p2align	4, 0x90
_cheat_manager_load:                    ## @cheat_manager_load
	.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	%esi, %r15d
	movq	%rdi, %r14
	movq	_cheat_manager_load_cb_first_pass@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_cheat_manager_state@GOTPCREL(%rip), %r12
	movl	$0, (%r12)
	leaq	-48(%rbp), %rsi
	callq	_config_file_new_with_callback
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	(%r12), %r12d
	movq	%rax, %rdi
	callq	_config_file_free
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_cheat_manager_alloc_if_empty
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_cheat_manager_get_size
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	addl	%eax, %r12d
	movq	_CHEAT_HANDLER_TYPE_EMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_cheat_manager_realloc
	movl	%ebx, %r13d
	jmp	LBB0_6
LBB0_5:
	movl	%r12d, %edi
	callq	_cheat_manager_new
LBB0_6:
	movq	_cheat_manager_state@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.7:
	cmpl	%r12d, %r13d
	jae	LBB0_10
## %bb.8:
	movl	%r13d, %eax
	movl	%r12d, %ecx
	leaq	(%rax,%rax,4), %rsi
	leaq	(%rdx,%rsi,8), %rdx
	xorps	%xmm0, %xmm0
	movq	_CHEAT_TYPE_SET_TO_VALUE@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdx)
	movq	$0, 4(%rdx)
	movups	%xmm0, 24(%rdx)
	movl	(%rsi), %edi
	movl	%edi, 16(%rdx)
	movl	$3, 12(%rdx)
	incq	%rax
	addq	$40, %rdx
	cmpq	%rcx, %rax
	jb	LBB0_9
LBB0_10:
	movq	_cheat_manager_state@GOTPCREL(%rip), %rax
	movl	%r13d, 4(%rax)
	movq	_cheat_manager_load_cb_second_pass@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_config_file_new_with_callback
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rdi
	callq	_config_file_free
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_load_cb_first_pass,4,2 ## @cheat_manager_load_cb_first_pass
	.comm	_cheat_manager_state,16,3       ## @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_EMU,4,2     ## @CHEAT_HANDLER_TYPE_EMU
	.comm	_CHEAT_TYPE_SET_TO_VALUE,4,2    ## @CHEAT_TYPE_SET_TO_VALUE
	.comm	_cheat_manager_load_cb_second_pass,4,2 ## @cheat_manager_load_cb_second_pass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_load             ; -- Begin function cheat_manager_load
	.p2align	2
_cheat_manager_load:                    ; @cheat_manager_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _cheat_manager_load_cb_first_pass@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cheat_manager_load_cb_first_pass@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x22, _cheat_manager_state@GOTPAGE
Lloh4:
	ldr	x22, [x22, _cheat_manager_state@GOTPAGEOFF]
	str	wzr, [x22]
	add	x1, sp, #8
	bl	_config_file_new_with_callback
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w21, [x22]
	bl	_config_file_free
	cbz	w21, LBB0_5
; %bb.2:
	bl	_cheat_manager_alloc_if_empty
	cbz	w20, LBB0_6
; %bb.3:
	bl	_cheat_manager_get_size
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
	add	w21, w20, w21
Lloh5:
	adrp	x8, _CHEAT_HANDLER_TYPE_EMU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHEAT_HANDLER_TYPE_EMU@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cheat_manager_realloc
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	mov	x0, x21
	bl	_cheat_manager_new
LBB0_7:
	ldr	x10, [x22, #8]
	cmp	x10, #0
	ccmp	w20, w21, #2, ne
	b.hs	LBB0_10
; %bb.8:
	mov	w8, w20
	mov	w9, w21
	mov	w11, #40
	umaddl	x10, w20, w11, x10
	add	x10, x10, #12
Lloh8:
	adrp	x11, _CHEAT_TYPE_SET_TO_VALUE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CHEAT_TYPE_SET_TO_VALUE@GOTPAGEOFF]
	mov	w12, #3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stur	xzr, [x10, #-8]
	stur	w8, [x10, #-12]
	stur	xzr, [x10, #20]
	stur	xzr, [x10, #12]
	ldr	w13, [x11]
	stp	w12, w13, [x10], #40
	add	x8, x8, #1
	cmp	x8, x9
	b.lo	LBB0_9
LBB0_10:
	str	w20, [x22, #4]
Lloh10:
	adrp	x8, _cheat_manager_load_cb_second_pass@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cheat_manager_load_cb_second_pass@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_config_file_new_with_callback
	cbz	x0, LBB0_12
; %bb.11:
	bl	_config_file_free
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_load_cb_first_pass,4,2 ; @cheat_manager_load_cb_first_pass
	.comm	_cheat_manager_state,16,3       ; @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_EMU,4,2     ; @CHEAT_HANDLER_TYPE_EMU
	.comm	_CHEAT_TYPE_SET_TO_VALUE,4,2    ; @CHEAT_TYPE_SET_TO_VALUE
	.comm	_cheat_manager_load_cb_second_pass,4,2 ; @cheat_manager_load_cb_second_pass
.subsections_via_symbols
