	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EnumerateConnections
_EnumerateConnections:                  ## @EnumerateConnections
	.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
	movl	%edi, %ebx
	movq	_StdOut@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	l_.str(%rip), %rsi
	leaq	l_.str.1(%rip), %rdx
	leaq	l_.str.2(%rip), %rcx
	leaq	l_.str.3(%rip), %r8
	callq	_ConPrintf
	movq	_RESOURCE_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RESOURCETYPE_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_WNetOpenEnum
	movq	_WN_SUCCESS@GOTPCREL(%rip), %rcx
	movl	$1, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	$4096, %edx                     ## imm = 0x1000
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	l_.str.4(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_WN_NO_MORE_ENTRIES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	$4096, -72(%rbp)                ## imm = 0x1000
	movq	$-1, -64(%rbp)
	movl	$4096, %edx                     ## imm = 0x1000
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	-44(%rbp), %edi
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdx
	leaq	-72(%rbp), %rcx
	callq	_WNetEnumResource
	movq	%rax, %r15
	movq	_WN_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	setne	%al
	movq	_WN_MORE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r15
	setne	%cl
	testb	%cl, %al
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	(%r12), %edi
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	movq	16(%r14), %r8
	movq	%r13, %rsi
	callq	_ConPrintf
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$24, %r14
	decq	-64(%rbp)
	je	LBB0_11
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_wcsicmp
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
LBB0_12:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_HeapFree
	jmp	LBB0_13
LBB0_2:
	movl	$1, %r15d
LBB0_13:
	movl	-44(%rbp), %edi
	callq	_WNetCloseEnum
LBB0_14:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_StdOut,4,2                     ## @StdOut
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.1
l_.str.1:
	.long	76                              ## 0x4c
	.long	111                             ## 0x6f
	.long	99                              ## 0x63
	.long	97                              ## 0x61
	.long	108                             ## 0x6c
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.2
l_.str.2:
	.long	82                              ## 0x52
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	0                               ## 0x0

	.p2align	2                               ## @.str.3
l_.str.3:
	.long	80                              ## 0x50
	.long	114                             ## 0x72
	.long	111                             ## 0x6f
	.long	118                             ## 0x76
	.long	105                             ## 0x69
	.long	100                             ## 0x64
	.long	101                             ## 0x65
	.long	114                             ## 0x72
	.long	0                               ## 0x0

	.comm	_RESOURCE_CONNECTED,4,2         ## @RESOURCE_CONNECTED
	.comm	_RESOURCETYPE_DISK,4,2          ## @RESOURCETYPE_DISK
	.comm	_WN_SUCCESS,8,3                 ## @WN_SUCCESS
	.comm	_WN_MORE_DATA,8,3               ## @WN_MORE_DATA
	.p2align	2                               ## @.str.4
l_.str.4:
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	9                               ## 0x9
	.long	9                               ## 0x9
	.long	37                              ## 0x25
	.long	115                             ## 0x73
	.long	10                              ## 0xa
	.long	0                               ## 0x0

	.comm	_WN_NO_MORE_ENTRIES,8,3         ## @WN_NO_MORE_ENTRIES
	.no_dead_strip	_EnumerateConnections
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EnumerateConnections
_EnumerateConnections:                  ; @EnumerateConnections
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x23, _StdOut@GOTPAGE
Lloh1:
	ldr	x23, [x23, _StdOut@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh6:
	adrp	x3, l_.str.2@PAGE
Lloh7:
	add	x3, x3, l_.str.2@PAGEOFF
Lloh8:
	adrp	x4, l_.str.3@PAGE
Lloh9:
	add	x4, x4, l_.str.3@PAGEOFF
	bl	_ConPrintf
Lloh10:
	adrp	x8, _RESOURCE_CONNECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RESOURCE_CONNECTED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _RESOURCETYPE_DISK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RESOURCETYPE_DISK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x4, sp, #28
	mov	w2, #0
	mov	x3, #0
	bl	_WNetOpenEnum
Lloh16:
	adrp	x8, _WN_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WN_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #4096
	bl	_HeapAlloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x24, x0
	mov	w25, #4096
	mov	x26, #-1
Lloh19:
	adrp	x27, _WN_MORE_DATA@GOTPAGE
Lloh20:
	ldr	x27, [x27, _WN_MORE_DATA@GOTPAGEOFF]
Lloh21:
	adrp	x28, _WN_NO_MORE_ENTRIES@GOTPAGE
Lloh22:
	ldr	x28, [x28, _WN_NO_MORE_ENTRIES@GOTPAGEOFF]
Lloh23:
	adrp	x21, l_.str.4@PAGE
Lloh24:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	cmp	x22, x8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	stp	x26, x25, [sp, #8]
	mov	x0, x24
	mov	w1, #0
	mov	w2, #4096
	bl	_memset
	ldr	w0, [sp, #28]
	add	x1, sp, #8
	add	x3, sp, #16
	mov	x2, x24
	bl	_WNetEnumResource
	mov	x22, x0
Lloh25:
	adrp	x8, _WN_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WN_SUCCESS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x9, [x27]
	cmp	x0, x9
	ccmp	x0, x8, #4, ne
	ldr	x8, [sp, #8]
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x24
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x23]
	ldp	x2, x3, [x20]
	ldr	x4, [x20, #16]
	mov	x1, x21
	bl	_ConPrintf
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x20, x20, #24
	ldr	x8, [sp, #8]
	subs	x8, x8, #1
	str	x8, [sp, #8]
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	w19, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x20]
	mov	x1, x19
	bl	_wcsicmp
	cbnz	x0, LBB0_7
	b	LBB0_6
LBB0_10:
	mov	w19, #1
	b	LBB0_14
LBB0_11:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x24
	bl	_HeapFree
	mov	x19, #0
	b	LBB0_13
LBB0_12:
	mov	w19, #1
LBB0_13:
	ldr	w0, [sp, #28]
	bl	_WNetCloseEnum
LBB0_14:
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_StdOut,4,2                     ; @StdOut
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.1
l_.str.1:
	.long	76                              ; 0x4c
	.long	111                             ; 0x6f
	.long	99                              ; 0x63
	.long	97                              ; 0x61
	.long	108                             ; 0x6c
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.2
l_.str.2:
	.long	82                              ; 0x52
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	0                               ; 0x0

	.p2align	2                               ; @.str.3
l_.str.3:
	.long	80                              ; 0x50
	.long	114                             ; 0x72
	.long	111                             ; 0x6f
	.long	118                             ; 0x76
	.long	105                             ; 0x69
	.long	100                             ; 0x64
	.long	101                             ; 0x65
	.long	114                             ; 0x72
	.long	0                               ; 0x0

	.comm	_RESOURCE_CONNECTED,4,2         ; @RESOURCE_CONNECTED
	.comm	_RESOURCETYPE_DISK,4,2          ; @RESOURCETYPE_DISK
	.comm	_WN_SUCCESS,8,3                 ; @WN_SUCCESS
	.comm	_WN_MORE_DATA,8,3               ; @WN_MORE_DATA
	.p2align	2                               ; @.str.4
l_.str.4:
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	9                               ; 0x9
	.long	9                               ; 0x9
	.long	37                              ; 0x25
	.long	115                             ; 0x73
	.long	10                              ; 0xa
	.long	0                               ; 0x0

	.comm	_WN_NO_MORE_ENTRIES,8,3         ; @WN_NO_MORE_ENTRIES
	.no_dead_strip	_EnumerateConnections
.subsections_via_symbols
