	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CloseCommand
_CloseCommand:                          ## @CloseCommand
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movslq	4(%rdi), %rax
	cmpl	%eax, %ecx
	jne	LBB0_6
## %bb.1:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rsi
	jmp	LBB0_4
LBB0_6:
	leal	1(%rax), %edx
	movl	$-1, %r14d
	cmpl	%edx, %ecx
	jne	LBB0_18
## %bb.7:
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_18
LBB0_14:
	movq	%rbx, %rdi
	callq	_command_ChooseLink
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_ST_OPENED@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:
	movq	%r15, %rdi
	callq	_fsm_Close
	movq	8(%rbx), %rax
	movslq	4(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpb	$33, 3(%rax)
	jne	LBB0_17
## %bb.16:
	movq	$0, 8(%r15)
	jmp	LBB0_18
LBB0_2:
	xorl	%esi, %esi
LBB0_4:
	movq	_CLOSE_STAYDOWN@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	callq	_bundle_Close
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%rax), %rsi
	movq	_CLOSE_LCP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	xorl	%esi, %esi
	movq	_CLOSE_LCP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	movq	_OPEN_PASSIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOSE_STAYDOWN,4,2             ## @CLOSE_STAYDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lcp"

	.comm	_CLOSE_LCP,4,2                  ## @CLOSE_LCP
L_.str.1:                               ## @.str.1
	.asciz	"ccp"

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

	.comm	_ST_OPENED,8,3                  ## @ST_OPENED
	.comm	_OPEN_PASSIVE,8,3               ## @OPEN_PASSIVE
	.no_dead_strip	_CloseCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CloseCommand
_CloseCommand:                          ; @CloseCommand
	.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:
	ldr	w0, [x19, #24]
	ldr	x8, [x19, #16]
	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, #8]
	ldr	x20, [x9, x8, lsl #3]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_13
; %bb.5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_15
; %bb.6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	w0, LBB0_15
LBB0_7:
	mov	w0, #-1
	b	LBB0_12
LBB0_8:
	mov	x1, #0
LBB0_9:
Lloh6:
	adrp	x8, _CLOSE_STAYDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOSE_STAYDOWN@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	bl	_bundle_Close
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	w0, [x19, #24]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_18
; %bb.14:
	ldr	x1, [x8]
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_command_ChooseLink
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _ST_OPENED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ST_OPENED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.16:
	mov	x20, x0
	bl	_fsm_Close
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	ldr	x8, [x8, x9, lsl #3]
	ldrb	w8, [x8, #3]
	cmp	w8, #33
	b.ne	LBB0_20
; %bb.17:
	mov	w0, #0
	str	xzr, [x20, #8]
	b	LBB0_12
LBB0_18:
	mov	x1, #0
LBB0_19:
Lloh11:
	adrp	x8, _CLOSE_LCP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLOSE_LCP@GOTPAGEOFF]
	b	LBB0_10
LBB0_20:
	mov	w0, #0
Lloh13:
	adrp	x8, _OPEN_PASSIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPEN_PASSIVE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOSE_STAYDOWN,4,2             ; @CLOSE_STAYDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lcp"

	.comm	_CLOSE_LCP,4,2                  ; @CLOSE_LCP
l_.str.1:                               ; @.str.1
	.asciz	"ccp"

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

	.comm	_ST_OPENED,8,3                  ; @ST_OPENED
	.comm	_OPEN_PASSIVE,8,3               ; @OPEN_PASSIVE
	.no_dead_strip	_CloseCommand
.subsections_via_symbols
