	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TerminalCommand
_TerminalCommand:                       ## @TerminalCommand
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	8(%rdi), %r14d
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_ST_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_State2Nam
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_prompt_Printf
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_datalink_Up
	movl	8(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_prompt_TtyTermMode
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogWARN,4,2                    ## @LogWARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"term: Need a prompt\n"

	.comm	_ST_CLOSED,8,3                  ## @ST_CLOSED
L_.str.1:                               ## @.str.1
	.asciz	"LCP state is [%s]\n"

	.no_dead_strip	_TerminalCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TerminalCommand
_TerminalCommand:                       ; @TerminalCommand
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w20, [x0, #8]
	cbz	w20, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ST_CLOSED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST_CLOSED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_4
; %bb.2:
	mov	x0, x8
	bl	_State2Nam
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_prompt_Printf
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _LogWARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w1, #0
	mov	w2, #0
	bl	_datalink_Up
	ldr	w0, [x19, #8]
	ldr	x1, [x19]
	bl	_prompt_TtyTermMode
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LogWARN,4,2                    ; @LogWARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"term: Need a prompt\n"

	.comm	_ST_CLOSED,8,3                  ; @ST_CLOSED
l_.str.1:                               ; @.str.1
	.asciz	"LCP state is [%s]\n"

	.no_dead_strip	_TerminalCommand
.subsections_via_symbols
