	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socktohost                     ## -- Begin function socktohost
	.p2align	4, 0x90
_socktohost:                            ## @socktohost
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$7369838, -52(%rbp)             ## imm = 0x70746E
	xorl	%eax, %eax
	callq	_socket_errno
	movl	%eax, %r14d
	callq	_LIB_GETBUF
	movq	_NI_DGRAM@GOTPCREL(%rip), %rax
	movq	_NI_NAMEREQD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_SOCKLEN
	movq	_LIB_BUFLENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ebx, (%rsp)
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getnameinfo
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	%r12, %rdi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stoa                           ## TAILCALL
LBB0_1:
	movq	%r12, %rdi
	callq	_stoa
	movl	$1, %edi
	callq	_TRACE
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_ZERO
	movq	%r12, %rdi
	callq	_AF
	movl	%eax, -60(%rbp)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	$0, -72(%rbp)
	movq	$0, -48(%rbp)
	leaq	-52(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_getaddrinfo
	movl	%eax, %r15d
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_3
## %bb.2:
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-52(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_getaddrinfo
	movl	%eax, %r15d
LBB0_3:
	testl	%r15d, %r15d
	jne	LBB0_12
## %bb.4:
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	setne	%dil
	callq	_INSIST
	movq	-48(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.6:
	leaq	-96(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ZERO_SOCK
	movl	4(%r13), %esi
	movl	$4, %edi
	callq	_min
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_memcpy
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_SOCK_EQ
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_8
## %bb.10:
	movq	-48(%rbp), %rdi
	jmp	LBB0_11
LBB0_5:
	xorl	%edi, %edi
LBB0_11:
	callq	_freeaddrinfo
	movq	_LIB_BUFLENGTH@GOTPCREL(%rip), %r13
LBB0_12:
	movl	%r15d, %edi
	callq	_gai_strerror
	movslq	%eax, %rsi
	movl	$1, %edi
	callq	_TRACE
	callq	_LIB_GETBUF
	movl	(%r13), %ebx
	movq	%r12, %rdi
	callq	_stoa
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_DGRAM,4,2                   ## @NI_DGRAM
	.comm	_NI_NAMEREQD,4,2                ## @NI_NAMEREQD
	.comm	_LIB_BUFLENGTH,4,2              ## @LIB_BUFLENGTH
	.comm	_errno,4,2                      ## @errno
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_AI_CANONNAME,4,2               ## @AI_CANONNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"%s (%s)"

	.comm	_AI_ADDRCONFIG,4,2              ## @AI_ADDRCONFIG
	.comm	_EAI_BADFLAGS,4,2               ## @EAI_BADFLAGS
	.comm	_EAI_NODATA,4,2                 ## @EAI_NODATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_socktohost                     ; -- Begin function socktohost
	.p2align	2
_socktohost:                            ; @socktohost
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	w8, #29806
	movk	w8, #112, lsl #16
	stur	w8, [x29, #-52]
	bl	_socket_errno
	mov	x19, x0
	bl	_LIB_GETBUF
Lloh0:
	adrp	x8, _NI_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NI_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NI_NAMEREQD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NI_NAMEREQD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	mov	x0, x20
	bl	_SOCKLEN
	mov	x1, x0
Lloh6:
	adrp	x22, _LIB_BUFLENGTH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _LIB_BUFLENGTH@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x4, #0
	mov	w5, #0
	mov	x6, x21
	bl	_getnameinfo
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	str	w19, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_stoa
LBB0_2:
	mov	x0, x20
	bl	_stoa
	mov	w0, #1
	bl	_TRACE
	add	x0, sp, #24
	bl	_ZERO
	mov	x0, x20
	bl	_AF
Lloh11:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #48]
Lloh14:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #40]
	str	xzr, [sp, #16]
	sub	x1, x29, #52
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_getaddrinfo
	mov	x21, x0
Lloh17:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh20:
	adrp	x8, _AI_CANONNAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AI_CANONNAME@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	sub	x1, x29, #52
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_getaddrinfo
	mov	x21, x0
LBB0_4:
	cbnz	w21, LBB0_11
; %bb.5:
	ldr	x8, [sp, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_INSIST
	ldr	x23, [sp, #16]
	cbz	x23, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_ZERO_SOCK
	ldr	w1, [x23, #4]
	mov	w0, #4
	bl	_min
	mov	x2, x0
	ldr	w1, [x23]
	add	x0, sp, #8
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x20
	bl	_SOCK_EQ
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x23, #8]
	cbnz	x23, LBB0_6
; %bb.8:
	ldr	x0, [sp, #16]
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	bl	_freeaddrinfo
LBB0_11:
	mov	x0, x21
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	mov	w0, #1
	bl	_TRACE
	bl	_LIB_GETBUF
	ldr	w21, [x22]
	mov	x0, x20
	bl	_stoa
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x3, x0
	bl	_snprintf
LBB0_12:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	str	w19, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	ldr	x0, [sp, #16]
	bl	_freeaddrinfo
	b	LBB0_12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_DGRAM,4,2                   ; @NI_DGRAM
	.comm	_NI_NAMEREQD,4,2                ; @NI_NAMEREQD
	.comm	_LIB_BUFLENGTH,4,2              ; @LIB_BUFLENGTH
	.comm	_errno,4,2                      ; @errno
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_AI_CANONNAME,4,2               ; @AI_CANONNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"%s (%s)"

	.comm	_AI_ADDRCONFIG,4,2              ; @AI_ADDRCONFIG
	.comm	_EAI_BADFLAGS,4,2               ; @EAI_BADFLAGS
	.comm	_EAI_NODATA,4,2                 ; @EAI_NODATA
.subsections_via_symbols
