	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_workspace_attach_to            ## -- Begin function workspace_attach_to
	.p2align	4, 0x90
_workspace_attach_to:                   ## @workspace_attach_to
	.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
	movq	%rdi, %rbx
	movq	24(%rdi), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	movq	(%rbx), %rax
	movq	_L_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DLOG
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_con_new
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DLOG
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_con_attach
	movq	%rbx, %rdi
	callq	_con_fix_percent
	movq	%r14, %rbx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attaching a window to workspace %p / %s\n"

	.comm	_L_DEFAULT,8,3                  ## @L_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Default layout, just attaching it to the workspace itself.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Non-default layout, creating a new split container\n"

L_.str.3:                               ## @.str.3
	.asciz	"Attaching new split %p to workspace %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_workspace_attach_to            ; -- Begin function workspace_attach_to
	.p2align	2
_workspace_attach_to:                   ; @workspace_attach_to
	.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, x0
	ldr	x8, [x0, #24]
	stp	x0, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _L_DEFAULT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _L_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	mov	x0, #0
	mov	x1, #0
	bl	_con_new
	mov	x20, x0
	ldr	x8, [x19]
	stp	x8, x19, [x0, #8]
	stp	x0, x19, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DLOG
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_con_attach
	mov	x0, x19
	bl	_con_fix_percent
	mov	x19, x20
LBB0_3:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attaching a window to workspace %p / %s\n"

	.comm	_L_DEFAULT,8,3                  ; @L_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Default layout, just attaching it to the workspace itself.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Non-default layout, creating a new split container\n"

l_.str.3:                               ; @.str.3
	.asciz	"Attaching new split %p to workspace %p\n"

.subsections_via_symbols
