	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_window_system
_start_window_system:                   ## @start_window_system
	.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
	subq	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_fork
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	leaq	-96(%rbp), %rsi
	movl	$-1, %edi
	xorl	%edx, %edx
	callq	_waitpid
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.3:
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_emergency                      ## TAILCALL
LBB0_15:
	callq	___stack_chk_fail
LBB0_6:
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.16:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_emergency
	movl	$1, %edi
	callq	__exit
LBB0_9:
	leaq	-116(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	xorl	%eax, %eax
	callq	_setsid
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_emergency
LBB0_11:
	cmpl	$0, 16(%rbx)
	jne	LBB0_13
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_8:
	xorl	%edi, %edi
	callq	__exit
LBB0_13:
	leaq	-96(%rbp), %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_strlcat
	movq	$0, -104(%rbp)
LBB0_14:
	movq	%r14, -112(%rbp)
	movq	8(%rbx), %rsi
	movl	(%rsi), %edi
	leaq	-112(%rbp), %rdx
	callq	_execve
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_stall
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't fork for window system on port %s: %m"

	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
L_.str.1:                               ## @.str.1
	.asciz	"setsid failed (window) %m"

L_.str.2:                               ## @.str.2
	.asciz	"TERM="

L_.str.3:                               ## @.str.3
	.asciz	"can't exec window system '%s' for port %s: %m"

	.comm	_RESOURCE_WINDOW,4,2            ## @RESOURCE_WINDOW
	.no_dead_strip	_start_window_system
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_window_system
_start_window_system:                   ; @start_window_system
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_fork
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	cbz	w0, LBB0_7
; %bb.2:
	add	x1, sp, #40
	mov	w0, #-1
	mov	w2, #0
	bl	_waitpid
	b	LBB0_4
LBB0_3:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_emergency
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
LBB0_7:
	bl	_fork
	cbz	w0, LBB0_10
; %bb.8:
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.9:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_emergency
	mov	w0, #1
	bl	__exit
LBB0_10:
	add	x0, sp, #20
	bl	_sigemptyset
Lloh10:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #20
	mov	x2, #0
	bl	_sigprocmask
	bl	_setsid
	tbz	x0, #63, LBB0_12
; %bb.11:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_emergency
LBB0_12:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_15
; %bb.13:
	mov	x20, #0
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	bl	__exit
LBB0_15:
	add	x20, sp, #40
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #40
	bl	_strcpy
	ldr	w1, [x19, #16]
	add	x0, sp, #40
	mov	w2, #64
	bl	_strlcat
	str	xzr, [sp, #32]
LBB0_16:
	str	x20, [sp, #24]
	ldr	x1, [x19, #8]
	ldr	w0, [x1]
	add	x2, sp, #24
	bl	_execve
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_stall
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't fork for window system on port %s: %m"

	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
l_.str.1:                               ; @.str.1
	.asciz	"setsid failed (window) %m"

l_.str.2:                               ; @.str.2
	.asciz	"TERM="

l_.str.3:                               ; @.str.3
	.asciz	"can't exec window system '%s' for port %s: %m"

	.comm	_RESOURCE_WINDOW,4,2            ; @RESOURCE_WINDOW
	.no_dead_strip	_start_window_system
.subsections_via_symbols
