	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_Destroy                 ## -- Begin function prompt_Destroy
	.p2align	4, 0x90
_prompt_Destroy:                        ## @prompt_Destroy
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	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
	movq	(%rdi), %rdi
	movq	_stdout@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	callq	_prompt_TtyOldMode
	jmp	LBB0_7
LBB0_8:
	retq
LBB0_2:
	movl	%esi, %r14d
	callq	_fclose
	movq	8(%rbx), %rdi
	callq	_close
	movq	16(%rbx), %rdi
	cmpq	8(%rbx), %rdi
	je	LBB0_4
## %bb.3:
	callq	_close
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
LBB0_7:
	movq	%rbx, %rdi
	callq	_log_UnRegisterPrompt
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,8,3                     ## @stdout
	.comm	_LogPHASE,4,2                   ## @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Client connection dropped.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prompt_Destroy                 ; -- Begin function prompt_Destroy
	.p2align	2
_prompt_Destroy:                        ; @prompt_Destroy
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_prompt_TtyOldMode
	b	LBB0_8
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_4:
	.cfi_restore_state
	mov	x20, x1
	bl	_fclose
	ldr	x0, [x19, #8]
	bl	_close
	ldp	x8, x0, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	bl	_close
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
LBB0_8:
	mov	x0, x19
	bl	_log_UnRegisterPrompt
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,8,3                     ; @stdout
	.comm	_LogPHASE,4,2                   ; @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Client connection dropped.\n"

.subsections_via_symbols
