	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	%r15d, -88(%rbp)
	movl	%ebx, -84(%rbp)
	movl	16(%rbp), %eax
	movl	%eax, -80(%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, -76(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.6:
	movl	16(%rcx), %edx
	movl	20(%rcx), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	-48(%rbp), %rdi
	movl	16(%rdi), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	callq	_freeaddrinfo
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %edi
	callq	_gai_strerror
	movq	%rax, %r8
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %r8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_fprintf
	movl	$-1, %eax
LBB0_7:
	addq	$56, %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
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to resolve address:%s:%s:%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo returned NULL"

	.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, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x6
	mov	x24, x5
	mov	x25, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _AI_ADDRCONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AI_ADDRCONFIG@GOTPAGEOFF]
	stp	w25, w24, [sp, #8]
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
	stp	w23, w8, [sp, #16]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	bl	_getaddrinfo
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [sp]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	w2, w1, [x8, #16]
	mov	x0, x22
	bl	_memcpy
	ldr	x0, [sp]
	ldr	w8, [x0, #16]
	str	w8, [x21]
	bl	_freeaddrinfo
	mov	w0, #0
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	cbz	w0, LBB0_5
; %bb.4:
	bl	_gai_strerror
	mov	x4, x0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x4, l_.str.1@PAGE
Lloh13:
	add	x4, x4, l_.str.1@PAGEOFF
LBB0_6:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_fprintf
	mov	w0, #-1
LBB0_7:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.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
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to resolve address:%s:%s:%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo returned NULL"

	.no_dead_strip	_resolve_address
.subsections_via_symbols
