	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_input_st_string_cb_cheat_file_save_as
_menu_input_st_string_cb_cheat_file_save_as: ## @menu_input_st_string_cb_cheat_file_save_as
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_menu_input_dialog_get_label_buffer
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cheat_manager_save
	jmp	LBB0_7
LBB0_3:
	movq	%r15, %rdi
	callq	_menu_setting_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_setting_set_with_string_representation
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_menu_setting_generic
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_menu_input_dialog_end          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_menu_input_st_string_cb_cheat_file_save_as
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_input_st_string_cb_cheat_file_save_as
_menu_input_st_string_cb_cheat_file_save_as: ; @menu_input_st_string_cb_cheat_file_save_as
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_7
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_7
; %bb.2:
	bl	_config_get_ptr
	mov	x20, x0
	bl	_menu_input_dialog_get_label_buffer
	mov	x21, x0
	bl	_string_is_empty
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_string_is_empty
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_cheat_manager_save
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_menu_setting_find
	cbz	x0, LBB0_3
; %bb.6:
	mov	x22, x0
	mov	x1, x19
	bl	_setting_set_with_string_representation
	mov	x0, x22
	mov	w1, #0
	bl	_menu_setting_generic
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_menu_input_dialog_end
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_menu_input_st_string_cb_cheat_file_save_as
.subsections_via_symbols
