	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_addr
_tcp_addr:                              ## @tcp_addr
	.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, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	leaq	-96(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movq	_AI_ADDRCONFIG@GOTPCREL(%rip), %rax
	movq	_AI_NUMERICSERV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -96(%rbp)
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	je	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_strncasecmp
	leaq	6(%rbx), %rcx
	testq	%rax, %rax
	cmoveq	%rcx, %rbx
	jmp	LBB0_8
LBB0_4:
	movl	$-1, %eax
	jmp	LBB0_28
LBB0_5:
	addq	$7, %rbx
	movq	_PF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	addq	$7, %rbx
	movq	_PF_INET6@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
LBB0_8:
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strchr
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$58, %esi
	callq	_strrchr
	movq	%rax, %r14
	cmpq	%rax, %r15
	je	LBB0_16
## %bb.9:
	cmpb	$91, (%rbx)
	jne	LBB0_17
## %bb.10:
	testq	%r14, %r14
	je	LBB0_17
LBB0_11:
	leaq	1(%r14), %rdi
	leaq	-52(%rbp), %rcx
	movl	$1, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_numfromstr
	testq	%rax, %rax
	js	LBB0_20
## %bb.12:
	movl	-52(%rbp), %ecx
	leaq	L_.str.3(%rip), %rdx
	leaq	-58(%rbp), %rdi
	movl	$6, %esi
	callq	_snprintf
	cmpb	$91, (%rbx)
	jne	LBB0_18
## %bb.13:
	cmpb	$93, -1(%r14)
	jne	LBB0_18
## %bb.14:
	movq	%rbx, %rax
	notq	%rax
	addq	%rax, %r14
	cmpq	%r12, %r14
	ja	LBB0_19
## %bb.15:
	incq	%rbx
	jmp	LBB0_21
LBB0_16:
	testq	%r15, %r15
	jne	LBB0_11
LBB0_17:
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, -52(%rbp)
	leaq	L_.str.3(%rip), %rdx
	leaq	-58(%rbp), %rdi
	movl	$6, %esi
	callq	_snprintf
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_strlcpy
	cmpq	%r12, %rax
	jb	LBB0_22
	jmp	LBB0_19
LBB0_18:
	subq	%rbx, %r14
	incq	%r14
	cmpq	%r12, %r14
	jbe	LBB0_21
LBB0_19:
	movq	_ENAMETOOLONG@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_20:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_21:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strlcpy
LBB0_22:
	leaq	-58(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r13, %rdi
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.4(%rip), %rsi
	leaq	-58(%rbp), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	movl	%eax, %r8d
	callq	_pjdlog_debug
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_30
## %bb.29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_memcpy
	movq	-72(%rbp), %rdi
	callq	_freeaddrinfo
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_26:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_AI_ADDRCONFIG,4,2              ## @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ## @AI_NUMERICSERV
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp4://"

	.comm	_PF_INET,4,2                    ## @PF_INET
L_.str.1:                               ## @.str.1
	.asciz	"tcp6://"

	.comm	_PF_INET6,4,2                   ## @PF_INET6
L_.str.2:                               ## @.str.2
	.asciz	"tcp://"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"%jd"

	.comm	_ENAMETOOLONG,4,2               ## @ENAMETOOLONG
L_.str.4:                               ## @.str.4
	.asciz	"getaddrinfo(%s, %s) failed: %s."

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_tcp_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_addr
_tcp_addr:                              ; @tcp_addr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #64
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	cbz	x0, LBB0_4
; %bb.1:
	sub	x0, x29, #104
	mov	w1, #24
	bl	_bzero
Lloh8:
	adrp	x8, _AI_ADDRCONFIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AI_ADDRCONFIG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _AI_NUMERICSERV@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AI_NUMERICSERV@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _PF_UNSPEC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PF_UNSPEC@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh16:
	ldr	w9, [x10]
	stur	w8, [x29, #-104]
	stur	w9, [x29, #-92]
Lloh17:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-88]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #7
	bl	_strncasecmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	w2, #7
	bl	_strncasecmp
	cbz	x0, LBB0_6
; %bb.3:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w24, #6
	mov	x0, x23
	mov	w2, #6
	bl	_strncasecmp
	cmp	x0, #0
	csel	x8, x24, xzr, eq
	add	x23, x23, x8
	b	LBB0_8
LBB0_4:
	mov	w0, #-1
	b	LBB0_26
LBB0_5:
	add	x23, x23, #7
Lloh29:
	adrp	x8, _PF_INET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	add	x23, x23, #7
Lloh31:
	adrp	x8, _PF_INET6@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PF_INET6@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	stur	w8, [x29, #-92]
LBB0_8:
	mov	x0, x23
	mov	w1, #58
	bl	_strchr
	mov	x25, x0
	mov	x0, x23
	mov	w1, #58
	bl	_strrchr
	mov	x24, x0
	cmp	x25, x0
	b.eq	LBB0_16
; %bb.9:
	ldrb	w8, [x23]
	cmp	w8, #91
	b.ne	LBB0_17
; %bb.10:
	cbz	x24, LBB0_17
LBB0_11:
	add	x0, x24, #1
	sub	x3, x29, #116
	mov	w1, #1
	mov	w2, #65535
	bl	_numfromstr
	tbnz	x0, #63, LBB0_20
; %bb.12:
	ldur	w3, [x29, #-116]
Lloh33:
	adrp	x2, l_.str.3@PAGE
Lloh34:
	add	x2, x2, l_.str.3@PAGEOFF
	sub	x0, x29, #78
	mov	w1, #6
	bl	_snprintf
	ldrb	w8, [x23]
	cmp	w8, #91
	b.ne	LBB0_18
; %bb.13:
	ldurb	w8, [x24, #-1]
	cmp	w8, #93
	b.ne	LBB0_18
; %bb.14:
	mvn	x8, x23
	add	x2, x24, x8
	cmp	x2, x21
	b.hi	LBB0_19
; %bb.15:
	add	x1, x23, #1
	mov	x0, x20
	b	LBB0_22
LBB0_16:
	cbnz	x25, LBB0_11
LBB0_17:
	stur	w22, [x29, #-116]
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	sub	x0, x29, #78
	mov	w1, #6
	mov	x3, x22
	bl	_snprintf
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_strlcpy
	cmp	x0, x21
	b.hs	LBB0_19
	b	LBB0_23
LBB0_18:
	sub	x8, x24, x23
	add	x2, x8, #1
	cmp	x2, x21
	b.ls	LBB0_21
LBB0_19:
Lloh37:
	adrp	x8, _ENAMETOOLONG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENAMETOOLONG@GOTPAGEOFF]
	b	LBB0_25
LBB0_20:
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_25
LBB0_21:
	mov	x0, x20
	mov	x1, x23
LBB0_22:
	bl	_strlcpy
LBB0_23:
	sub	x1, x29, #78
	sub	x2, x29, #104
	sub	x3, x29, #112
	mov	x0, x20
	bl	_getaddrinfo
	cbz	w0, LBB0_28
; %bb.24:
	bl	_gai_strerror
	mov	x4, x0
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x3, x29, #78
	mov	w0, #1
	mov	x2, x20
	bl	_pjdlog_debug
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
LBB0_26:
	ldur	x8, [x29, #-72]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.27:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
	ldur	x8, [x29, #-112]
	cbz	x8, LBB0_30
; %bb.29:
	ldp	w2, w1, [x8, #4]
	mov	x0, x19
	bl	_memcpy
	ldur	x0, [x29, #-112]
	bl	_freeaddrinfo
	mov	w0, #0
	b	LBB0_26
LBB0_30:
Lloh48:
	adrp	x8, _ENOENT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_25
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_AI_ADDRCONFIG,4,2              ; @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ; @AI_NUMERICSERV
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp4://"

	.comm	_PF_INET,4,2                    ; @PF_INET
l_.str.1:                               ; @.str.1
	.asciz	"tcp6://"

	.comm	_PF_INET6,4,2                   ; @PF_INET6
l_.str.2:                               ; @.str.2
	.asciz	"tcp://"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"%jd"

	.comm	_ENAMETOOLONG,4,2               ; @ENAMETOOLONG
l_.str.4:                               ; @.str.4
	.asciz	"getaddrinfo(%s, %s) failed: %s."

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_tcp_addr
.subsections_via_symbols
