	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function clean_ttys
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_clean_ttys:                            ## @clean_ttys
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_sessions@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_SE_PRESENT@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	notl	%edx
	andl	%edx, (%rax)
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_getttyent
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r14
	movq	_SE_PRESENT@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_new_session
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_getttyent
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_14
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rbx
	movq	(%r14), %rdi
	movq	56(%rax), %rsi
	addq	$3, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %eax
	orl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	_TTY_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r14)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_SE_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	callq	_strdup
	movq	%rax, %r15
	jmp	LBB0_23
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_SE_SHUTDOWN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	jmp	LBB0_13
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	callq	_strdup
	movq	%rax, %r12
	jmp	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r12d, %r12d
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	callq	_strdup
	movq	%rax, %r13
	jmp	LBB0_29
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_setupargv
	testq	%rax, %rax
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r15, %r15
	je	LBB0_44
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rax
	testq	%r13, %r13
	je	LBB0_33
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	jne	LBB0_35
	jmp	LBB0_44
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warning
	movq	_SE_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_45
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	jne	LBB0_44
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rax
	testq	%r12, %r12
	je	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rsi
	movq	%r12, %rdi
	jmp	LBB0_41
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	jne	LBB0_44
## %bb.37:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	48(%rbx), %rsi
	movq	%r15, %rdi
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_42
LBB0_44:                                ##   in Loop: Header=BB0_5 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
LBB0_45:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx), %edi
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kill
	testq	%r15, %r15
	je	LBB0_47
LBB0_46:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_free
LBB0_47:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_free
LBB0_49:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r13, %r13
	movq	_sessions@GOTPCREL(%rip), %r15
	movq	_SE_PRESENT@GOTPCREL(%rip), %r12
	je	LBB0_13
## %bb.50:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_42:                                ##   in Loop: Header=BB0_5 Depth=1
	testq	%r13, %r13
	je	LBB0_46
## %bb.43:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_44
	jmp	LBB0_46
LBB0_14:
	xorl	%eax, %eax
	callq	_endttyent
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.15:
	movq	_SE_PRESENT@GOTPCREL(%rip), %r14
	movq	_SE_SHUTDOWN@GOTPCREL(%rip), %r15
	movq	_SIGHUP@GOTPCREL(%rip), %r12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	orl	(%r15), %eax
	movl	%eax, (%rbx)
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	callq	_kill
	jmp	LBB0_18
LBB0_19:
	movq	_multi_user@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sessions,8,3                   ## @sessions
	.comm	_SE_PRESENT,4,2                 ## @SE_PRESENT
	.comm	_TTY_ON,4,2                     ## @TTY_ON
	.comm	_SE_SHUTDOWN,4,2                ## @SE_SHUTDOWN
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't parse getty for port %s"

	.comm	_multi_user,4,2                 ## @multi_user
	.no_dead_strip	_clean_ttys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clean_ttys
_clean_ttys:                            ; @clean_ttys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x25, _sessions@GOTPAGE
Lloh1:
	ldr	x25, [x25, _sessions@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _SE_PRESENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SE_PRESENT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_3:
	bl	_getttyent
	cbz	x0, LBB0_42
; %bb.4:
	mov	x23, x0
Lloh4:
	adrp	x26, _SE_PRESENT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _SE_PRESENT@GOTPAGEOFF]
Lloh6:
	adrp	x27, _TTY_ON@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TTY_ON@GOTPAGEOFF]
Lloh8:
	adrp	x28, _SE_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x28, [x28, _SE_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	adrp	x19, _SIGHUP@GOTPAGE
Lloh11:
	ldr	x19, [x19, _SIGHUP@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x20, #0
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_new_session
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_getttyent
	mov	x23, x0
	cbz	x0, LBB0_42
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x25]
	cbz	x8, LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	ldr	x0, [x23]
	ldr	x8, [x8, #56]
	add	x1, x8, #3
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_9
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w9, [x23, #8]
	ldr	w10, [x27]
	tst	w10, w9
	b.eq	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x23, #16]
	cbz	x9, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x28]
	bic	w8, w8, w9
	str	w8, [x20]
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_strdup
	mov	x21, x0
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_strdup
	mov	x22, x0
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_strdup
	mov	x24, x0
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x28]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w0, [x20, #4]
	ldr	w1, [x19]
	bl	_kill
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, #0
	ldr	x0, [x20, #40]
	cbnz	x0, LBB0_15
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
	ldr	x0, [x20, #32]
	cbnz	x0, LBB0_16
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, #0
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_setupargv
	cbz	x0, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	x21, LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #32]
	cbz	x24, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	x8, LBB0_27
	b	LBB0_35
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x20, #56]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	ldr	w8, [x28]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_36
LBB0_26:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	x8, LBB0_35
LBB0_27:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #40]
	cbz	x22, LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	x8, LBB0_35
; %bb.29:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x20, #48]
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_35
; %bb.30:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x20, #40]
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_35
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	x8, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x20, #48]
	mov	x0, x21
	bl	_strcmp
	cbnz	x0, LBB0_35
LBB0_33:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x24, LBB0_37
; %bb.34:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x20, #32]
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_8 Depth=1
	stp	xzr, xzr, [x20, #16]
LBB0_36:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #4]
	ldr	w1, [x19]
	bl	_kill
	cbz	x21, LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_free
LBB0_38:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x22, LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_free
LBB0_40:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x24, LBB0_7
; %bb.41:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	bl	_free
	b	LBB0_7
LBB0_42:
	bl	_endttyent
	ldr	x19, [x25]
	cbz	x19, LBB0_47
; %bb.43:
Lloh14:
	adrp	x20, _SE_PRESENT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _SE_PRESENT@GOTPAGEOFF]
Lloh16:
	adrp	x21, _SE_SHUTDOWN@GOTPAGE
Lloh17:
	ldr	x21, [x21, _SE_SHUTDOWN@GOTPAGEOFF]
Lloh18:
	adrp	x22, _SIGHUP@GOTPAGE
Lloh19:
	ldr	x22, [x22, _SIGHUP@GOTPAGEOFF]
	b	LBB0_45
LBB0_44:                                ;   in Loop: Header=BB0_45 Depth=1
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_47
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_44
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
	bl	_kill
	b	LBB0_44
LBB0_47:
Lloh20:
	adrp	x8, _multi_user@GOTPAGE
Lloh21:
	ldr	x8, [x8, _multi_user@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_sessions,8,3                   ; @sessions
	.comm	_SE_PRESENT,4,2                 ; @SE_PRESENT
	.comm	_TTY_ON,4,2                     ; @TTY_ON
	.comm	_SE_SHUTDOWN,4,2                ; @SE_SHUTDOWN
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't parse getty for port %s"

	.comm	_multi_user,4,2                 ; @multi_user
	.no_dead_strip	_clean_ttys
.subsections_via_symbols
