	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_address
_resolve_address:                       ## @resolve_address
	.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
	movq	%r9, %r12
	movq	%r8, %r13
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	%r14d, -72(%rbp)
	movl	%ebx, -68(%rbp)
	movq	_AI_ADDRCONFIG@GOTPCREL(%rip), %rax
	movq	_AI_NUMERICSERV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -64(%rbp)
	leaq	-80(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_h2o_configurator_errprintf
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_h2o_configurator_errprintf
LBB0_4:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AI_ADDRCONFIG,4,2              ## @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ## @AI_NUMERICSERV
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to resolve the listening address: %s"

L_.str.1:                               ## @.str.1
	.asciz	"failed to resolve the listening address: getaddrinfo returned an empty list"

	.no_dead_strip	_resolve_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_address
_resolve_address:                       ; @resolve_address
	.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	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	stp	w24, w23, [sp, #16]
Lloh0:
	adrp	x8, _AI_ADDRCONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AI_ADDRCONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AI_NUMERICSERV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AI_NUMERICSERV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _AI_PASSIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AI_PASSIVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #24]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_3
; %bb.1:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_h2o_configurator_errprintf
	mov	x0, #0
	b	LBB0_4
LBB0_3:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_5
LBB0_4:
	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_5:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AI_ADDRCONFIG,4,2              ; @AI_ADDRCONFIG
	.comm	_AI_NUMERICSERV,4,2             ; @AI_NUMERICSERV
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to resolve the listening address: %s"

l_.str.1:                               ; @.str.1
	.asciz	"failed to resolve the listening address: getaddrinfo returned an empty list"

	.no_dead_strip	_resolve_address
.subsections_via_symbols
