	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadRdpSettingsFromFile        ## -- Begin function LoadRdpSettingsFromFile
	.p2align	4, 0x90
_LoadRdpSettingsFromFile:               ## @LoadRdpSettingsFromFile
	.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
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movl	%r12d, %esi
	testq	%rbx, %rbx
	je	LBB0_1
LBB0_4:
	movq	%rbx, %rdi
	callq	_OpenRdpFile
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ReadRdpFile
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r15
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_ParseSettings
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movq	%rbx, %rdi
	callq	_CloseRdpFile
	jmp	LBB0_8
LBB0_1:
	movq	$0, -56(%rbp)
	movq	_CSIDL_PERSONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r8
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SHGetFolderLocation
	movq	_S_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_SHGetPathFromIDListW
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	l_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_wcscat
	movq	-56(%rbp), %rdi
	callq	_CoTaskMemFree
	movl	(%r13), %esi
	movq	%r15, %rbx
	jmp	LBB0_4
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CSIDL_PERSONAL,4,2             ## @CSIDL_PERSONAL
	.comm	_S_OK,8,3                       ## @S_OK
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	92                              ## 0x5c
	.long	68                              ## 0x44
	.long	101                             ## 0x65
	.long	102                             ## 0x66
	.long	97                              ## 0x61
	.long	117                             ## 0x75
	.long	108                             ## 0x6c
	.long	116                             ## 0x74
	.long	46                              ## 0x2e
	.long	114                             ## 0x72
	.long	100                             ## 0x64
	.long	112                             ## 0x70
	.long	0                               ## 0x0

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadRdpSettingsFromFile        ; -- Begin function LoadRdpSettingsFromFile
	.p2align	2
_LoadRdpSettingsFromFile:               ; @LoadRdpSettingsFromFile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x22, _FALSE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w19, [x22]
	mov	x8, x19
	cbz	x1, LBB0_5
LBB0_1:
	mov	x0, x1
	mov	x1, x8
	bl	_OpenRdpFile
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	bl	_ReadRdpFile
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_ParseSettings
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
LBB0_4:
	mov	x0, x21
	bl	_CloseRdpFile
	b	LBB0_8
LBB0_5:
	stur	xzr, [x29, #-48]
Lloh13:
	adrp	x8, _CSIDL_PERSONAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CSIDL_PERSONAL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	sub	x4, x29, #48
	mov	x0, #0
	mov	x2, #0
	mov	w3, #0
	bl	_SHGetFolderLocation
Lloh16:
	adrp	x8, _S_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.6:
	ldur	x0, [x29, #-48]
	mov	x1, x21
	bl	_SHGetPathFromIDListW
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wcscat
	ldur	x0, [x29, #-48]
	bl	_CoTaskMemFree
	ldr	w8, [x22]
	mov	x1, x21
	b	LBB0_1
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CSIDL_PERSONAL,4,2             ; @CSIDL_PERSONAL
	.comm	_S_OK,8,3                       ; @S_OK
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	92                              ; 0x5c
	.long	68                              ; 0x44
	.long	101                             ; 0x65
	.long	102                             ; 0x66
	.long	97                              ; 0x61
	.long	117                             ; 0x75
	.long	108                             ; 0x6c
	.long	116                             ; 0x74
	.long	46                              ; 0x2e
	.long	114                             ; 0x72
	.long	100                             ; 0x64
	.long	112                             ; 0x70
	.long	0                               ; 0x0

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
