	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_ok_cheat_add_bottom
_action_ok_cheat_add_bottom:            ## @action_ok_cheat_add_bottom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -276(%rbp)
	xorl	%eax, %eax
	callq	_cheat_manager_get_size
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	movq	_MENU_ENTRIES_CTL_SET_REFRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-276(%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	_CHEAT_HANDLER_TYPE_EMU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_cheat_manager_realloc
	movb	$0, -272(%rbp)
	movq	_MSG_CHEAT_ADD_BOTTOM_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	-272(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_strlcpy
	movb	$0, -17(%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	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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	_CHEAT_HANDLER_TYPE_EMU,4,2     ## @CHEAT_HANDLER_TYPE_EMU
	.comm	_MSG_CHEAT_ADD_BOTTOM_SUCCESS,4,2 ## @MSG_CHEAT_ADD_BOTTOM_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_bottom
.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_bottom
_action_ok_cheat_add_bottom:            ; @action_ok_cheat_add_bottom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	str	wzr, [sp, #4]
	bl	_cheat_manager_get_size
	add	w19, w0, #1
Lloh3:
	adrp	x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SET_REFRESH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_menu_entries_ctl
Lloh6:
	adrp	x8, _RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RARCH_MENU_CTL_SET_PREVENT_POPULATE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
Lloh9:
	adrp	x8, _CHEAT_HANDLER_TYPE_EMU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHEAT_HANDLER_TYPE_EMU@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cheat_manager_realloc
	strb	wzr, [sp, #8]
Lloh12:
	adrp	x8, _MSG_CHEAT_ADD_BOTTOM_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_CHEAT_ADD_BOTTOM_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #256
	bl	_strlcpy
	strb	wzr, [sp, #263]
Lloh15:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
Lloh18:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
	ldur	x8, [x29, #-24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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	_CHEAT_HANDLER_TYPE_EMU,4,2     ; @CHEAT_HANDLER_TYPE_EMU
	.comm	_MSG_CHEAT_ADD_BOTTOM_SUCCESS,4,2 ; @MSG_CHEAT_ADD_BOTTOM_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_bottom
.subsections_via_symbols
