	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_LocalOpen               ## -- Begin function server_LocalOpen
	.p2align	4, 0x90
_server_LocalOpen:                      ## @server_LocalOpen
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_server@GOTPCREL(%rip), %r14
	movq	8(%r14), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_server_Close
LBB0_3:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, -56(%rbp)
	cmpl	$4, %eax
	jb	LBB0_5
## %bb.4:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_SERVER_INVALID@GOTPCREL(%rip), %rbx
	jmp	LBB0_15
LBB0_5:
	movq	_AF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %edi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-44(%rbp), %rcx
	movl	%eax, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpq	$-1, %r12
	je	LBB0_8
## %bb.11:
	movq	%r12, %rdi
	callq	_umask
	movq	%r12, %r14
	movq	%rax, %r12
	movl	-44(%rbp), %edi
	leaq	-56(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r14, %r12
	movq	_server@GOTPCREL(%rip), %r14
	callq	_umask
	testq	%r13, %r13
	js	LBB0_12
LBB0_9:
	movl	-44(%rbp), %edi
	movl	$5, %esi
	callq	_listen
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movl	-44(%rbp), %edi
	callq	_close
	movq	%rbx, %rdi
	callq	_unlink
	jmp	LBB0_13
LBB0_6:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_13
LBB0_8:
	movl	-44(%rbp), %edi
	leaq	-56(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_9
LBB0_12:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	movl	-44(%rbp), %edi
	callq	_close
LBB0_13:
	movq	_SERVER_FAILED@GOTPCREL(%rip), %rbx
	cmpl	$-1, (%r14)
	jne	LBB0_15
## %bb.14:
	movl	$-1, (%r14)
	movq	$0, 24(%r14)
	movq	8(%r14), %rdi
	movl	-52(%rbp), %esi
	movl	$7, %edx
	callq	_strncpy
	movq	8(%r14), %rax
	movb	$0, 7(%rax)
	movq	%r12, 16(%r14)
	jmp	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	callq	_server_Close
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	$0, 24(%r14)
	movq	8(%r14), %rdi
	movl	-52(%rbp), %esi
	movl	$7, %edx
	callq	_strncpy
	movq	8(%r14), %rax
	movb	$0, 7(%rax)
	movq	%r12, 16(%r14)
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_SERVER_OK@GOTPCREL(%rip), %rbx
LBB0_15:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_server,32,3                    ## @server
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Local: %s: Path too long\n"

	.comm	_SERVER_INVALID,4,2             ## @SERVER_INVALID
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"Local: socket: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.2:                               ## @.str.2
	.asciz	"Local: bind: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Local: Unable to listen to socket - BUNDLE overload?\n"

	.comm	_LogPHASE,4,2                   ## @LogPHASE
L_.str.4:                               ## @.str.4
	.asciz	"Listening at local socket %s.\n"

	.comm	_SERVER_OK,4,2                  ## @SERVER_OK
	.comm	_SERVER_FAILED,4,2              ## @SERVER_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_server_LocalOpen               ; -- Begin function server_LocalOpen
	.p2align	2
_server_LocalOpen:                      ; @server_LocalOpen
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _server@GOTPAGE
Lloh1:
	ldr	x24, [x24, _server@GOTPAGEOFF]
	ldr	x0, [x24, #8]
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x1, x20
	bl	_strcmp
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_server_Close
LBB0_3:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x20
	bl	_strlen
	str	w0, [sp, #16]
	cmp	w0, #4
	b.lo	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _LogERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
Lloh7:
	adrp	x8, _SERVER_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SERVER_INVALID@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
Lloh9:
	adrp	x8, _AF_LOCAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_LOCAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w0, [sp, #20]
	mov	x1, x20
	bl	_strcpy
Lloh12:
	adrp	x8, _PF_LOCAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PF_LOCAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh18:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	cmn	x19, #1
	b.eq	LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_umask
	mov	x22, x0
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	mov	w2, #12
	bl	_bind
	mov	x23, x0
	mov	x0, x22
	bl	_umask
	tbnz	x23, #63, LBB0_12
LBB0_8:
	ldr	w0, [sp, #12]
	mov	w1, #5
	bl	_listen
	cbz	x0, LBB0_17
; %bb.9:
Lloh24:
	adrp	x8, _LogERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_log_Printf
	ldr	w0, [sp, #12]
	bl	_close
	mov	x0, x20
	bl	_unlink
	b	LBB0_13
LBB0_10:
Lloh29:
	adrp	x8, _LogERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.1@PAGE
Lloh36:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
	b	LBB0_13
LBB0_11:
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	mov	w2, #12
	bl	_bind
	tbz	x0, #63, LBB0_8
LBB0_12:
Lloh37:
	adrp	x8, _LogWARN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_log_Printf
	ldr	w0, [sp, #12]
	bl	_close
LBB0_13:
	ldr	w8, [x24]
	cmn	w8, #1
	b.ne	LBB0_15
; %bb.14:
	str	w8, [x24]
	str	xzr, [x24, #24]
	ldr	x0, [x24, #8]
	ldr	w1, [sp, #20]
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x24, #8]
	strb	wzr, [x8, #7]
	str	x19, [x24, #16]
LBB0_15:
Lloh45:
	adrp	x8, _SERVER_FAILED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SERVER_FAILED@GOTPAGEOFF]
LBB0_16:
	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_17:
	mov	x0, x21
	bl	_server_Close
	ldr	w8, [sp, #12]
	str	w8, [x24]
	str	xzr, [x24, #24]
	ldr	x0, [x24, #8]
	ldr	w1, [sp, #20]
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x24, #8]
	strb	wzr, [x8, #7]
	str	x19, [x24, #16]
Lloh47:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_log_Printf
Lloh52:
	adrp	x8, _SERVER_OK@GOTPAGE
Lloh53:
	ldr	x8, [x8, _SERVER_OK@GOTPAGEOFF]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.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 AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_server,32,3                    ; @server
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Local: %s: Path too long\n"

	.comm	_SERVER_INVALID,4,2             ; @SERVER_INVALID
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"Local: socket: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.2:                               ; @.str.2
	.asciz	"Local: bind: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Local: Unable to listen to socket - BUNDLE overload?\n"

	.comm	_LogPHASE,4,2                   ; @LogPHASE
l_.str.4:                               ; @.str.4
	.asciz	"Listening at local socket %s.\n"

	.comm	_SERVER_OK,4,2                  ; @SERVER_OK
	.comm	_SERVER_FAILED,4,2              ; @SERVER_FAILED
.subsections_via_symbols
