	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_delete
_do_delete:                             ## @do_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_menu_draw_begin
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ecx
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_me_sfont_w@GOTPCREL(%rip), %r13
	movl	%esi, %eax
	cltd
	idivl	(%r13)
	movl	%eax, %ebx
	cmpl	%eax, %ecx
	cmovll	%ecx, %ebx
	movl	%esi, %r12d
	shrl	$31, %r12d
	addl	%esi, %r12d
	sarl	%r12d
	movq	_me_mfont_w@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%r12d, %edi
	subl	%ecx, %edi
	movq	_me_mfont_h@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	shll	$3, %esi
	leaq	L_.str(%rip), %rdx
	callq	_text_out16
	imull	(%r13), %ebx
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movl	%r12d, %edi
	subl	%eax, %edi
	movl	(%r14), %eax
	leal	(%rax,%rax,8), %esi
	addl	$5, %esi
	movq	%r15, %rdx
	movl	$48639, %ecx                    ## imm = 0xBDFF
	callq	_smalltext_out16
	movq	_me_mfont_w@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rcx,4), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%r12d, %edi
	subl	%ecx, %edi
	movl	(%r14), %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rax,%rcx,2), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_text_out16
	movq	_PBTN_MA3@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movl	$-1, %edi
	callq	_in_get_key_name
	leaq	L_.str.2(%rip), %rdx
	leaq	-112(%rbp), %r15
	movl	$64, %ebx
	movq	%r15, %rdi
	movl	$64, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	_PBTN_MBACK@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movl	$-1, %edi
	callq	_in_get_key_name
	movslq	%r13d, %rcx
	leaq	(%rcx,%rbp), %rdi
	addq	$-112, %rdi
	subl	%ecx, %ebx
	leaq	L_.str.3(%rip), %rdx
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movq	_me_mfont_w@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r12d
	movl	(%r14), %eax
	shll	$2, %eax
	leal	(%rax,%rax,2), %esi
	movl	%r12d, %edi
	movq	%r15, %rdx
	callq	_text_out16
	xorl	%eax, %eax
	callq	_menu_draw_end
	movq	_PBTN_MENU@GOTPCREL(%rip), %r14
	movq	_PBTN_MA2@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movl	$50, %esi
	callq	_in_menu_wait_any
	movl	(%rbx), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_PBTN_MBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PBTN_MA3@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$100, %edx
	callq	_in_menu_wait
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_remove
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_me_sfont_w,4,2                 ## @me_sfont_w
	.comm	_me_mfont_w,4,2                 ## @me_mfont_w
	.comm	_me_mfont_h,4,2                 ## @me_mfont_h
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"About to delete"

L_.str.1:                               ## @.str.1
	.asciz	"Are you sure?"

	.comm	_PBTN_MA3,4,2                   ## @PBTN_MA3
L_.str.2:                               ## @.str.2
	.asciz	"(%s - confirm, "

	.comm	_PBTN_MBACK,4,2                 ## @PBTN_MBACK
L_.str.3:                               ## @.str.3
	.asciz	"%s - cancel)"

	.comm	_PBTN_MENU,4,2                  ## @PBTN_MENU
	.comm	_PBTN_MA2,4,2                   ## @PBTN_MA2
	.no_dead_strip	_do_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_delete
_do_delete:                             ; @do_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	mov	w0, #1
	mov	w1, #0
	bl	_menu_draw_begin
	mov	x0, x20
	bl	_strlen
Lloh3:
	adrp	x8, _g_menuscreen_w@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_menuscreen_w@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x24, _me_sfont_w@GOTPAGE
Lloh7:
	ldr	x24, [x24, _me_sfont_w@GOTPAGEOFF]
	ldr	w9, [x24]
	sdiv	w9, w8, w9
	cmp	w0, w9
	csel	w25, w0, w9, lt
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w21, w8, #1
Lloh8:
	adrp	x22, _me_mfont_w@GOTPAGE
Lloh9:
	ldr	x22, [x22, _me_mfont_w@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w9, w8, #4
	sub	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
Lloh10:
	adrp	x23, _me_mfont_h@GOTPAGE
Lloh11:
	ldr	x23, [x23, _me_mfont_h@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w1, w8, #3
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_text_out16
	ldr	w8, [x24]
	mul	w8, w8, w25
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #3
	add	w1, w8, #5
	mov	x2, x20
	mov	w3, #48639
	bl	_smalltext_out16
	ldr	w8, [x22]
	mov	w9, #13
	mul	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
	ldr	w8, [x23]
	mov	w9, #11
	mul	w1, w8, w9
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_text_out16
Lloh16:
	adrp	x24, _PBTN_MA3@GOTPAGE
Lloh17:
	ldr	x24, [x24, _PBTN_MA3@GOTPAGEOFF]
	ldr	w8, [x24]
	neg	w1, w8
	mov	w0, #-1
	bl	_in_get_key_name
	mov	x3, x0
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x26, sp, #8
	mov	w27, #64
	add	x0, sp, #8
	mov	w1, #64
	bl	_snprintf
	add	x0, sp, #8
	bl	_strlen
	mov	x20, x0
Lloh20:
	adrp	x25, _PBTN_MBACK@GOTPAGE
Lloh21:
	ldr	x25, [x25, _PBTN_MBACK@GOTPAGEOFF]
	ldr	w8, [x25]
	neg	w1, w8
	mov	w0, #-1
	bl	_in_get_key_name
	mov	x3, x0
	add	x0, x26, w20, sxtw
	sub	w1, w27, w20
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_snprintf
	add	x0, sp, #8
	bl	_strlen
	ldr	w8, [x22]
	mul	w8, w8, w0
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #2
	add	x2, sp, #8
	bl	_text_out16
	bl	_menu_draw_end
Lloh24:
	adrp	x20, _PBTN_MENU@GOTPAGE
Lloh25:
	ldr	x20, [x20, _PBTN_MENU@GOTPAGEOFF]
Lloh26:
	adrp	x21, _PBTN_MA2@GOTPAGE
Lloh27:
	ldr	x21, [x21, _PBTN_MA2@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	mov	w1, #50
	bl	_in_menu_wait_any
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_1
; %bb.2:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w0, w9, w8
	mov	x1, #0
	mov	w2, #100
	bl	_in_menu_wait
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_remove
LBB0_4:
	ldr	x8, [sp, #72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_me_sfont_w,4,2                 ; @me_sfont_w
	.comm	_me_mfont_w,4,2                 ; @me_mfont_w
	.comm	_me_mfont_h,4,2                 ; @me_mfont_h
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"About to delete"

l_.str.1:                               ; @.str.1
	.asciz	"Are you sure?"

	.comm	_PBTN_MA3,4,2                   ; @PBTN_MA3
l_.str.2:                               ; @.str.2
	.asciz	"(%s - confirm, "

	.comm	_PBTN_MBACK,4,2                 ; @PBTN_MBACK
l_.str.3:                               ; @.str.3
	.asciz	"%s - cancel)"

	.comm	_PBTN_MENU,4,2                  ; @PBTN_MENU
	.comm	_PBTN_MA2,4,2                   ; @PBTN_MA2
	.no_dead_strip	_do_delete
.subsections_via_symbols
