	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_con_close                      ## -- Begin function con_close
	.p2align	4, 0x90
_con_close:                             ## @con_close
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	movq	(%rbx), %rdx
	movq	_CT_OUTPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_7
## %bb.1:
	movq	_CT_ROOT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_7
## %bb.2:
	movq	_CT_WORKSPACE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_8
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %rbx
	movq	_focused@GOTPCREL(%rip), %r13
	leaq	L_.str.3(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_TAILQ_NEXT
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_tree_close_internal
	movq	%r12, %rbx
	testq	%r12, %r12
	jne	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DLOG                           ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tree_close_internal            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Closing con = %p.\n"

	.comm	_CT_OUTPUT,8,3                  ## @CT_OUTPUT
	.comm	_CT_ROOT,8,3                    ## @CT_ROOT
L_.str.1:                               ## @.str.1
	.asciz	"con = %p is of type %d, not closing anything.\n"

	.comm	_CT_WORKSPACE,8,3               ## @CT_WORKSPACE
L_.str.2:                               ## @.str.2
	.asciz	"con = %p is a workspace, closing all children instead.\n"

	.comm	_focused,4,2                    ## @focused
L_.str.3:                               ## @.str.3
	.asciz	"killing child = %p.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_con_close                      ; -- Begin function con_close
	.p2align	2
_con_close:                             ; @con_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DLOG
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _CT_OUTPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CT_OUTPUT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _CT_ROOT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CT_ROOT@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DLOG
	b	LBB0_6
LBB0_2:
Lloh10:
	adrp	x9, _CT_WORKSPACE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CT_WORKSPACE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DLOG
	add	x0, x20, #8
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh15:
	adrp	x23, _focused@GOTPAGE
Lloh16:
	ldr	x23, [x23, _focused@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str.3@PAGE
Lloh18:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_TAILQ_NEXT
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_DLOG
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_tree_close_internal
	mov	x20, x22
	cbnz	x22, LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_tree_close_internal
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Closing con = %p.\n"

	.comm	_CT_OUTPUT,8,3                  ; @CT_OUTPUT
	.comm	_CT_ROOT,8,3                    ; @CT_ROOT
l_.str.1:                               ; @.str.1
	.asciz	"con = %p is of type %d, not closing anything.\n"

	.comm	_CT_WORKSPACE,8,3               ; @CT_WORKSPACE
l_.str.2:                               ; @.str.2
	.asciz	"con = %p is a workspace, closing all children instead.\n"

	.comm	_focused,4,2                    ; @focused
l_.str.3:                               ; @.str.3
	.asciz	"killing child = %p.\n"

.subsections_via_symbols
