	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_del_window                 ## -- Begin function dlg_del_window
	.p2align	4, 0x90
_dlg_del_window:                        ## @dlg_del_window
	.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
	movq	_dialog_vars@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r12
	movq	_dialog_state@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.2:
	movq	_stdscr@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_touchwin
	movq	(%rbx), %rdi
	callq	_wnoutrefresh
LBB0_3:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	callq	_touchwin
	movq	8(%rbx), %rdi
	callq	_wnoutrefresh
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	cmpq	%r12, %rdi
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_touchwin
	movq	(%rbx), %rdi
	callq	_wnoutrefresh
	movq	8(%rbx), %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, 16(%rcx)
	movq	%rbx, %r14
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, 8(%r15)
	movq	%rbx, %r14
	jmp	LBB0_12
LBB0_13:
	testq	%r14, %r14
	je	LBB0_17
## %bb.14:
	cmpq	$0, 8(%r15)
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_erase_childs_shadow
LBB0_16:
	movq	8(%r14), %rdi
	callq	_del_subwindows
	movq	8(%r14), %rdi
	callq	_dlg_unregister_window
	movq	8(%r14), %rdi
	callq	_delwin
	movq	%r14, %rdi
	callq	_free
LBB0_17:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_doupdate                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_vars,8,3                ## @dialog_vars
	.comm	_dialog_state,16,3              ## @dialog_state
	.comm	_stdscr,8,3                     ## @stdscr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_del_window                 ; -- Begin function dlg_del_window
	.p2align	2
_dlg_del_window:                        ; @dlg_del_window
	.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
Lloh0:
	adrp	x8, _dialog_vars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dialog_vars@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x21, _dialog_state@GOTPAGE
Lloh4:
	ldr	x21, [x21, _dialog_state@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x20, _stdscr@GOTPAGE
Lloh6:
	ldr	x20, [x20, _stdscr@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_touchwin
	ldr	x0, [x20]
	bl	_wnoutrefresh
LBB0_4:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.5:
	mov	x22, #0
	mov	x20, #0
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_touchwin
	ldr	x0, [x22, #8]
	bl	_wnoutrefresh
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x22
	mov	x22, x8
	ldr	x0, [x8, #8]
	cmp	x0, x19
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x8
	bl	_touchwin
	ldr	x0, [x22]
	bl	_wnoutrefresh
	ldr	x0, [x22, #8]
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22, #16]
	cbz	x9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x8, [x9, #16]
	mov	x20, x22
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	str	x8, [x21, #8]
	mov	x20, x22
	b	LBB0_7
LBB0_14:
	cbz	x20, LBB0_18
; %bb.15:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_erase_childs_shadow
LBB0_17:
	ldr	x0, [x20, #8]
	bl	_del_subwindows
	ldr	x0, [x20, #8]
	bl	_dlg_unregister_window
	ldr	x0, [x20, #8]
	bl	_delwin
	mov	x0, x20
	bl	_free
LBB0_18:
	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	_doupdate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_vars,8,3                ; @dialog_vars
	.comm	_dialog_state,16,3              ; @dialog_state
	.comm	_stdscr,8,3                     ; @stdscr
.subsections_via_symbols
