	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_getty
_start_getty:                           ## @start_getty
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%edi, %edi
	callq	_time
	subq	(%r15), %rax
	jl	LBB0_3
## %bb.1:
	movq	_GETTY_SPACING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.2:
	movq	8(%r15), %rax
	leaq	1(%rax), %rcx
	movq	_GETTY_NSPACE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	setl	%r14b
	cmovlq	%rcx, %rsi
	movq	%rsi, 8(%r15)
	jmp	LBB0_4
LBB0_3:
	movq	$0, 8(%r15)
	movb	$1, %r14b
LBB0_4:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.6:
	testb	%r14b, %r14b
	jne	LBB0_8
## %bb.7:
	movl	16(%r15), %esi
	movq	_GETTY_SLEEP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_warning
	movl	(%rbx), %edi
	callq	_sleep
LBB0_8:
	cmpq	$0, 40(%r15)
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_start_window_system
	movq	_WINDOW_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sleep
LBB0_10:
	leaq	-116(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	cmpl	$0, 32(%r15)
	je	LBB0_12
## %bb.11:
	leaq	-96(%rbp), %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	movl	32(%r15), %esi
	movq	%r14, %rdi
	movl	$64, %edx
	callq	_strlcat
	movq	$0, -104(%rbp)
LBB0_12:
	movq	%r14, -112(%rbp)
	movq	24(%r15), %rsi
	movl	(%rsi), %edi
	leaq	-112(%rbp), %rdx
	callq	_execve
	movq	24(%r15), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_stall
	movl	$1, %edi
	callq	__exit
LBB0_13:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_emergency
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GETTY_SPACING,8,3              ## @GETTY_SPACING
	.comm	_GETTY_NSPACE,8,3               ## @GETTY_NSPACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't fork for getty on port %s: %m"

L_.str.1:                               ## @.str.1
	.asciz	"getty repeating too quickly on port %s, sleeping %d secs"

	.comm	_GETTY_SLEEP,8,3                ## @GETTY_SLEEP
	.comm	_WINDOW_WAIT,4,2                ## @WINDOW_WAIT
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
L_.str.2:                               ## @.str.2
	.asciz	"TERM="

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

	.comm	_RESOURCE_GETTY,4,2             ## @RESOURCE_GETTY
	.no_dead_strip	_start_getty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_getty
_start_getty:                           ; @start_getty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	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, #-40]
	mov	x0, #0
	bl	_time
	ldr	x8, [x19]
	subs	x8, x0, x8
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _GETTY_SPACING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GETTY_SPACING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _GETTY_NSPACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GETTY_NSPACE@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w21, lt
	csinc	x8, xzr, x9, ge
	str	x8, [x19, #8]
	b	LBB0_4
LBB0_3:
	str	xzr, [x19, #8]
	mov	w21, #1
LBB0_4:
	bl	_fork
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.5:
	cbnz	w20, LBB0_14
; %bb.6:
	tbnz	w21, #0, LBB0_8
; %bb.7:
	ldr	w1, [x19, #16]
Lloh9:
	adrp	x20, _GETTY_SLEEP@GOTPAGE
Lloh10:
	ldr	x20, [x20, _GETTY_SLEEP@GOTPAGEOFF]
	ldr	x2, [x20]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning
	ldr	w0, [x20]
	bl	_sleep
LBB0_8:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_start_window_system
Lloh13:
	adrp	x8, _WINDOW_WAIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINDOW_WAIT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_sleep
LBB0_10:
	add	x0, sp, #4
	bl	_sigemptyset
Lloh16:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #4
	mov	x2, #0
	bl	_sigprocmask
	mov	x20, #0
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_12
; %bb.11:
	add	x20, sp, #24
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_strcpy
	ldr	w1, [x19, #32]
	add	x0, sp, #24
	mov	w2, #64
	bl	_strlcat
	str	xzr, [sp, #16]
LBB0_12:
	str	x20, [sp, #8]
	ldr	x1, [x19, #24]
	ldr	w0, [x1]
	add	x2, sp, #8
	bl	_execve
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_stall
	mov	w0, #1
	bl	__exit
LBB0_13:
	ldr	w1, [x19, #16]
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_emergency
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GETTY_SPACING,8,3              ; @GETTY_SPACING
	.comm	_GETTY_NSPACE,8,3               ; @GETTY_NSPACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't fork for getty on port %s: %m"

l_.str.1:                               ; @.str.1
	.asciz	"getty repeating too quickly on port %s, sleeping %d secs"

	.comm	_GETTY_SLEEP,8,3                ; @GETTY_SLEEP
	.comm	_WINDOW_WAIT,4,2                ; @WINDOW_WAIT
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
l_.str.2:                               ; @.str.2
	.asciz	"TERM="

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

	.comm	_RESOURCE_GETTY,4,2             ; @RESOURCE_GETTY
	.no_dead_strip	_start_getty
.subsections_via_symbols
