	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_apply_cheats     ## -- Begin function cheat_manager_apply_cheats
	.p2align	4, 0x90
_cheat_manager_apply_cheats:            ## @cheat_manager_apply_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cheat_manager_state@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_core_reset_cheat
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movl	$16, %ebx
	movq	_CHEAT_HANDLER_TYPE_EMU@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movl	(%r15), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$24, %rbx
	cmpq	%rcx, %r14
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx,%rbx)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-16(%rcx,%rbx), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, -48(%rbp)
	movl	$1, -56(%rbp)
	movl	-8(%rcx,%rbx), %edi
	movl	%edi, -52(%rbp)
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_core_set_cheat
	jmp	LBB0_7
LBB0_9:
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_MSG_APPLYING_CHEAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movl	%eax, %edi
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_RARCH_LOG
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_state,16,3       ## @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_EMU,8,3     ## @CHEAT_HANDLER_TYPE_EMU
	.comm	_MSG_APPLYING_CHEAT,4,2         ## @MSG_APPLYING_CHEAT
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_apply_cheats     ; -- Begin function cheat_manager_apply_cheats
	.p2align	2
_cheat_manager_apply_cheats:            ; @cheat_manager_apply_cheats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x19, _cheat_manager_state@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cheat_manager_state@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.1:
	bl	_core_reset_cheat
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.2:
	mov	x20, #0
	mov	x21, #0
	mov	w22, #0
Lloh2:
	adrp	x23, _CHEAT_HANDLER_TYPE_EMU@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CHEAT_HANDLER_TYPE_EMU@GOTPAGEOFF]
	mov	w24, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, #1
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	add	x20, x20, #24
	cmp	x21, w8, uxtw
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x10, x9, x20
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x9, x20]
	ldr	x11, [x23]
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w22, [sp, #8]
	add	x8, x9, x20
	ldr	w0, [x8, #8]
	stp	w24, w0, [sp]
	bl	_string_is_empty
	cbnz	w0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	bl	_core_set_cheat
	b	LBB0_3
LBB0_9:
	cbz	w8, LBB0_11
; %bb.10:
Lloh4:
	adrp	x19, _MSG_APPLYING_CHEAT@GOTPAGE
Lloh5:
	ldr	x19, [x19, _MSG_APPLYING_CHEAT@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_msg_hash_to_str
Lloh6:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldr	w0, [x19]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_state,16,3       ; @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_EMU,8,3     ; @CHEAT_HANDLER_TYPE_EMU
	.comm	_MSG_APPLYING_CHEAT,4,2         ; @MSG_APPLYING_CHEAT
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

.subsections_via_symbols
