	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function attach_to_workspace
_attach_to_workspace:                   ## @attach_to_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_con_detach
	movq	16(%rbx), %r14
	movq	%r15, 16(%rbx)
	movq	_D_RIGHT@GOTPCREL(%rip), %rax
	leaq	12(%r15), %rdi
	movq	_nodes@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpq	%r12, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_D_DOWN@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
LBB0_4:
	leaq	8(%r15), %rdi
	movq	_focused@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_con_fix_percent
	movq	%r14, %rdi
	callq	_con_fix_percent
	movq	_on_remove_child@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CALL                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_RIGHT,8,3                    ## @D_RIGHT
	.comm	_D_DOWN,8,3                     ## @D_DOWN
	.comm	_nodes,4,2                      ## @nodes
	.comm	_focused,4,2                    ## @focused
	.comm	_on_remove_child,4,2            ## @on_remove_child
	.no_dead_strip	_attach_to_workspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function attach_to_workspace
_attach_to_workspace:                   ; @attach_to_workspace
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_con_detach
	ldr	x19, [x21, #16]
	str	x20, [x21, #16]
Lloh0:
	adrp	x8, _D_RIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_RIGHT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _D_DOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _D_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x20, #12
Lloh6:
	adrp	x10, _nodes@GOTPAGE
Lloh7:
	ldr	x10, [x10, _nodes@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x10]
	cmp	x8, x22
	mov	x1, x21
	ccmp	x9, x22, #4, ne
	b.ne	LBB0_2
; %bb.1:
	bl	_TAILQ_INSERT_HEAD
	b	LBB0_3
LBB0_2:
	bl	_TAILQ_INSERT_TAIL
LBB0_3:
	add	x0, x20, #8
Lloh9:
	adrp	x8, _focused@GOTPAGE
Lloh10:
	ldr	x8, [x8, _focused@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_TAILQ_INSERT_TAIL
	str	xzr, [x21]
	mov	x0, x20
	bl	_con_fix_percent
	mov	x0, x19
	bl	_con_fix_percent
Lloh12:
	adrp	x8, _on_remove_child@GOTPAGE
Lloh13:
	ldr	x8, [x8, _on_remove_child@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CALL
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_D_RIGHT,8,3                    ; @D_RIGHT
	.comm	_D_DOWN,8,3                     ; @D_DOWN
	.comm	_nodes,4,2                      ; @nodes
	.comm	_focused,4,2                    ; @focused
	.comm	_on_remove_child,4,2            ; @on_remove_child
	.no_dead_strip	_attach_to_workspace
.subsections_via_symbols
