	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_free_window                ## -- Begin function tui_free_window
	.p2align	4, 0x90
_tui_free_window:                       ## @tui_free_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
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%r14), %rdi
	callq	_tui_delete_win
	movq	$0, 16(%r14)
LBB0_6:
	movq	%r14, %rdi
	callq	_tui_free_win_content
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_xfree
	movq	$0, 88(%rbx)
LBB0_8:
	movq	80(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	16(%r14), %rdi
	callq	_tui_delete_win
	movq	$0, 16(%r14)
	movq	%r14, %rdi
	callq	_tui_free_win_content
	jmp	LBB0_10
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.2:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.3:
	movq	72(%rbx), %rdi
	movl	64(%rbx), %esi
	callq	_tui_free_data_content
	movq	$0, 72(%rbx)
	movl	$0, 64(%rbx)
	movq	56(%rbx), %rdi
	movl	52(%rbx), %esi
	callq	_tui_free_data_content
	movq	$0, 56(%rbx)
	movl	$0, 52(%rbx)
	movq	_TUI_UNDEFINED_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	$1, 40(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	$0, 32(%rbx)
	movl	$0, 24(%rbx)
LBB0_10:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_tui_delete_win
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_tui_free_win_content
LBB0_12:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_xfree
LBB0_14:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TUI_UNDEFINED_REGS,4,2         ## @TUI_UNDEFINED_REGS
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_free_window                ; -- Begin function tui_free_window
	.p2align	2
_tui_free_window:                       ; @tui_free_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
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #16]
	bl	_tui_delete_win
	str	xzr, [x20, #16]
LBB0_3:
	mov	x0, x20
	bl	_tui_free_win_content
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_xfree
	str	xzr, [x19, #88]
LBB0_5:
	ldr	x20, [x19, #80]
	cbz	x20, LBB0_10
; %bb.6:
	ldr	x0, [x20, #16]
	bl	_tui_delete_win
	str	xzr, [x20, #16]
	mov	x0, x20
	bl	_tui_free_win_content
	b	LBB0_10
LBB0_7:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x0, [x19, #72]
	ldr	w1, [x19, #64]
	bl	_tui_free_data_content
	str	xzr, [x19, #72]
	str	wzr, [x19, #64]
	ldr	x0, [x19, #56]
	ldr	w1, [x19, #52]
	bl	_tui_free_data_content
Lloh0:
	adrp	x8, _TUI_UNDEFINED_REGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUI_UNDEFINED_REGS@GOTPAGEOFF]
	str	xzr, [x19, #56]
Lloh2:
	ldr	w8, [x8]
	stp	w8, wzr, [x19, #48]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	ldr	w8, [x8]
	stp	w9, w8, [x19, #40]
	str	xzr, [x19, #32]
	str	wzr, [x19, #24]
LBB0_10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_tui_delete_win
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_tui_free_win_content
LBB0_12:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_xfree
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TUI_UNDEFINED_REGS,4,2         ; @TUI_UNDEFINED_REGS
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
