	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_next                      ## -- Begin function tree_next
	.p2align	4, 0x90
_tree_next:                             ## @tree_next
	.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
	callq	_get_tree_next
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_CT_WORKSPACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_con_descend_focused
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	_CF_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_con_descend_tiling_focused
	cmpq	%r14, %rax
	cmovneq	%rax, %rbx
LBB0_4:
	movq	%r14, %rdi
	callq	_workspace_show
	movq	%rbx, %rdi
	callq	_con_activate
	addq	$32, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_x_set_warp_to                  ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CT_FLOATING_CON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movq	24(%r14), %r15
	addq	$16, %r15
	movq	_floating_head@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_TAILQ_LAST
	cmpq	%r14, %rax
	je	LBB0_9
## %bb.7:
	movq	_floating_windows@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_TAILQ_LAST
	movq	%rax, %rbx
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_REMOVE
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_TAILQ_LAST
	cmpq	%r14, %rax
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	callq	_con_get_workspace
	movq	%rax, %rdi
	callq	_workspace_show
	movq	%r14, %rdi
	callq	_con_descend_focused
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_con_activate                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CT_WORKSPACE,8,3               ## @CT_WORKSPACE
	.comm	_CF_NONE,8,3                    ## @CF_NONE
	.comm	_CT_FLOATING_CON,8,3            ## @CT_FLOATING_CON
	.comm	_floating_head,4,2              ## @floating_head
	.comm	_floating_windows,4,2           ## @floating_windows
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tree_next                      ; -- Begin function tree_next
	.p2align	2
_tree_next:                             ; @tree_next
	.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
	bl	_get_tree_next
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CT_WORKSPACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CT_WORKSPACE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_con_descend_focused
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _CF_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CF_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_con_descend_tiling_focused
	cmp	x0, x19
	csel	x20, x20, x0, eq
LBB0_4:
	mov	x0, x19
	bl	_workspace_show
	mov	x0, x20
	bl	_con_activate
	add	x0, x20, #32
	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	_x_set_warp_to
LBB0_5:
	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
	ret
LBB0_6:
Lloh6:
	adrp	x9, _CT_FLOATING_CON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CT_FLOATING_CON@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19, #24]
	add	x20, x8, #16
Lloh9:
	adrp	x22, _floating_head@GOTPAGE
Lloh10:
	ldr	x22, [x22, _floating_head@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_TAILQ_LAST
	cmp	x0, x19
	b.eq	LBB0_10
; %bb.8:
Lloh11:
	adrp	x23, _floating_windows@GOTPAGE
Lloh12:
	ldr	x23, [x23, _floating_windows@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x20
	bl	_TAILQ_LAST
	mov	x21, x0
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_REMOVE
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_TAILQ_INSERT_HEAD
	ldr	w1, [x22]
	mov	x0, x20
	bl	_TAILQ_LAST
	cmp	x0, x19
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_con_get_workspace
	bl	_workspace_show
	mov	x0, x19
	bl	_con_descend_focused
	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	_con_activate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CT_WORKSPACE,8,3               ; @CT_WORKSPACE
	.comm	_CF_NONE,8,3                    ; @CF_NONE
	.comm	_CT_FLOATING_CON,8,3            ; @CT_FLOATING_CON
	.comm	_floating_head,4,2              ; @floating_head
	.comm	_floating_windows,4,2           ; @floating_windows
.subsections_via_symbols
