	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_addr
_resolve_addr:                          ## @resolve_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_checked_strdup
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	cmpb	$91, %al
	jne	LBB0_8
LBB0_2:
	incq	%rbx
	movq	%rbx, -48(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	movq	%rax, %rbx
	movq	-48(%rbp), %r12
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fail
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_log_errx
	movq	-48(%rbp), %r12
LBB0_4:
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_14
## %bb.5:
	cmpb	$58, %al
	jne	LBB0_17
## %bb.6:
	incq	%r12
	jmp	LBB0_18
LBB0_7:
	leaq	L_.str(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fail
	movl	$1, %edi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_log_errx
	movb	(%rbx), %al
	cmpb	$91, %al
	je	LBB0_2
LBB0_8:
	movq	%rbx, %rcx
	incq	%rcx
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	incl	%edx
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	movzbl	(%rcx), %eax
	incq	%rcx
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$58, %al
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testb	%al, %al
	jne	LBB0_10
## %bb.13:
	cmpl	$1, %edx
	jle	LBB0_15
LBB0_14:
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	movq	%rax, %rbx
	movq	-48(%rbp), %r12
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fail
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_log_errx
                                        ## implicit-def: $r12
LBB0_18:
	testq	%r12, %r12
	leaq	L_.str.5(%rip), %r15
	cmovneq	%r12, %r15
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_AI_ADDRCONFIG@GOTPCREL(%rip), %rcx
	movq	_AI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movl	%eax, -64(%rbp)
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	cmovneq	%r12, %r15
	je	LBB0_20
## %bb.19:
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -64(%rbp)
LBB0_20:
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_fail
	movl	%ebx, %edi
	callq	_gai_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_log_errx
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"empty address"

L_.str.1:                               ## @.str.1
	.asciz	"]"

L_.str.2:                               ## @.str.2
	.asciz	"malformed address"

L_.str.3:                               ## @.str.3
	.asciz	"malformed address %s"

L_.str.4:                               ## @.str.4
	.asciz	":"

L_.str.5:                               ## @.str.5
	.asciz	"3260"

	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_AI_ADDRCONFIG,4,2              ## @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ## @AI_NUMERICSERV
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
L_.str.6:                               ## @.str.6
	.asciz	"getaddrinfo for %s failed: %s"

	.no_dead_strip	_resolve_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_addr
_resolve_addr:                          ; @resolve_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_checked_strdup
	mov	x23, x0
	str	x0, [sp, #24]
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w8, #91
	b.ne	LBB0_5
LBB0_2:
	add	x8, x23, #1
	str	x8, [sp, #24]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	mov	x23, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_12
; %bb.3:
	ldrb	w9, [x8]
	cbnz	w9, LBB0_13
	b	LBB0_15
LBB0_4:
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x24
	bl	_fail
	mov	w0, #1
	mov	x1, x24
	bl	_log_errx
	ldrb	w8, [x23]
	cmp	w8, #91
	b.eq	LBB0_2
LBB0_5:
	mov	w9, #0
	mov	w10, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w9, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x23, x10]
	add	x10, x10, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #58
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w8, LBB0_7
; %bb.10:
	cmp	w9, #1
	b.gt	LBB0_15
; %bb.11:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	mov	x23, x0
	ldr	x8, [sp, #24]
	b	LBB0_17
LBB0_12:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fail
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_log_errx
	ldr	x8, [sp, #24]
	ldrb	w9, [x8]
	cbz	w9, LBB0_15
LBB0_13:
	cmp	w9, #58
	b.ne	LBB0_16
; %bb.14:
	add	x8, x8, #1
	b	LBB0_17
LBB0_15:
	mov	x8, #0
	b	LBB0_17
LBB0_16:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fail
	str	x19, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_log_errx
                                        ; implicit-def: $x8
LBB0_17:
	cmp	x8, #0
	ccmp	w22, #0, #0, eq
Lloh14:
	adrp	x9, l_.str.5@PAGE
Lloh15:
	add	x9, x9, l_.str.5@PAGEOFF
	csel	x24, x8, x9, ne
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh16:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh19:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x8]
Lloh22:
	adrp	x8, _AI_ADDRCONFIG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AI_ADDRCONFIG@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x10, _AI_NUMERICSERV@GOTPAGE
Lloh26:
	ldr	x10, [x10, _AI_NUMERICSERV@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w8, w10, w8
	stp	w8, w9, [sp, #32]
	cbz	w22, LBB0_19
; %bb.18:
Lloh28:
	adrp	x9, _AI_PASSIVE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AI_PASSIVE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #32]
LBB0_19:
	add	x2, sp, #32
	mov	x0, x23
	mov	x1, x24
	mov	x3, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_21
; %bb.20:
	mov	x21, x0
	bl	_gai_strerror
	mov	x1, x0
	mov	x0, x20
	bl	_fail
	mov	x0, x21
	bl	_gai_strerror
	stp	x19, x0, [sp]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_log_errx
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"empty address"

l_.str.1:                               ; @.str.1
	.asciz	"]"

l_.str.2:                               ; @.str.2
	.asciz	"malformed address"

l_.str.3:                               ; @.str.3
	.asciz	"malformed address %s"

l_.str.4:                               ; @.str.4
	.asciz	":"

l_.str.5:                               ; @.str.5
	.asciz	"3260"

	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_AI_ADDRCONFIG,4,2              ; @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ; @AI_NUMERICSERV
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
l_.str.6:                               ; @.str.6
	.asciz	"getaddrinfo for %s failed: %s"

	.no_dead_strip	_resolve_addr
.subsections_via_symbols
