	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ResolveTarget
_ResolveTarget:                         ## @ResolveTarget
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_ZeroMemory
	movq	_Family@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_Target@GOTPCREL(%rip), %r14
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_GetAddrInfoW
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_Target@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_GetAddrInfoW
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_StdOut@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDS_UNKNOWN_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_ConResPrintf
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_ResolveAddress@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%r14), %rax
	movl	4(%rax), %r15d
	movl	8(%rax), %r12d
	movq	_CanonName@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	__countof
	movq	_NI_NAMEREQD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_GetNameInfoW
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DPRINT
	jmp	LBB0_7
LBB0_3:
	movq	_CanonName@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%r15), %rax
	movl	12(%rax), %ebx
	movl	%ebx, %edi
	callq	_wcslen
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_wcsncpy
LBB0_7:
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Family,4,2                     ## @Family
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_Target,8,3                     ## @Target
	.comm	_AI_CANONNAME,4,2               ## @AI_CANONNAME
	.comm	_StdOut,4,2                     ## @StdOut
	.comm	_IDS_UNKNOWN_HOST,4,2           ## @IDS_UNKNOWN_HOST
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CanonName,4,2                  ## @CanonName
	.comm	_ResolveAddress,8,3             ## @ResolveAddress
	.comm	_NI_NAMEREQD,4,2                ## @NI_NAMEREQD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GetNameInfoW failed: %d\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_ResolveTarget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ResolveTarget
_ResolveTarget:                         ; @ResolveTarget
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #8
	bl	_ZeroMemory
Lloh0:
	adrp	x23, _Family@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Family@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
Lloh5:
	adrp	x19, _Target@GOTPAGE
Lloh6:
	ldr	x19, [x19, _Target@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	x3, x19
	bl	_GetAddrInfoW
	cbz	w0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _AI_CANONNAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AI_CANONNAME@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh10:
	adrp	x21, _Target@GOTPAGE
Lloh11:
	ldr	x21, [x21, _Target@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	x3, x21
	bl	_GetAddrInfoW
	cbz	w0, LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _StdOut@GOTPAGE
Lloh13:
	ldr	x8, [x8, _StdOut@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _IDS_UNKNOWN_HOST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IDS_UNKNOWN_HOST@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ConResPrintf
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh20:
	adrp	x8, _ResolveAddress@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ResolveAddress@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	ldp	w21, w20, [x8, #4]
Lloh23:
	adrp	x8, _CanonName@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CanonName@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	mov	x0, x22
	bl	__countof
	mov	x3, x0
Lloh26:
	adrp	x8, _NI_NAMEREQD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NI_NAMEREQD@GOTPAGEOFF]
Lloh28:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x4, #0
	mov	w5, #0
	bl	_GetNameInfoW
	cbz	w0, LBB0_7
; %bb.5:
	bl	_WSAGetLastError
	mov	x1, x0
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	b	LBB0_7
LBB0_6:
Lloh31:
	adrp	x8, _CanonName@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CanonName@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
	ldr	x8, [x21]
	ldr	w21, [x8, #12]
	mov	x0, x21
	bl	_wcslen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wcsncpy
LBB0_7:
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x23]
Lloh34:
	adrp	x8, _TRUE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_Family,4,2                     ; @Family
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_Target,8,3                     ; @Target
	.comm	_AI_CANONNAME,4,2               ; @AI_CANONNAME
	.comm	_StdOut,4,2                     ; @StdOut
	.comm	_IDS_UNKNOWN_HOST,4,2           ; @IDS_UNKNOWN_HOST
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CanonName,4,2                  ; @CanonName
	.comm	_ResolveAddress,8,3             ; @ResolveAddress
	.comm	_NI_NAMEREQD,4,2                ; @NI_NAMEREQD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GetNameInfoW failed: %d\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_ResolveTarget
.subsections_via_symbols
