	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpserver_Close                 ## -- Begin function mpserver_Close
	.p2align	4, 0x90
_mpserver_Close:                        ## @mpserver_Close
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	(%rbx), %esi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	4(%rbx), %rdx
	callq	_bundle_SendDatalink
	movq	$0, 8(%rbx)
	jmp	LBB0_6
LBB0_2:
	testl	%esi, %esi
	js	LBB0_7
## %bb.3:
	movl	%esi, %edi
	callq	_close
	leaq	4(%rbx), %r14
	movl	4(%rbx), %edi
	callq	_ID0unlink
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_log_Printf
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
LBB0_6:
	movl	$-1, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Failed to remove: %s\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpserver_Close                 ; -- Begin function mpserver_Close
	.p2align	2
_mpserver_Close:                        ; @mpserver_Close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	w1, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	add	x2, x19, #4
	bl	_bundle_SendDatalink
	str	xzr, [x19, #8]
	b	LBB0_6
LBB0_2:
	tbnz	w1, #31, LBB0_7
; %bb.3:
	mov	x0, x1
	bl	_close
	mov	x20, x19
	ldr	w0, [x20, #4]!
	bl	_ID0unlink
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _LogERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w22, [x20]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_log_Printf
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_6:
	mov	w8, #-1
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Failed to remove: %s\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
