	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_named_sock
_setup_named_sock:                      ## @setup_named_sock
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %ecx
	callq	_xsnprintf
	leaq	-104(%rbp), %rbx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_logerror
	jmp	LBB0_22
LBB0_1:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.4:
	movq	_FD_SETSIZE@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %rbx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_logerror
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_close
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r14), %r14
	testq	%r14, %r14
	je	LBB0_20
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	20(%r14), %esi
	movl	16(%r14), %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r15d
	cmpl	(%r13), %eax
	jge	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_set_reuse_addr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_logerror
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	callq	_set_keep_alive
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movl	%r15d, %edi
	callq	_bind
	testq	%rax, %rax
	js	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %edi
	movl	$5, %esi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_F_GETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_fcntl
	testq	%rax, %rax
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_F_SETFD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movl	%r15d, %edi
	movq	%rax, %rdx
	callq	_fcntl
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	incq	%rsi
	movl	16(%rbx), %edx
	callq	_ALLOC_GROW
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	movl	%r15d, (%rax,%rcx,4)
	incl	%r12d
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rdi
	movl	12(%r14), %esi
	movl	8(%r14), %edx
	callq	_ip2str
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rdi
	movl	12(%r14), %esi
	movl	8(%r14), %edx
	callq	_ip2str
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rsi
	leaq	L_.str.2(%rip), %rbx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_logerror
	jmp	LBB0_8
LBB0_20:
	movq	-56(%rbp), %rdi
	jmp	LBB0_21
LBB0_2:
	xorl	%edi, %edi
	xorl	%r12d, %r12d
LBB0_21:
	callq	_freeaddrinfo
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo() for %s failed: %s"

	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
L_.str.2:                               ## @.str.2
	.asciz	"Socket descriptor too large"

L_.str.3:                               ## @.str.3
	.asciz	"Could not set SO_REUSEADDR: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"Could not bind to %s: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Could not listen to %s: %s"

	.comm	_F_GETFD,4,2                    ## @F_GETFD
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,8,3                 ## @FD_CLOEXEC
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_V6ONLY,4,2                ## @IPV6_V6ONLY
	.no_dead_strip	_setup_named_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_named_sock
_setup_named_sock:                      ; @setup_named_sock
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x19, x2
	mov	x3, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_xsnprintf
	sub	x0, x29, #128
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh10:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	stur	x8, [x29, #-128]
Lloh13:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-112]
Lloh19:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
	sub	x2, x29, #128
	sub	x3, x29, #136
	mov	x0, x20
	mov	x1, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_logerror
	add	sp, sp, #16
	mov	w20, #0
	b	LBB0_22
LBB0_2:
	ldur	x27, [x29, #-136]
	cbz	x27, LBB0_20
; %bb.3:
	mov	w20, #0
Lloh24:
	adrp	x28, _FD_SETSIZE@GOTPAGE
Lloh25:
	ldr	x28, [x28, _FD_SETSIZE@GOTPAGEOFF]
Lloh26:
	adrp	x22, _errno@GOTPAGE
Lloh27:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh28:
	adrp	x21, _F_GETFD@GOTPAGE
Lloh29:
	ldr	x21, [x21, _F_GETFD@GOTPAGEOFF]
Lloh30:
	adrp	x23, l_.str.3@PAGE
Lloh31:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh32:
	adrp	x24, l_.str.2@PAGE
Lloh33:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_logerror
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_close
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x27, [x27, #24]
	cbz	x27, LBB0_19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x27]
	ldp	w2, w1, [x27, #16]
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	ldr	w8, [x28]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_set_reuse_addr
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x22]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
	mov	x0, x23
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_logerror
	add	sp, sp, #16
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_set_keep_alive
	ldp	w2, w1, [x27, #8]
	mov	x0, x25
	bl	_bind
	tbnz	x0, #63, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	w1, #5
	bl	_listen
	tbnz	x0, #63, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x21]
	mov	x0, x25
	mov	x2, #0
	bl	_fcntl
	tbnz	x0, #63, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh34:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	orr	x2, x8, x0
	mov	x0, x25
	bl	_fcntl
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	x0, x8, [x19]
	add	x1, x8, #1
	ldr	w2, [x19, #16]
	bl	_ALLOC_GROW
	ldp	x8, x9, [x19]
	add	x10, x9, #1
	str	x10, [x19, #8]
	str	w25, [x8, x9, lsl #2]
	add	w20, w20, #1
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x27]
	ldp	w2, w1, [x27, #8]
	bl	_ip2str
	mov	x26, x0
	ldr	w0, [x22]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp, #-16]!
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x27]
	ldp	w2, w1, [x27, #8]
	bl	_ip2str
	mov	x26, x0
	ldr	w0, [x22]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp, #-16]!
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_19:
	ldur	x0, [x29, #-136]
	b	LBB0_21
LBB0_20:
	mov	x0, #0
	mov	w20, #0
LBB0_21:
	bl	_freeaddrinfo
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x20
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo() for %s failed: %s"

	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
l_.str.2:                               ; @.str.2
	.asciz	"Socket descriptor too large"

l_.str.3:                               ; @.str.3
	.asciz	"Could not set SO_REUSEADDR: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"Could not bind to %s: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Could not listen to %s: %s"

	.comm	_F_GETFD,4,2                    ; @F_GETFD
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,8,3                 ; @FD_CLOEXEC
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_V6ONLY,4,2                ; @IPV6_V6ONLY
	.no_dead_strip	_setup_named_sock
.subsections_via_symbols
