	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpserver_Open                  ## -- Begin function mpserver_Open
	.p2align	4, 0x90
_mpserver_Open:                         ## @mpserver_Open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$-1, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_LogALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%r14, %rdi
	callq	_mpserver_Close
LBB0_2:
	movl	8(%r14), %edi
	movq	__PATH_VARRUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rbx), %r8
	movl	8(%rbx), %r9d
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	cmpl	$0, 12(%rbx)
	jle	LBB0_6
## %bb.4:
	cmpl	$1, %eax
	ja	LBB0_6
## %bb.5:
	movl	8(%r14), %edi
	addl	%eax, %edi
	movl	$4, %esi
	subl	%eax, %esi
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_6:
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	$12, 4(%r14)
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ID0socket
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	leaq	4(%r14), %rbx
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%rbx, %rcx
	movl	$12, %r8d
	callq	_setsockopt
	movl	$127, %edi
	callq	_umask
	movl	%eax, %r15d
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_ID0bind_un
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:
	movq	_MPSERVER_LISTENING@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_8:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
LBB0_9:
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_19:
	movq	_MPSERVER_FAILED@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_13
## %bb.14:
	movl	%r15d, %edi
	callq	_umask
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_ID0connect_un
	testq	%rax, %rax
	js	LBB0_16
## %bb.15:
	movq	_MPSERVER_CONNECTED@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_13:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r14), %r12d
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	%r15d, %edi
	callq	_umask
LBB0_18:
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
	jmp	LBB0_19
LBB0_16:
	movq	_LogPHASE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	8(%r14), %r15d
	movq	(%r12), %rdi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	(%r12), %rax
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movl	(%r13), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_LogALERT,4,2                   ## @LogALERT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error !  mpserver already open\n"

L_.str.1:                               ## @.str.1
	.asciz	"%sppp-%s-%02x-"

	.comm	__PATH_VARRUN,8,3               ## @_PATH_VARRUN
	.comm	_LogERROR,4,2                   ## @LogERROR
L_.str.2:                               ## @.str.2
	.asciz	"mpserver: snprintf(): %s\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_MPSERVER_FAILED,4,2            ## @MPSERVER_FAILED
L_.str.3:                               ## @.str.3
	.asciz	"%02x"

	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.4:                               ## @.str.4
	.asciz	"mpserver: socket(): %s\n"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_EADDRINUSE,8,3                 ## @EADDRINUSE
	.comm	_LogPHASE,4,2                   ## @LogPHASE
L_.str.5:                               ## @.str.5
	.asciz	"mpserver: can't create bundle socket %s (%s)\n"

L_.str.6:                               ## @.str.6
	.asciz	"mpserver: can't connect to bundle socket %s (%s)\n"

	.comm	_ECONNREFUSED,8,3               ## @ECONNREFUSED
L_.str.7:                               ## @.str.7
	.asciz	"          The previous server died badly !\n"

	.comm	_MPSERVER_CONNECTED,4,2         ## @MPSERVER_CONNECTED
	.comm	_MPSERVER_LISTENING,4,2         ## @MPSERVER_LISTENING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpserver_Open                  ; -- Begin function mpserver_Open
	.p2align	2
_mpserver_Open:                         ; @mpserver_Open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LogALERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LogALERT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	mov	x0, x19
	bl	_mpserver_Close
LBB0_2:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, __PATH_VARRUN@GOTPAGE
Lloh6:
	ldr	x8, [x8, __PATH_VARRUN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x20, #8]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	w8, [x20, #12]
	cmp	w8, #1
	ccmp	w0, #1, #2, ge
	b.hi	LBB0_5
; %bb.4:
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	mov	w9, #4
	sub	w1, w9, w0
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	str	x9, [sp]
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_snprintf
LBB0_5:
Lloh12:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	w8, #12
	str	w8, [x19, #4]
Lloh15:
	adrp	x8, _PF_LOCAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PF_LOCAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_ID0socket
	str	w0, [x19]
	tbnz	w0, #31, LBB0_9
; %bb.6:
	add	x20, x19, #4
Lloh21:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x3, x20
	mov	w4, #12
	bl	_setsockopt
	mov	w0, #127
	bl	_umask
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ID0bind_un
	tbnz	x0, #63, LBB0_13
; %bb.7:
Lloh27:
	adrp	x8, _MPSERVER_LISTENING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MPSERVER_LISTENING@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh29:
	adrp	x8, _LogERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	x0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh37:
	adrp	x8, _LogERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh39:
	ldr	w19, [x8]
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	x0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_log_Printf
LBB0_11:
Lloh45:
	adrp	x8, _MPSERVER_FAILED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MPSERVER_FAILED@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh47:
	adrp	x22, _errno@GOTPAGE
Lloh48:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh49:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.14:
	mov	x0, x21
	bl	_umask
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ID0connect_un
	tbnz	x0, #63, LBB0_18
; %bb.15:
Lloh52:
	adrp	x8, _MPSERVER_CONNECTED@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MPSERVER_CONNECTED@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
Lloh54:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh56:
	ldr	w20, [x8]
	ldr	w22, [x19, #8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh57:
	adrp	x1, l_.str.5@PAGE
Lloh58:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
	mov	x0, x21
	bl	_umask
LBB0_17:
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_11
LBB0_18:
Lloh59:
	adrp	x21, _LogPHASE@GOTPAGE
Lloh60:
	ldr	x21, [x21, _LogPHASE@GOTPAGEOFF]
	ldr	w20, [x21]
	ldr	x0, [x22]
	ldr	w23, [x19, #8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
	ldr	x8, [x22]
Lloh63:
	adrp	x9, _ECONNREFUSED@GOTPAGE
Lloh64:
	ldr	x9, [x9, _ECONNREFUSED@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.19:
	ldr	w0, [x21]
Lloh66:
	adrp	x1, l_.str.7@PAGE
Lloh67:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_log_Printf
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_LogALERT,4,2                   ; @LogALERT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal error !  mpserver already open\n"

l_.str.1:                               ; @.str.1
	.asciz	"%sppp-%s-%02x-"

	.comm	__PATH_VARRUN,8,3               ; @_PATH_VARRUN
	.comm	_LogERROR,4,2                   ; @LogERROR
l_.str.2:                               ; @.str.2
	.asciz	"mpserver: snprintf(): %s\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_MPSERVER_FAILED,4,2            ; @MPSERVER_FAILED
l_.str.3:                               ; @.str.3
	.asciz	"%02x"

	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.4:                               ; @.str.4
	.asciz	"mpserver: socket(): %s\n"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_EADDRINUSE,8,3                 ; @EADDRINUSE
	.comm	_LogPHASE,4,2                   ; @LogPHASE
l_.str.5:                               ; @.str.5
	.asciz	"mpserver: can't create bundle socket %s (%s)\n"

l_.str.6:                               ; @.str.6
	.asciz	"mpserver: can't connect to bundle socket %s (%s)\n"

	.comm	_ECONNREFUSED,8,3               ; @ECONNREFUSED
l_.str.7:                               ; @.str.7
	.asciz	"          The previous server died badly !\n"

	.comm	_MPSERVER_CONNECTED,4,2         ; @MPSERVER_CONNECTED
	.comm	_MPSERVER_LISTENING,4,2         ; @MPSERVER_LISTENING
.subsections_via_symbols
