	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_add_last_key               ## -- Begin function dlg_add_last_key
	.p2align	4, 0x90
_dlg_add_last_key:                      ## @dlg_add_last_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_dialog_vars@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.1:
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_8
## %bb.2:
	je	LBB0_4
## %bb.3:
	movq	_last_getc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_dlg_add_string
	jmp	LBB0_9
LBB0_8:
	movq	_last_getc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	movq	%r14, %rdi
	callq	_dlg_add_string
	cmpl	$-1, %ebx
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	callq	_dlg_add_separator
	jmp	LBB0_10
LBB0_4:
	xorl	%eax, %eax
	callq	_dlg_need_separator
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_dlg_add_separator
LBB0_6:
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.7:
	movq	_last_getc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%rbx, %rdi
	callq	_dlg_add_string
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_vars,8,3                ## @dialog_vars
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_last_getc,4,2                  ## @last_getc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_add_last_key               ; -- Begin function dlg_add_last_key
	.p2align	2
_dlg_add_last_key:                      ; @dlg_add_last_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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]
Lloh3:
	adrp	x20, _dialog_vars@GOTPAGE
Lloh4:
	ldr	x20, [x20, _dialog_vars@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	cbz	w19, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _last_getc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _last_getc@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	add	x0, sp, #8
	bl	_dlg_add_string
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _last_getc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _last_getc@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	add	x0, sp, #8
	bl	_dlg_add_string
	cmn	w19, #1
	b.ne	LBB0_10
LBB0_5:
	bl	_dlg_add_separator
	b	LBB0_10
LBB0_6:
	bl	_dlg_need_separator
	cbz	x0, LBB0_8
; %bb.7:
	bl	_dlg_add_separator
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _last_getc@GOTPAGE
Lloh16:
	ldr	x8, [x8, _last_getc@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	add	x0, sp, #8
	bl	_dlg_add_string
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_vars,8,3                ; @dialog_vars
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_last_getc,4,2                  ; @last_getc
.subsections_via_symbols
