	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function session_tty_list
_session_tty_list:                      ## @session_tty_list
	.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
	movb	$0, _session_tty_list.buf(%rip)
	movq	_sessions_nalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movl	$16, %r14d
	xorl	%r15d, %r15d
	movq	_sessions@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strlcat
	movq	_sessions_nalloc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$24, %r14
	cmpq	%rcx, %r15
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	cmpq	$0, (%rbx,%r14)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, -16(%rbx,%r14)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rbx,%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_strncmp
	movq	-8(%rbx,%r14), %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strrchr
	leaq	1(%rax), %r13
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$5, %rbx
	movq	%rbx, %r13
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, _session_tty_list.buf(%rip)
	leaq	_session_tty_list.buf(%rip), %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strlcat
	jmp	LBB0_9
LBB0_11:
	cmpb	$0, _session_tty_list.buf(%rip)
	jne	LBB0_13
LBB0_12:
	leaq	_session_tty_list.buf(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strlcpy
LBB0_13:
	leaq	_session_tty_list.buf(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_session_tty_list.buf,1024,4 ## @session_tty_list.buf
	.comm	_sessions_nalloc,4,2            ## @sessions_nalloc
	.comm	_sessions,8,3                   ## @sessions
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/"

L_.str.1:                               ## @.str.1
	.asciz	","

L_.str.2:                               ## @.str.2
	.asciz	"notty"

	.no_dead_strip	_session_tty_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function session_tty_list
_session_tty_list:                      ; @session_tty_list
	.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
	adrp	x23, _session_tty_list.buf@PAGE
	strb	wzr, [x23, _session_tty_list.buf@PAGEOFF]
Lloh0:
	adrp	x24, _sessions_nalloc@GOTPAGE
Lloh1:
	ldr	x24, [x24, _sessions_nalloc@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x27, _sessions@GOTPAGE
Lloh3:
	ldr	x27, [x27, _sessions@GOTPAGEOFF]
Lloh4:
	adrp	x19, l_.str@PAGE
Lloh5:
	add	x19, x19, l_.str@PAGEOFF
Lloh6:
	adrp	x20, _session_tty_list.buf@PAGE
Lloh7:
	add	x20, x20, _session_tty_list.buf@PAGEOFF
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1024
	bl	_strlcat
	ldr	w8, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	add	x25, x25, #24
	cmp	x26, w8, sxtw
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x27]
	add	x10, x9, x25
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x9, x25]
	cmn	w10, #1
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x9, x25
	ldr	x0, [x22, #8]
	mov	x1, x19
	mov	w2, #5
	bl	_strncmp
	ldr	x22, [x22, #8]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	w1, #47
	bl	_strrchr
	cmp	x0, #0
	csinc	x22, x22, x0, eq
	ldrb	w8, [x23, _session_tty_list.buf@PAGEOFF]
	cbnz	w8, LBB0_9
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #5
	ldrb	w8, [x23, _session_tty_list.buf@PAGEOFF]
	cbz	w8, LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1024
	bl	_strlcat
	b	LBB0_2
LBB0_10:
	ldrb	w8, [x23, _session_tty_list.buf@PAGEOFF]
	cbnz	w8, LBB0_12
LBB0_11:
Lloh10:
	adrp	x0, _session_tty_list.buf@PAGE
Lloh11:
	add	x0, x0, _session_tty_list.buf@PAGEOFF
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #1024
	bl	_strlcpy
LBB0_12:
Lloh14:
	adrp	x0, _session_tty_list.buf@PAGE
Lloh15:
	add	x0, x0, _session_tty_list.buf@PAGEOFF
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_session_tty_list.buf,1024,0 ; @session_tty_list.buf
	.comm	_sessions_nalloc,4,2            ; @sessions_nalloc
	.comm	_sessions,8,3                   ; @sessions
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/"

l_.str.1:                               ; @.str.1
	.asciz	","

l_.str.2:                               ; @.str.2
	.asciz	"notty"

	.no_dead_strip	_session_tty_list
.subsections_via_symbols
