	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function move_to_output_directed
_move_to_output_directed:               ## @move_to_output_directed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_get_output_for_con
	movq	_CLOSEST_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_get_output_next
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %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
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DLOG                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOSEST_OUTPUT,4,2             ## @CLOSEST_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No output in this direction found. Not moving.\n"

	.comm	_child,4,2                      ## @child
L_.str.1:                               ## @.str.1
	.asciz	"No workspace on output in this direction found. Not moving.\n"

	.comm	_focused,8,3                    ## @focused
	.comm	_croot,4,2                      ## @croot
	.no_dead_strip	_move_to_output_directed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function move_to_output_directed
_move_to_output_directed:               ; @move_to_output_directed
	.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, x1
	bl	_get_output_for_con
	mov	x1, x0
Lloh0:
	adrp	x8, _CLOSEST_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOSEST_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_get_output_next
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	bl	_output_get_content
	mov	x19, x0
Lloh3:
	adrp	x8, _child@GOTPAGE
Lloh4:
	ldr	x8, [x8, _child@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_workspace_is_visible
	mov	x2, x0
	mov	x0, #0
	mov	x1, x19
	bl	_GREP_FIRST
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DLOG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOSEST_OUTPUT,4,2             ; @CLOSEST_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No output in this direction found. Not moving.\n"

	.comm	_child,4,2                      ; @child
l_.str.1:                               ; @.str.1
	.asciz	"No workspace on output in this direction found. Not moving.\n"

	.comm	_focused,8,3                    ; @focused
	.comm	_croot,4,2                      ; @croot
	.no_dead_strip	_move_to_output_directed
.subsections_via_symbols
