	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_ok_cheat_add_new_after
_action_ok_cheat_add_new_after:         ## @action_ok_cheat_add_new_after
	.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	%rbx
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$0, -300(%rbp)
	xorl	%eax, %eax
	callq	_cheat_manager_get_size
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	movq	_CHEAT_HANDLER_TYPE_EMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cheat_manager_realloc
	movq	_cheat_manager_state@GOTPCREL(%rip), %r14
	movq	8(%r14), %rax
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rsi
	addq	$-4, %rsi
	leaq	-296(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leal	1(%rdx), %eax
	movl	%eax, -296(%rbp)
	addl	$-2, %ecx
	cmpl	%edx, %ecx
	jle	LBB0_1
## %bb.2:
	movslq	%ecx, %r15
	movq	8(%r14), %rsi
	leaq	(,%r15,4), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%rbx), %rdi
	addq	$4, %rdi
	addq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%r14), %rsi
	incl	4(%rsi,%rbx)
	decq	%r15
	movslq	4(%r14), %rax
	addq	$-4, %rbx
	cmpq	%rax, %r15
	jg	LBB0_3
## %bb.4:
	incl	%eax
	jmp	LBB0_5
LBB0_1:
	movq	8(%r14), %rsi
LBB0_5:
	cltq
	leaq	(%rsi,%rax,4), %rdi
	leaq	-296(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_MENU_ENTRIES_CTL_SET_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-300(%rbp), %rsi
	callq	_menu_entries_ctl
	movq	_RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	movq	_MSG_CHEAT_ADD_AFTER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	-288(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_strlcpy
	movb	$0, -33(%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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CHEAT_HANDLER_TYPE_EMU,4,2     ## @CHEAT_HANDLER_TYPE_EMU
	.comm	_cheat_manager_state,16,3       ## @cheat_manager_state
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ## @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_RARCH_MENU_CTL_SET_PREVENT_POPULATE,4,2 ## @RARCH_MENU_CTL_SET_PREVENT_POPULATE
	.comm	_MSG_CHEAT_ADD_AFTER_SUCCESS,4,2 ## @MSG_CHEAT_ADD_AFTER_SUCCESS
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.no_dead_strip	_action_ok_cheat_add_new_after
.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_add_new_after
_action_ok_cheat_add_new_after:         ; @action_ok_cheat_add_new_after
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	wzr, [sp, #12]
	bl	_cheat_manager_get_size
	add	w0, w0, #1
Lloh3:
	adrp	x8, _CHEAT_HANDLER_TYPE_EMU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHEAT_HANDLER_TYPE_EMU@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_cheat_manager_realloc
Lloh6:
	adrp	x19, _cheat_manager_state@GOTPAGE
Lloh7:
	ldr	x19, [x19, _cheat_manager_state@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	sub	x1, x8, #4
	add	x0, sp, #16
	mov	w2, #4
	bl	_memcpy
	ldp	w10, w8, [x19]
	add	w9, w8, #1
	str	w9, [sp, #16]
	sub	w10, w10, #2
	cmp	w10, w8
	b.le	LBB0_4
; %bb.1:
	sxtw	x20, w10
	ldr	x8, [x19, #8]
	sbfiz	x9, x10, #2, #32
	add	x21, x9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x8, x21
	sub	x1, x0, #4
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x21]
	add	w9, w9, #1
	str	w9, [x8, x21]
	sub	x20, x20, #1
	ldrsw	x9, [x19, #4]
	sub	x21, x21, #4
	cmp	x20, x9
	b.gt	LBB0_2
; %bb.3:
	add	w9, w9, #1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
LBB0_5:
	add	x0, x8, w9, sxtw #2
	add	x1, sp, #16
	mov	w2, #4
	bl	_memcpy
Lloh8:
	adrp	x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_menu_entries_ctl
Lloh11:
	adrp	x8, _RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
Lloh14:
	adrp	x8, _MSG_CHEAT_ADD_AFTER_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_CHEAT_ADD_AFTER_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	add	x0, sp, #24
	mov	w2, #256
	bl	_strlcpy
	strb	wzr, [sp, #279]
Lloh17:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
Lloh20:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	add	x0, sp, #24
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldur	x8, [x29, #-40]
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_7
; %bb.6:
	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
	add	sp, sp, #336
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_CHEAT_HANDLER_TYPE_EMU,4,2     ; @CHEAT_HANDLER_TYPE_EMU
	.comm	_cheat_manager_state,16,3       ; @cheat_manager_state
	.comm	_MENU_ENTRIES_CTL_SET_REFRESH,4,2 ; @MENU_ENTRIES_CTL_SET_REFRESH
	.comm	_RARCH_MENU_CTL_SET_PREVENT_POPULATE,4,2 ; @RARCH_MENU_CTL_SET_PREVENT_POPULATE
	.comm	_MSG_CHEAT_ADD_AFTER_SUCCESS,4,2 ; @MSG_CHEAT_ADD_AFTER_SUCCESS
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.no_dead_strip	_action_ok_cheat_add_new_after
.subsections_via_symbols
