	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_service
_create_service:                        ## @create_service
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	_NC_TPI_CLTS@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NC_TPI_COTS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_NC_TPI_COTS_ORD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_58
LBB0_3:
	leaq	-96(%rbp), %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	___rpc_nconf2sockinfo
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	-144(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ecx
	movl	%eax, -144(%rbp)
	movl	-88(%rbp), %eax
	movl	%eax, -104(%rbp)
	movl	%ecx, -112(%rbp)
	movq	_nhosts@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_58
## %bb.6:
	incq	%r15
	movq	_sock_fdcnt@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movq	_sock_fdcnt@GOTPCREL(%rip), %r12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	decq	%r15
	cmpq	$1, %r15
	jbe	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_sock_fd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	(%r12), %eax
	leal	4(,%rax,4), %esi
	callq	_realloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_out_of_mem
	movq	_sock_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%r12)
	movl	$-1, (%rax,%rcx,4)
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	___rpc_nconf2fd
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r13d
	leaq	-2(%r15), %rax
	movl	-144(%rbp), %ecx
	cmpl	$128, %ecx
	je	LBB0_30
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_hosts@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	%eax, %ebx
	movq	(%rcx,%rbx,8), %rsi
	movl	$129, %edi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_17
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	$128, %edi
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_hosts@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	%eax, %ebx
	movq	(%rcx,%rbx,8), %rsi
	movl	$128, %edi
	movq	%r14, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	jne	LBB0_31
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -108(%rbp)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
	movq	_hosts@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movl	$129, %edi
LBB0_28:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdx
	callq	_inet_pton
	cmpl	$1, %eax
	je	LBB0_29
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.45:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_svcport_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_43
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_svcport_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.42:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
LBB0_43:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-144(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_44
## %bb.46:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_LOG_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %r12d
	movl	%eax, %edi
	callq	_gai_strerror
	movl	%ebx, %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_syslog
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r13d, %edi
	callq	_close
	movq	_sock_fdcnt@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r14
	jmp	LBB0_11
LBB0_44:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	$1, %bl
	leaq	-64(%rbp), %r14
	jmp	LBB0_36
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$48, %edi
	callq	_malloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_out_of_mem
	movq	-72(%rbp), %rax
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-108(%rbp), %ecx
	movl	%ecx, 36(%rax)
	movl	-144(%rbp), %edx
	movl	%edx, (%rax)
	movl	-112(%rbp), %ecx
	movl	%ecx, 32(%rax)
	cmpl	$128, %edx
	leaq	-64(%rbp), %r14
	je	LBB0_32
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %edx
	jne	LBB0_41
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_out_of_mem
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$129, (%rbx)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 8(%rbx)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	jmp	LBB0_35
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_out_of_mem
LBB0_34:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$128, (%rbx)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 8(%rbx)
	movq	_in6addr_any@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, 4(%rbx)
	movq	-72(%rbp), %rax
	movq	%rbx, 8(%rax)
	movq	$16, 24(%rax)
	xorl	%ebx, %ebx
LBB0_36:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_sock_fd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sock_fdcnt@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%r13d, -4(%rax,%rcx,4)
	movq	-72(%rbp), %rax
	movq	8(%rax), %rsi
	movl	%r13d, %edi
	callq	_bindresvport_sa
	testl	%eax, %eax
	jne	LBB0_37
## %bb.48:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_svcport_str@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_sock_fdcnt@GOTPCREL(%rip), %r12
	movq	_NI_MAXSERV@GOTPCREL(%rip), %r13
	jne	LBB0_53
## %bb.49:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	callq	_malloc
	movq	_svcport_str@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_out_of_mem
	movq	_svcport_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_51:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_mallocd_svcport@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	-72(%rbp), %rcx
	movq	8(%rcx), %rdi
	movl	16(%rdi), %esi
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r13), %r9d
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rbx
	orl	(%rbx), %edx
	movl	%edx, (%rsp)
	xorl	%edx, %edx
	movq	%rax, %r8
	callq	_getnameinfo
	testq	%rax, %rax
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_53
## %bb.52:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_errx
LBB0_53:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	%bl, %bl
	je	LBB0_54
## %bb.55:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	movq	$0, -72(%rbp)
	jmp	LBB0_11
LBB0_54:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_free
	movq	-72(%rbp), %rdi
	callq	_free
	movq	$0, -72(%rbp)
	jmp	LBB0_11
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_58
LBB0_12:
	xorl	%r14d, %r14d
LBB0_58:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_60
## %bb.59:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EADDRINUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_47
## %bb.38:
	movq	_mallocd_svcport@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_47
## %bb.39:
	testb	%bl, %bl
	je	LBB0_40
## %bb.56:
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_57
LBB0_40:
	movq	-72(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_free
	movq	-72(%rbp), %rdi
	callq	_free
LBB0_57:
	movl	$-1, %r14d
	jmp	LBB0_58
LBB0_60:
	callq	___stack_chk_fail
LBB0_41:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	$1, %edi
	callq	_exit
LBB0_47:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_NC_TPI_CLTS,8,3                ## @NC_TPI_CLTS
	.comm	_NC_TPI_COTS,8,3                ## @NC_TPI_COTS
	.comm	_NC_TPI_COTS_ORD,8,3            ## @NC_TPI_COTS_ORD
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot get information for %s"

	.comm	_nhosts,4,2                     ## @nhosts
	.comm	_sock_fd,8,3                    ## @sock_fd
	.comm	_sock_fdcnt,4,2                 ## @sock_fdcnt
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
L_.str.1:                               ## @.str.1
	.asciz	"cannot create socket for %s"

	.comm	_hosts,8,3                      ## @hosts
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
L_.str.2:                               ## @.str.2
	.asciz	"*"

	.comm	_svcport_str,8,3                ## @svcport_str
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_in6addr_any,4,2                ## @in6addr_any
L_.str.3:                               ## @.str.3
	.asciz	"bad addr fam %d"

L_.str.4:                               ## @.str.4
	.asciz	"cannot get local address for %s: %s"

	.comm	_errno,8,3                      ## @errno
	.comm	_EADDRINUSE,8,3                 ## @EADDRINUSE
	.comm	_mallocd_svcport,4,2            ## @mallocd_svcport
L_.str.5:                               ## @.str.5
	.asciz	"bindresvport_sa: %m"

	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ## @NI_NUMERICSERV
L_.str.6:                               ## @.str.6
	.asciz	"Cannot get port number"

	.no_dead_strip	_create_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_service
_create_service:                        ; @create_service
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	xzr, [sp, #32]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _NC_TPI_CLTS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NC_TPI_CLTS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NC_TPI_COTS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NC_TPI_COTS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _NC_TPI_COTS_ORD@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NC_TPI_COTS_ORD@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_45
; %bb.1:
	mov	x19, x0
	add	x1, sp, #16
	bl	___rpc_nconf2sockinfo
	cbz	w0, LBB0_47
; %bb.2:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldp	w9, w8, [sp, #20]
	str	w8, [sp, #80]
	ldr	w8, [sp, #16]
	str	w8, [sp, #40]
	str	w9, [sp, #72]
Lloh12:
	adrp	x8, _nhosts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _nhosts@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_46
; %bb.3:
	add	x27, x8, #1
Lloh15:
	adrp	x28, _sock_fd@GOTPAGE
Lloh16:
	ldr	x28, [x28, _sock_fd@GOTPAGEOFF]
Lloh17:
	adrp	x23, _sock_fdcnt@GOTPAGE
Lloh18:
	ldr	x23, [x23, _sock_fdcnt@GOTPAGEOFF]
	mov	w22, #-1
Lloh19:
	adrp	x20, _AI_PASSIVE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _AI_PASSIVE@GOTPAGEOFF]
Lloh21:
	adrp	x21, _hosts@GOTPAGE
Lloh22:
	ldr	x21, [x21, _hosts@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh23:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x27, x27, #1
	cmp	x27, #1
	b.ls	LBB0_46
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28]
	ldr	w8, [x23]
	lsl	w8, w8, #2
	add	w1, w8, #4
	bl	_realloc
	str	x0, [x28]
	cbnz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_out_of_mem
	ldr	x0, [x28]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x23]
	add	w9, w8, #1
	str	w9, [x23]
	str	w22, [x0, x8, lsl #2]
	ldr	w8, [x20]
	str	w8, [sp, #76]
	mov	x0, x19
	bl	___rpc_nconf2fd
	tbnz	w0, #31, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	sub	x8, x27, #2
	ldr	w9, [sp, #40]
	cmp	w9, #128
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #129
	b.ne	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21]
	and	x25, x8, #0xffffffff
	ldr	x1, [x9, w8, uxtw #3]
	add	x2, sp, #88
	mov	w0, #129
	bl	_inet_pton
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x1, [x8, x25, lsl #3]
	add	x2, sp, #88
	mov	w0, #128
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x21]
	and	x25, x8, #0xffffffff
	ldr	x1, [x9, w8, uxtw #3]
	add	x2, sp, #88
	mov	w0, #128
	bl	_inet_pton
	cmp	w0, #1
	b.ne	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh28:
	adrp	x8, _AI_NUMERICHOST@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [sp, #76]
	orr	w8, w9, w8
	str	w8, [sp, #76]
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	and	x25, x8, #0xffffffff
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x1, [x8, x25, lsl #3]
	add	x2, sp, #88
	mov	w0, #129
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_inet_pton
	cmp	w0, #1
	b.eq	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x1, [x8, x25, lsl #3]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x25, lsl #3]
Lloh33:
	adrp	x8, _svcport_str@GOTPAGE
Lloh34:
	ldr	x8, [x8, _svcport_str@GOTPAGEOFF]
Lloh35:
	ldr	x1, [x8]
	add	x2, sp, #40
	add	x3, sp, #32
	bl	_getaddrinfo
	cbz	w0, LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh36:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh38:
	ldr	w25, [x8]
	ldr	w26, [x19, #8]
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp]
	mov	x0, x25
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_syslog
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	bl	_close
	b	LBB0_5
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh41:
	adrp	x8, _svcport_str@GOTPAGE
Lloh42:
	ldr	x8, [x8, _svcport_str@GOTPAGEOFF]
Lloh43:
	ldr	x1, [x8]
	cbz	x1, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, #0
	bl	_getaddrinfo
	cbnz	w0, LBB0_20
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #1
	b	LBB0_36
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #48
	bl	_malloc
	str	x0, [sp, #32]
	cbnz	x0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_out_of_mem
	ldr	x0, [sp, #32]
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #40]
	str	w8, [x0]
	ldr	d0, [sp, #72]
	str	d0, [x0, #32]
	cmp	w8, #128
	b.eq	LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #129
	b.ne	LBB0_57
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #16
	bl	_malloc
	mov	x25, x0
	cbnz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_out_of_mem
LBB0_31:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #129
	str	w8, [x25]
	mov	w0, #0
	bl	_htons
	str	x0, [x25, #8]
Lloh44:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh45:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_htonl
	b	LBB0_35
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #16
	bl	_malloc
	mov	x25, x0
	cbnz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_out_of_mem
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #128
	str	w8, [x25]
	mov	w0, #0
	bl	_htons
	str	x0, [x25, #8]
Lloh47:
	adrp	x8, _in6addr_any@GOTPAGE
Lloh48:
	ldr	x8, [x8, _in6addr_any@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
LBB0_35:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
	str	w0, [x25, #4]
	ldr	x8, [sp, #32]
	str	x25, [x8, #8]
	mov	w9, #16
	str	x9, [x8, #24]
LBB0_36:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x28]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #2
	stur	w24, [x8, #-4]
	ldr	x8, [sp, #32]
	ldr	x1, [x8, #8]
	mov	x0, x24
	bl	_bindresvport_sa
Lloh50:
	adrp	x24, _NI_MAXSERV@GOTPAGE
Lloh51:
	ldr	x24, [x24, _NI_MAXSERV@GOTPAGEOFF]
	cbnz	w0, LBB0_50
; %bb.37:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh52:
	adrp	x8, _svcport_str@GOTPAGE
Lloh53:
	ldr	x8, [x8, _svcport_str@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	cbnz	x8, LBB0_42
; %bb.38:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	bl	_malloc
	mov	x4, x0
Lloh55:
	adrp	x8, _svcport_str@GOTPAGE
Lloh56:
	ldr	x8, [x8, _svcport_str@GOTPAGEOFF]
Lloh57:
	str	x0, [x8]
	cbnz	x0, LBB0_40
; %bb.39:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_out_of_mem
Lloh58:
	adrp	x8, _svcport_str@GOTPAGE
Lloh59:
	ldr	x8, [x8, _svcport_str@GOTPAGEOFF]
Lloh60:
	ldr	x4, [x8]
LBB0_40:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh61:
	adrp	x8, _mallocd_svcport@GOTPAGE
Lloh62:
	ldr	x8, [x8, _mallocd_svcport@GOTPAGEOFF]
	mov	w9, #1
Lloh63:
	str	w9, [x8]
	ldr	x8, [sp, #32]
	ldr	x0, [x8, #8]
	ldr	w1, [x0, #16]
Lloh64:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh65:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh66:
	ldr	w3, [x8]
	ldr	w5, [x24]
Lloh67:
	adrp	x8, _NI_NUMERICHOST@GOTPAGE
Lloh68:
	ldr	x8, [x8, _NI_NUMERICHOST@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x9, _NI_NUMERICSERV@GOTPAGE
Lloh71:
	ldr	x9, [x9, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	orr	w6, w9, w8
	mov	x2, #0
	bl	_getnameinfo
	cbz	x0, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
Lloh73:
	adrp	x1, l_.str.6@PAGE
Lloh74:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
LBB0_42:                                ;   in Loop: Header=BB0_6 Depth=1
	tbz	w26, #0, LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #32]
	bl	_freeaddrinfo
	str	xzr, [sp, #32]
	b	LBB0_5
LBB0_44:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #32]
	ldr	x0, [x8, #8]
	bl	_free
	ldr	x0, [sp, #32]
	bl	_free
	str	xzr, [sp, #32]
	b	LBB0_5
LBB0_45:
	mov	w0, #1
	b	LBB0_48
LBB0_46:
	mov	w0, #0
	b	LBB0_48
LBB0_47:
Lloh75:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh78:
	adrp	x1, l_.str@PAGE
Lloh79:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	mov	w0, #1
LBB0_48:
	ldur	x8, [x29, #-88]
Lloh80:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh81:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.49:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_50:
Lloh83:
	adrp	x8, _errno@GOTPAGE
Lloh84:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh85:
	ldr	x8, [x8]
Lloh86:
	adrp	x9, _EADDRINUSE@GOTPAGE
Lloh87:
	ldr	x9, [x9, _EADDRINUSE@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_59
; %bb.51:
Lloh89:
	adrp	x8, _mallocd_svcport@GOTPAGE
Lloh90:
	ldr	x8, [x8, _mallocd_svcport@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	cbz	w8, LBB0_59
; %bb.52:
	tbz	w26, #0, LBB0_54
; %bb.53:
	ldr	x0, [sp, #32]
	bl	_freeaddrinfo
	b	LBB0_55
LBB0_54:
	ldr	x8, [sp, #32]
	ldr	x0, [x8, #8]
	bl	_free
	ldr	x0, [sp, #32]
	bl	_free
LBB0_55:
	mov	w0, #-1
	b	LBB0_48
LBB0_56:
	bl	___stack_chk_fail
LBB0_57:
Lloh92:
	adrp	x9, _LOG_ERR@GOTPAGE
Lloh93:
	ldr	x9, [x9, _LOG_ERR@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh95:
	adrp	x1, l_.str.3@PAGE
Lloh96:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_58:
	bl	_syslog
	mov	w0, #1
	bl	_exit
LBB0_59:
Lloh97:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh98:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
Lloh100:
	adrp	x1, l_.str.5@PAGE
Lloh101:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_58
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotStr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotStr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_NC_TPI_CLTS,8,3                ; @NC_TPI_CLTS
	.comm	_NC_TPI_COTS,8,3                ; @NC_TPI_COTS
	.comm	_NC_TPI_COTS_ORD,8,3            ; @NC_TPI_COTS_ORD
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot get information for %s"

	.comm	_nhosts,4,2                     ; @nhosts
	.comm	_sock_fd,8,3                    ; @sock_fd
	.comm	_sock_fdcnt,4,2                 ; @sock_fdcnt
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
l_.str.1:                               ; @.str.1
	.asciz	"cannot create socket for %s"

	.comm	_hosts,8,3                      ; @hosts
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
l_.str.2:                               ; @.str.2
	.asciz	"*"

	.comm	_svcport_str,8,3                ; @svcport_str
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_in6addr_any,4,2                ; @in6addr_any
l_.str.3:                               ; @.str.3
	.asciz	"bad addr fam %d"

l_.str.4:                               ; @.str.4
	.asciz	"cannot get local address for %s: %s"

	.comm	_errno,8,3                      ; @errno
	.comm	_EADDRINUSE,8,3                 ; @EADDRINUSE
	.comm	_mallocd_svcport,4,2            ; @mallocd_svcport
l_.str.5:                               ; @.str.5
	.asciz	"bindresvport_sa: %m"

	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ; @NI_NUMERICSERV
l_.str.6:                               ; @.str.6
	.asciz	"Cannot get port number"

	.no_dead_strip	_create_service
.subsections_via_symbols
