	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function NS_AddRemoteComputerAsNameServer
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_NS_AddRemoteComputerAsNameServer
	.p2align	4, 0x90
_NS_AddRemoteComputerAsNameServer:      ## @NS_AddRemoteComputerAsNameServer
	.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	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	movslq	%ecx, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_cbUglyPig@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	8(%r15), %r8d
	callq	_DPQ_REMOVE_ENTRY_CB
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	movl	$24, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	(%r14), %esi
	movl	%eax, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_CopyMemory
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	(%r14), %esi
	movl	%eax, %edi
	movl	$16, %edx
	callq	_HeapAlloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_next@GOTPCREL(%rip), %r13
	movups	(%r15), %xmm0
	movups	%xmm0, (%rax)
	movq	_CP_ACP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	addl	$16, %r15d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%ebx, %r9d
	callq	_WideCharToMultiByte
LBB0_4:
	xorl	%eax, %eax
	callq	_timeGetTime
	movl	%eax, (%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	movl	(%r13), %edx
	movq	%r12, %rsi
	callq	_DPQ_INSERT
	movq	%r12, (%rbx)
	movl	%ebx, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NS_PruneSessionCache           ## TAILCALL
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	callq	_ERR
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HeapFree                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p, %p, %p\n"

	.comm	_next,4,2                       ## @next
	.comm	_data,8,3                       ## @data
	.comm	_cbUglyPig,4,2                  ## @cbUglyPig
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
L_.str.2:                               ## @.str.2
	.asciz	"no memory for NS node\n"

L_.str.3:                               ## @.str.3
	.asciz	"no memory for SESSIONDESC2\n"

	.comm	_CP_ACP,4,2                     ## @CP_ACP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NS_AddRemoteComputerAsNameServer ; -- Begin function NS_AddRemoteComputerAsNameServer
	.p2align	2
_NS_AddRemoteComputerAsNameServer:      ; @NS_AddRemoteComputerAsNameServer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	sxtw	x24, w19
	stp	x2, x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	ldr	w0, [x24, #8]
Lloh2:
	adrp	x25, _next@GOTPAGE
Lloh3:
	ldr	x25, [x25, _next@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh4:
	adrp	x8, _data@GOTPAGE
Lloh5:
	ldr	x8, [x8, _data@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _cbUglyPig@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cbUglyPig@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	ldr	w4, [x21, #8]
	bl	_DPQ_REMOVE_ENTRY_CB
	bl	_GetProcessHeap
Lloh10:
	adrp	x26, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh11:
	ldr	x26, [x26, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w2, #24
	bl	_HeapAlloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_GetProcessHeap
	ldr	w1, [x26]
	mov	x2, x22
	bl	_HeapAlloc
	str	x0, [x20, #16]
	mov	x1, x23
	mov	x2, x22
	bl	_CopyMemory
	bl	_GetProcessHeap
	ldr	w1, [x26]
	mov	w2, #16
	bl	_HeapAlloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	q0, [x21]
	str	q0, [x0]
Lloh12:
	adrp	x23, _CP_ACP@GOTPAGE
Lloh13:
	ldr	x23, [x23, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x23]
	add	w21, w21, #16
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	mov	x22, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapAlloc
	ldr	x8, [x20, #8]
	str	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x4, x0
	ldr	w0, [x23]
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x5, x22
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
LBB0_4:
	bl	_timeGetTime
	str	w0, [x20]
	ldr	w0, [x24, #8]
	ldr	w2, [x25]
	mov	x1, x20
	bl	_DPQ_INSERT
	str	x20, [x24]
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_NS_PruneSessionCache
LBB0_5:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR
LBB0_6:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ERR
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_HeapFree
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p, %p, %p\n"

	.comm	_next,4,2                       ; @next
	.comm	_data,8,3                       ; @data
	.comm	_cbUglyPig,4,2                  ; @cbUglyPig
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
l_.str.2:                               ; @.str.2
	.asciz	"no memory for NS node\n"

l_.str.3:                               ; @.str.3
	.asciz	"no memory for SESSIONDESC2\n"

	.comm	_CP_ACP,4,2                     ; @CP_ACP
.subsections_via_symbols
