	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DisconnectDriveExit            ## -- Begin function DisconnectDriveExit
	.p2align	4, 0x90
_DisconnectDriveExit:                   ## @DisconnectDriveExit
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_IDC_CONNECTEDDRIVELIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	$-1, %esi
	callq	_ListView_GetNextItem
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	__countof
	movl	%r15d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movl	%eax, %r8d
	callq	_ListView_GetItemText
	movq	_CONNECT_UPDATE_PROFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_WNetCancelConnection2
	movl	%eax, %ebx
	movq	_ID_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_EndDialog
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CONNECTEDDRIVELIST,4,2     ## @IDC_CONNECTEDDRIVELIST
	.comm	_LVNI_SELECTED,4,2              ## @LVNI_SELECTED
	.comm	_CONNECT_UPDATE_PROFILE,4,2     ## @CONNECT_UPDATE_PROFILE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ID_OK,4,2                      ## @ID_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DisconnectDriveExit            ; -- Begin function DisconnectDriveExit
	.p2align	2
_DisconnectDriveExit:                   ; @DisconnectDriveExit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _IDC_CONNECTEDDRIVELIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_CONNECTEDDRIVELIST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
Lloh6:
	adrp	x8, _LVNI_SELECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LVNI_SELECTED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_ListView_GetNextItem
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, sp
	bl	__countof
	mov	x4, x0
	mov	x3, sp
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_ListView_GetItemText
Lloh9:
	adrp	x8, _CONNECT_UPDATE_PROFILE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CONNECT_UPDATE_PROFILE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, sp
	bl	_WNetCancelConnection2
	mov	x20, x0
Lloh15:
	adrp	x8, _ID_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ID_OK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_EndDialog
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, 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
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CONNECTEDDRIVELIST,4,2     ; @IDC_CONNECTEDDRIVELIST
	.comm	_LVNI_SELECTED,4,2              ; @LVNI_SELECTED
	.comm	_CONNECT_UPDATE_PROFILE,4,2     ; @CONNECT_UPDATE_PROFILE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ID_OK,4,2                      ; @ID_OK
.subsections_via_symbols
