	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Sys_StringToSockaddr
_Sys_StringToSockaddr:                  ## @Sys_StringToSockaddr
	.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	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r13d, -52(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_1
## %bb.20:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_Com_Printf
LBB0_21:
	movq	-48(%rbp), %rdi
	movq	_qfalse@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_freeaddrinfo
	jmp	LBB0_23
LBB0_1:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_14
## %bb.2:
	movq	_net_enabled@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movq	_NET_PRIOV6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.3:
	movq	_NET_ENABLEV6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rdi
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SearchAddrInfo
	testq	%rax, %rax
	jne	LBB0_16
## %bb.5:
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	_NET_ENABLEV4@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.7:
	movq	-48(%rbp), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %rdi
	movl	%r13d, %esi
LBB0_15:
	callq	_SearchAddrInfo
	testq	%rax, %rax
	je	LBB0_19
LBB0_16:
	movl	(%rax), %edx
	cmpl	%r15d, %edx
	jle	LBB0_18
## %bb.17:
	movl	%r15d, (%rax)
	movl	%r15d, %edx
LBB0_18:
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	movq	_qtrue@GOTPCREL(%rip), %rbx
LBB0_23:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_NET_ENABLEV4@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	-48(%rbp), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SearchAddrInfo
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:
	movq	(%rbx), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	_NET_ENABLEV6@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.13:
	movq	-48(%rbp), %rdi
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_15
LBB0_19:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_Com_Printf
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_net_enabled,8,3                ## @net_enabled
	.comm	_NET_PRIOV6,4,2                 ## @NET_PRIOV6
	.comm	_NET_ENABLEV6,4,2               ## @NET_ENABLEV6
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_NET_ENABLEV4,4,2               ## @NET_ENABLEV4
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_qtrue,4,2                      ## @qtrue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sys_StringToSockaddr: Error resolving %s: No address of required type found.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sys_StringToSockaddr: Error resolving %s: %s\n"

	.comm	_qfalse,4,2                     ## @qfalse
	.no_dead_strip	_Sys_StringToSockaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Sys_StringToSockaddr
_Sys_StringToSockaddr:                  ; @Sys_StringToSockaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w22, [sp, #24]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_5
; %bb.1:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_2:
	mov	x1, x19
	bl	_Com_Printf
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_freeaddrinfo
LBB0_4:
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_22
LBB0_5:
Lloh7:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.6:
Lloh10:
	adrp	x22, _net_enabled@GOTPAGE
Lloh11:
	ldr	x22, [x22, _net_enabled@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NET_PRIOV6@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NET_PRIOV6@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.7:
Lloh15:
	adrp	x9, _NET_ENABLEV6@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NET_ENABLEV6@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	x0, [sp, #8]
Lloh18:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_SearchAddrInfo
	cbnz	x0, LBB0_19
; %bb.9:
	ldr	x8, [x22]
	ldr	w8, [x8]
LBB0_10:
Lloh21:
	adrp	x9, _NET_ENABLEV4@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NET_ENABLEV4@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.11:
	ldr	x0, [sp, #8]
Lloh24:
	adrp	x8, _AF_INET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
	b	LBB0_18
LBB0_12:
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_SearchAddrInfo
	cbnz	x0, LBB0_19
	b	LBB0_23
LBB0_13:
Lloh26:
	adrp	x9, _NET_ENABLEV4@GOTPAGE
Lloh27:
	ldr	x9, [x9, _NET_ENABLEV4@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	x0, [sp, #8]
Lloh29:
	adrp	x8, _AF_INET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_SearchAddrInfo
	cbnz	x0, LBB0_19
; %bb.15:
	ldr	x8, [x22]
	ldr	w8, [x8]
LBB0_16:
Lloh32:
	adrp	x9, _NET_ENABLEV6@GOTPAGE
Lloh33:
	ldr	x9, [x9, _NET_ENABLEV6@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.17:
	ldr	x0, [sp, #8]
Lloh35:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	bl	_SearchAddrInfo
	cbz	x0, LBB0_23
LBB0_19:
	ldr	w2, [x0]
	cmp	w2, w21
	b.le	LBB0_21
; %bb.20:
	str	w21, [x0]
	mov	x2, x21
LBB0_21:
	ldr	w1, [x0, #4]
	mov	x0, x20
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_freeaddrinfo
Lloh37:
	adrp	x8, _qtrue@GOTPAGE
Lloh38:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_22:
	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
	add	sp, sp, #80
	ret
LBB0_23:
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_net_enabled,8,3                ; @net_enabled
	.comm	_NET_PRIOV6,4,2                 ; @NET_PRIOV6
	.comm	_NET_ENABLEV6,4,2               ; @NET_ENABLEV6
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_NET_ENABLEV4,4,2               ; @NET_ENABLEV4
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_qtrue,4,2                      ; @qtrue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sys_StringToSockaddr: Error resolving %s: No address of required type found.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sys_StringToSockaddr: Error resolving %s: %s\n"

	.comm	_qfalse,4,2                     ; @qfalse
	.no_dead_strip	_Sys_StringToSockaddr
.subsections_via_symbols
