	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OpenCommand
_OpenCommand:                           ## @OpenCommand
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movslq	4(%rdi), %rax
	cmpl	%eax, %ecx
	jne	LBB0_5
## %bb.1:
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rsi
	jmp	LBB0_4
LBB0_5:
	leal	1(%rax), %edx
	movl	$-1, %r14d
	cmpl	%edx, %ecx
	jne	LBB0_27
## %bb.6:
	movq	24(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.13:
	movq	24(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.21:
	movq	24(%rbx), %rax
	movslq	4(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_27
## %bb.22:
	cmpq	$0, 16(%rbx)
	je	LBB0_24
## %bb.23:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_log_Printf
LBB0_24:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_ST_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.25:
	movq	_PHYS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	jmp	LBB0_26
LBB0_2:
	xorl	%esi, %esi
LBB0_4:
	movq	_PHYS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_26:
	movl	$1, %ecx
	callq	_bundle_Open
LBB0_27:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	8(%rbx), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_bundle2datalink
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	movq	8(%rax), %rdi
	movq	(%rdi), %rcx
	movq	_ST_OPENED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.11:
	movq	8(%rbx), %rdi
	movq	(%rax), %rsi
	movq	_PHYS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_bundle_Open
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_14:
	movq	%rbx, %rdi
	callq	_command_ChooseLink
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movq	_ST_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	movq	(%rbx), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
LBB0_10:
	callq	_fsm_Reopen
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_15:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_log_Printf
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_18:
	movq	$0, 8(%rbx)
	movq	_ST_STOPPED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_fsm_Down
	movq	%rbx, %rdi
	callq	_fsm_Up
	xorl	%r14d, %r14d
	jmp	LBB0_27
LBB0_12:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_log_Printf
	jmp	LBB0_27
LBB0_20:
	movq	%rbx, %rdi
	callq	_fsm_Up
	movq	%rbx, %rdi
	callq	_fsm_Open
	xorl	%r14d, %r14d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_PHYS_ALL,4,2                   ## @PHYS_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lcp"

	.comm	_ST_OPENED,8,3                  ## @ST_OPENED
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.1:                               ## @.str.1
	.asciz	"open lcp: You must specify a link\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"open: LCP must be open before opening CCP\n"

	.comm	_ST_STOPPED,8,3                 ## @ST_STOPPED
L_.str.4:                               ## @.str.4
	.asciz	"ipcp"

L_.str.5:                               ## @.str.5
	.asciz	"open ipcp: You need not specify a link\n"

	.no_dead_strip	_OpenCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OpenCommand
_OpenCommand:                           ; @OpenCommand
	.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
	mov	x19, x0
	ldp	w9, w8, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w9, w8
	b.ne	LBB0_3
; %bb.1:
	ldp	x0, x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x1, [x8]
	b	LBB0_9
LBB0_3:
	add	w10, w8, #1
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.4:
	ldr	x9, [x19, #24]
	ldr	w0, [x9, x8, lsl #2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_13
; %bb.5:
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #4]
	ldr	w0, [x8, x9, lsl #2]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_17
; %bb.6:
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #4]
	ldr	w0, [x8, x9, lsl #2]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_21
LBB0_7:
	mov	w0, #-1
	b	LBB0_12
LBB0_8:
	mov	x1, #0
LBB0_9:
Lloh6:
	adrp	x8, _PHYS_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHYS_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
LBB0_10:
	mov	w3, #1
	bl	_bundle_Open
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	x0, [x19, #8]
	mov	x1, #0
	bl	_bundle2datalink
	cbz	x0, LBB0_29
LBB0_15:
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh9:
	adrp	x10, _ST_OPENED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ST_OPENED@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_20
; %bb.16:
	mov	x0, x8
	bl	_fsm_Reopen
	b	LBB0_11
LBB0_17:
	mov	x0, x19
	bl	_command_ChooseLink
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _ST_OPENED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ST_OPENED@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.18:
	mov	x19, x0
	ldr	x9, [x0]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.19:
	mov	x0, x19
	bl	_fsm_Reopen
	b	LBB0_11
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	x1, [x0]
Lloh15:
	adrp	x9, _PHYS_ALL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PHYS_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x9]
	mov	x0, x8
	b	LBB0_10
LBB0_21:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_23
; %bb.22:
Lloh18:
	adrp	x8, _LogWARN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_log_Printf
LBB0_23:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
Lloh23:
	adrp	x9, _ST_OPENED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ST_OPENED@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.24:
	bl	_fsm_Reopen
	b	LBB0_11
LBB0_25:
Lloh26:
	adrp	x8, _LogWARN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_log_Printf
	b	LBB0_11
LBB0_26:
Lloh31:
	adrp	x8, _PHYS_ALL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PHYS_ALL@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, #0
	b	LBB0_10
LBB0_27:
	str	xzr, [x19, #8]
Lloh34:
	adrp	x8, _ST_STOPPED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ST_STOPPED@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	mov	x0, x19
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.28:
	bl	_fsm_Down
	mov	x0, x19
	bl	_fsm_Up
	b	LBB0_11
LBB0_29:
Lloh37:
	adrp	x8, _LogWARN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
	b	LBB0_11
LBB0_30:
	bl	_fsm_Up
	mov	x0, x19
	bl	_fsm_Open
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_PHYS_ALL,4,2                   ; @PHYS_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lcp"

	.comm	_ST_OPENED,8,3                  ; @ST_OPENED
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.1:                               ; @.str.1
	.asciz	"open lcp: You must specify a link\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"open: LCP must be open before opening CCP\n"

	.comm	_ST_STOPPED,8,3                 ; @ST_STOPPED
l_.str.4:                               ; @.str.4
	.asciz	"ipcp"

l_.str.5:                               ; @.str.5
	.asciz	"open ipcp: You need not specify a link\n"

	.no_dead_strip	_OpenCommand
.subsections_via_symbols
