	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_login_ttyok                    ## -- Begin function login_ttyok
	.p2align	4, 0x90
_login_ttyok:                           ## @login_ttyok
	.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
	movl	$1, %ebx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.2:
	cmpb	$0, (%r15)
	je	LBB0_10
## %bb.3:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_getttynam
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	(%rax), %r14
	jmp	LBB0_6
LBB0_4:
	xorl	%r14d, %r14d
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_login_getcaplist
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_login_str2inlist
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_login_getcaplist
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_login_str2inlist
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_login_ttyok                    ; -- Begin function login_ttyok
	.p2align	2
_login_ttyok:                           ; @login_ttyok
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	mov	w0, #1
	cbz	x21, LBB0_11
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_11
; %bb.2:
	ldrb	w8, [x19]
	cbz	w8, LBB0_10
; %bb.3:
	mov	x20, x3
	mov	x23, x2
	mov	x0, x19
	bl	_getttynam
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x22, [x0]
	b	LBB0_6
LBB0_5:
	mov	x22, #0
LBB0_6:
	mov	x0, x21
	mov	x1, x23
	mov	x2, #0
	bl	_login_getcaplist
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_login_str2inlist
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_login_getcaplist
	cbz	x0, LBB0_10
; %bb.9:
	mov	x1, x19
	mov	x2, x22
	mov	w3, #0
	bl	_login_str2inlist
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
