	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dialog_clear                   ## -- Begin function dialog_clear
	.p2align	4, 0x90
_dialog_clear:                          ## @dialog_clear
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_stdscr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_getmaxy
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_getmaxx
	movl	%eax, %r12d
	movl	(%r15), %edi
	movq	_dlg@GOTPCREL(%rip), %rbx
	movl	16(%rbx), %ecx
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_attr_clear
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.1:
	movl	(%r15), %edi
	movl	16(%rbx), %esi
	callq	_wattrset
	movl	(%r15), %edi
	movq	8(%rbx), %rcx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_mvwaddstr
	movq	(%rbx), %rbx
	movl	$0, %r13d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r13d
	addl	$3, %r13d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_4:
	movl	(%r15), %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_wmove
	leal	-2(%r12), %eax
	cmpl	%eax, %r13d
	jle	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %r14
	movq	%r14, %rsi
	callq	_waddstr
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	%r13d, %ecx
	subl	%r12d, %ecx
	leal	(%rcx,%rax), %r14d
	addl	$2, %r14d
LBB0_6:
	movq	_dlg@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %edi
	movslq	%r14d, %rsi
	addq	(%rbx), %rsi
	callq	_waddstr
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %edi
	movl	$32, %esi
	callq	_waddch
	xorl	%r14d, %r14d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %r14d
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %edi
	movq	_ACS_RARROW@GOTPCREL(%rip), %rax
	movsbl	(%rax), %esi
	callq	_waddch
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r15), %edi
	movl	$32, %esi
	callq	_waddch
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addl	$-2, %r14d
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rdi
	callq	_strlen
	cmpl	%eax, %r14d
	jl	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%rbx), %rdi
	callq	_strlen
	cmpl	%eax, %r14d
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	notl	%eax
	addl	%eax, %r14d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_8:
	leal	-1(%r12), %eax
	leal	1(%r13), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_11
## %bb.9:
	subl	%r13d, %r12d
	addl	$-2, %r12d
	movq	_ACS_HLINE@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movsbl	(%rbx), %esi
	callq	_waddch
	decl	%r12d
	jne	LBB0_10
LBB0_11:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wnoutrefresh                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stdscr,4,2                     ## @stdscr
	.comm	_dlg,24,3                       ## @dlg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[...] "

	.comm	_ACS_RARROW,1,0                 ## @ACS_RARROW
	.comm	_ACS_HLINE,1,0                  ## @ACS_HLINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dialog_clear                   ; -- Begin function dialog_clear
	.p2align	2
_dialog_clear:                          ; @dialog_clear
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x21, _stdscr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stdscr@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_getmaxy
	mov	x20, x0
	ldr	w0, [x21]
	bl	_getmaxx
	mov	x19, x0
	ldr	w0, [x21]
Lloh2:
	adrp	x23, _dlg@GOTPAGE
Lloh3:
	ldr	x23, [x23, _dlg@GOTPAGEOFF]
	ldr	w3, [x23, #16]
	mov	x1, x20
	mov	x2, x19
	bl	_attr_clear
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_23
; %bb.1:
	ldr	w0, [x21]
	ldr	w1, [x23, #16]
	bl	_wattrset
	ldr	w0, [x21]
	ldr	x3, [x23, #8]
	mov	w1, #0
	mov	w2, #1
	bl	_mvwaddstr
	ldr	x20, [x23]
	cbz	x20, LBB0_4
; %bb.2:
	mov	w22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_strlen
	add	w8, w22, w0
	add	w22, w8, #3
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldr	w0, [x21]
	mov	w1, #1
	mov	w2, #1
	bl	_wmove
	sub	w8, w19, #2
	cmp	w22, w8
	b.le	LBB0_7
; %bb.6:
	ldr	w0, [x21]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	bl	_waddstr
	mov	x0, x20
	bl	_strlen
	sub	w8, w22, w19
	add	w8, w8, w0
	add	w8, w8, #2
	ldr	x20, [x23]
	cbnz	x20, LBB0_8
	b	LBB0_20
LBB0_7:
	mov	w8, #0
	ldr	x20, [x23]
	cbz	x20, LBB0_20
LBB0_8:
Lloh6:
	adrp	x23, _ACS_RARROW@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ACS_RARROW@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mvn	w8, w0
	add	w8, w24, w8
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cbnz	w8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x21]
	ldrsb	w1, [x23]
	bl	_waddch
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x21]
	mov	w1, #32
	bl	_waddch
	mov	w24, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	w24, w8, #2
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x20]
	bl	_strlen
	cmp	w24, w0
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x21]
	ldr	x8, [x20]
	add	x1, x8, w24, sxtw
	bl	_waddstr
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x20]
	bl	_strlen
	cmp	w24, w0
	b.ne	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x21]
	mov	w1, #32
	bl	_waddch
	mov	w8, #0
	b	LBB0_10
LBB0_20:
	sub	w8, w19, #1
	add	w9, w22, #1
	cmp	w9, w8
	b.ge	LBB0_23
; %bb.21:
	sub	w8, w19, w22
	sub	w19, w8, #2
Lloh8:
	adrp	x20, _ACS_HLINE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _ACS_HLINE@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldrsb	w1, [x20]
	bl	_waddch
	subs	w19, w19, #1
	b.ne	LBB0_22
LBB0_23:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wnoutrefresh
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_stdscr,4,2                     ; @stdscr
	.comm	_dlg,24,3                       ; @dlg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[...] "

	.comm	_ACS_RARROW,1,0                 ; @ACS_RARROW
	.comm	_ACS_HLINE,1,0                  ; @ACS_HLINE
.subsections_via_symbols
