	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_del_window                 ## -- Begin function tui_del_window
	.p2align	4, 0x90
_tui_del_window:                        ## @tui_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	callq	_tui_locator_win_info_ptr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r14
	movq	8(%rax), %rdi
	callq	_tui_delete_win
	movq	$0, 8(%r14)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_6:
	movl	56(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_8
## %bb.7:
	callq	_xfree
	movl	$0, 56(%rbx)
LBB0_8:
	movq	48(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	callq	_tui_delete_win
	movq	$0, 8(%r14)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_10
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.3:
	movl	40(%rbx), %esi
	movl	44(%rbx), %edi
	callq	_tui_del_data_windows
	movl	32(%rbx), %esi
	movl	36(%rbx), %edi
	callq	_tui_del_data_windows
LBB0_10:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_tui_delete_win
	movq	$0, 16(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_del_window                 ; -- Begin function tui_del_window
	.p2align	2
_tui_del_window:                        ; @tui_del_window
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_7
; %bb.1:
	bl	_tui_locator_win_info_ptr
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	x0, [x0, #8]
	bl	_tui_delete_win
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, xzr, [x20]
LBB0_3:
	ldr	w0, [x19, #56]
	cbz	w0, LBB0_5
; %bb.4:
	bl	_xfree
	str	wzr, [x19, #56]
LBB0_5:
	ldr	x20, [x19, #48]
	cbz	x20, LBB0_10
; %bb.6:
	ldr	x0, [x20, #8]
	bl	_tui_delete_win
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, xzr, [x20]
	b	LBB0_10
LBB0_7:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldp	w1, w0, [x19, #40]
	bl	_tui_del_data_windows
	ldp	w1, w0, [x19, #32]
	bl	_tui_del_data_windows
LBB0_10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_tui_delete_win
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stp	x8, xzr, [x19, #8]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
.subsections_via_symbols
