	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OpenRdpFile
_OpenRdpFile:                           ## @OpenRdpFile
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	testq	%rsi, %rsi
	movq	_GENERIC_WRITE@GOTPCREL(%rip), %rax
	cmoveq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movq	_CREATE_ALWAYS@GOTPCREL(%rip), %rcx
	cmoveq	_OPEN_EXISTING@GOTPCREL(%rip), %rcx
	movl	(%rax), %esi
	movl	(%rcx), %r8d
	movq	_FILE_ATTRIBUTE_NORMAL@GOTPCREL(%rip), %rax
	movq	_FILE_ATTRIBUTE_HIDDEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	movq	$0, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_CreateFileW
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GENERIC_WRITE,4,2              ## @GENERIC_WRITE
	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_CREATE_ALWAYS,4,2              ## @CREATE_ALWAYS
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ## @FILE_ATTRIBUTE_NORMAL
	.comm	_FILE_ATTRIBUTE_HIDDEN,4,2      ## @FILE_ATTRIBUTE_HIDDEN
	.no_dead_strip	_OpenRdpFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OpenRdpFile
_OpenRdpFile:                           ; @OpenRdpFile
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GENERIC_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GENERIC_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GENERIC_READ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GENERIC_READ@GOTPAGEOFF]
	cmp	x1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _CREATE_ALWAYS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CREATE_ALWAYS@GOTPAGEOFF]
Lloh6:
	adrp	x9, _OPEN_EXISTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OPEN_EXISTING@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FILE_ATTRIBUTE_NORMAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FILE_ATTRIBUTE_HIDDEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FILE_ATTRIBUTE_HIDDEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	b	_CreateFileW
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GENERIC_WRITE,4,2              ; @GENERIC_WRITE
	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_CREATE_ALWAYS,4,2              ; @CREATE_ALWAYS
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_FILE_ATTRIBUTE_NORMAL,4,2      ; @FILE_ATTRIBUTE_NORMAL
	.comm	_FILE_ATTRIBUTE_HIDDEN,4,2      ; @FILE_ATTRIBUTE_HIDDEN
	.no_dead_strip	_OpenRdpFile
.subsections_via_symbols
