	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tree_next_workspace
_get_tree_next_workspace:               ## @get_tree_next_workspace
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_CF_GLOBAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_con_get_fullscreen_con
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	jmp	LBB0_5
LBB0_2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_get_output_containing
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_output_primary_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DLOG
	movq	_CLOSEST_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_get_output_next
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_output_primary_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DLOG
	movl	(%rbx), %edi
	callq	_output_get_content
	movl	%eax, %ebx
	movq	_child@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_workspace_is_visible
	xorl	%edi, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_GREP_FIRST
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CF_GLOBAL,4,2                  ## @CF_GLOBAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot change workspace while in global fullscreen mode.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Current output is %s\n"

	.comm	_CLOSEST_OUTPUT,4,2             ## @CLOSEST_OUTPUT
L_.str.2:                               ## @.str.2
	.asciz	"Next output is %s\n"

	.comm	_child,4,2                      ## @child
	.no_dead_strip	_get_tree_next_workspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tree_next_workspace
_get_tree_next_workspace:               ; @get_tree_next_workspace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CF_GLOBAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CF_GLOBAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_con_get_fullscreen_con
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	b	LBB0_5
LBB0_2:
	ldp	w1, w0, [x20]
	bl	_get_output_containing
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	bl	_output_primary_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
Lloh7:
	adrp	x8, _CLOSEST_OUTPUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CLOSEST_OUTPUT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_get_output_next
	cbz	x0, LBB0_5
; %bb.4:
	mov	x19, x0
	bl	_output_primary_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	ldr	w0, [x19]
	bl	_output_get_content
	mov	x19, x0
Lloh12:
	adrp	x8, _child@GOTPAGE
Lloh13:
	ldr	x8, [x8, _child@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_workspace_is_visible
	mov	x2, x0
	mov	x0, #0
	mov	x1, x19
	bl	_GREP_FIRST
LBB0_5:
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CF_GLOBAL,4,2                  ; @CF_GLOBAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot change workspace while in global fullscreen mode.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Current output is %s\n"

	.comm	_CLOSEST_OUTPUT,4,2             ; @CLOSEST_OUTPUT
l_.str.2:                               ; @.str.2
	.asciz	"Next output is %s\n"

	.comm	_child,4,2                      ; @child
	.no_dead_strip	_get_tree_next_workspace
.subsections_via_symbols
