	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_ok_cheat_delete
_action_ok_cheat_delete:                ## @action_ok_cheat_delete
	.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
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_cheat_manager_get_size
	movl	%eax, %r14d
	decl	%r14d
	je	LBB0_9
## %bb.1:
	movq	_cheat_manager_state@GOTPCREL(%rip), %r15
	movq	8(%r15), %rdi
	movq	16(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rax
	movq	8(%rdi,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_free
	movq	8(%r15), %rdi
	movq	16(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rax
	movq	$0, 8(%rdi,%rax,8)
LBB0_3:
	leaq	(%rcx,%rcx,2), %rax
	movq	(%rdi,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_free
	movq	8(%r15), %rdi
	movq	16(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rax
	movq	$0, (%rdi,%rax,8)
LBB0_5:
	movl	(%r15), %eax
	decl	%eax
	cmpl	%ecx, %eax
	jbe	LBB0_8
## %bb.6:
	movl	%ecx, %r12d
	leaq	(,%r12,8), %rax
	leaq	(%rax,%rax,2), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r12
	leaq	(%rdi,%rbx), %rsi
	addq	$24, %rsi
	addq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r15), %rdi
	decl	16(%rdi,%rbx)
	movl	(%r15), %eax
	decl	%eax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jb	LBB0_7
LBB0_8:
	cltq
	leaq	(%rax,%rax,2), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi,%rax,8)
LBB0_9:
	movq	_CHEAT_HANDLER_TYPE_RETRO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_cheat_manager_realloc
	movq	_MSG_CHEAT_DELETE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_strlcpy
	movb	$0, -49(%rbp)
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movq	%rax, -312(%rbp)
	leaq	-312(%rbp), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_menu_entries_pop_stack
	movq	-312(%rbp), %rdi
	callq	_menu_navigation_set_selection
	movq	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	movq	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cheat_manager_state,24,3       ## @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_RETRO,4,2   ## @CHEAT_HANDLER_TYPE_RETRO
	.comm	_MSG_CHEAT_DELETE_SUCCESS,4,2   ## @MSG_CHEAT_DELETE_SUCCESS
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH,4,2 ## @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE,4,2 ## @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE
	.no_dead_strip	_action_ok_cheat_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_ok_cheat_delete
_action_ok_cheat_delete:                ; @action_ok_cheat_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_cheat_manager_get_size
	subs	w19, w0, #1
	b.eq	LBB0_9
; %bb.1:
Lloh3:
	adrp	x20, _cheat_manager_state@GOTPAGE
Lloh4:
	ldr	x20, [x20, _cheat_manager_state@GOTPAGEOFF]
	ldp	x8, x9, [x20, #8]
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	x0, [x10, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
	ldp	x8, x9, [x20, #8]
	mov	w10, #24
	madd	x10, x9, x10, x8
	str	xzr, [x10, #8]
LBB0_3:
	mov	w10, #24
	mul	x10, x9, x10
	ldr	x0, [x8, x10]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
	ldp	x8, x9, [x20, #8]
	mov	w10, #24
	mul	x10, x9, x10
	str	xzr, [x8, x10]
LBB0_5:
	ldr	w10, [x20]
	sub	w10, w10, #1
	cmp	w10, w9
	b.ls	LBB0_8
; %bb.6:
	and	x21, x9, #0xffffffff
	add	x9, x21, w9, uxtw #1
	lsl	x22, x9, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x22
	add	x21, x21, #1
	add	x1, x0, #24
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #8]
	add	x9, x8, x22
	ldr	w10, [x9, #16]
	sub	w10, w10, #1
	str	w10, [x9, #16]
	ldr	w9, [x20]
	sub	w10, w9, #1
	add	x22, x22, #24
	cmp	x21, x10
	b.lo	LBB0_7
LBB0_8:
	mov	w9, #24
	smaddl	x8, w10, w9, x8
	stp	xzr, xzr, [x8]
LBB0_9:
Lloh5:
	adrp	x8, _CHEAT_HANDLER_TYPE_RETRO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHEAT_HANDLER_TYPE_RETRO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cheat_manager_realloc
Lloh8:
	adrp	x8, _MSG_CHEAT_DELETE_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_CHEAT_DELETE_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #256
	bl	_strlcpy
	strb	wzr, [sp, #263]
Lloh11:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
Lloh14:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	bl	_menu_navigation_get_selection
	str	x0, [sp]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #1
	bl	_menu_entries_pop_stack
	ldr	x0, [sp]
	bl	_menu_navigation_set_selection
Lloh17:
	adrp	x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
Lloh20:
	adrp	x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cheat_manager_state,24,3       ; @cheat_manager_state
	.comm	_CHEAT_HANDLER_TYPE_RETRO,4,2   ; @CHEAT_HANDLER_TYPE_RETRO
	.comm	_MSG_CHEAT_DELETE_SUCCESS,4,2   ; @MSG_CHEAT_DELETE_SUCCESS
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH,4,2 ; @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_PATH
	.comm	_RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE,4,2 ; @RARCH_MENU_CTL_UPDATE_SAVESTATE_THUMBNAIL_IMAGE
	.no_dead_strip	_action_ok_cheat_delete
.subsections_via_symbols
