	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fst_closeport
_fst_closeport:                         ## @fst_closeport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_FST_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.4:
	movq	$0, (%rbx)
	movq	_OPSTS_RTS@GOTPCREL(%rip), %rax
	movq	_OPSTS_DTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_fst_op_lower
	movq	_STOPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fst_issue_cmd                  ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_DBG_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dbg                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FST_RUNNING,8,3                ## @FST_RUNNING
	.comm	_OPSTS_RTS,4,2                  ## @OPSTS_RTS
	.comm	_OPSTS_DTR,4,2                  ## @OPSTS_DTR
	.comm	_STOPPORT,4,2                   ## @STOPPORT
	.comm	_DBG_OPEN,4,2                   ## @DBG_OPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"close: port not running\n"

	.no_dead_strip	_fst_closeport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fst_closeport
_fst_closeport:                         ; @fst_closeport
	.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	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _FST_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FST_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _OPSTS_RTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPSTS_RTS@GOTPAGEOFF]
	str	xzr, [x19]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _OPSTS_DTR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPSTS_DTR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_fst_op_lower
Lloh9:
	adrp	x8, _STOPPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STOPPORT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fst_issue_cmd
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh12:
	adrp	x8, _DBG_OPEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_OPEN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FST_RUNNING,8,3                ; @FST_RUNNING
	.comm	_OPSTS_RTS,4,2                  ; @OPSTS_RTS
	.comm	_OPSTS_DTR,4,2                  ; @OPSTS_DTR
	.comm	_STOPPORT,4,2                   ; @STOPPORT
	.comm	_DBG_OPEN,4,2                   ; @DBG_OPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"close: port not running\n"

	.no_dead_strip	_fst_closeport
.subsections_via_symbols
