	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateShortcut                 ## -- Begin function CreateShortcut
	.p2align	4, 0x90
_CreateShortcut:                        ## @CreateShortcut
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%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, %r14
	movq	16(%rbx), %rdi
	callq	_PathFindExtensionW
	movl	%eax, %edi
	callq	_IsExtensionAShortcut
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_CLSCTX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CLSID_ShellLink@GOTPCREL(%rip), %rdi
	movq	_IID_IShellLinkW@GOTPCREL(%rip), %rcx
	leaq	-64(%rbp), %r8
	xorl	%esi, %esi
	callq	_CoCreateInstance
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	-64(%rbp), %rdi
	movq	_IID_IPersistFile@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_IUnknown_QueryInterface
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rdi
	callq	_IUnknown_Release
	jmp	LBB0_2
LBB0_9:
	movq	%r14, %rdi
	callq	__countof
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_StringCchCopyW
LBB0_10:
	movq	_CLSCTX_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CLSID_ShellLink@GOTPCREL(%rip), %rdi
	movq	_IID_IShellLinkW@GOTPCREL(%rip), %rcx
	leaq	-48(%rbp), %r8
	xorl	%esi, %esi
	callq	_CoCreateInstance
	movq	_S_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.11:
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rax
	movq	%r14, %rsi
	callq	*32(%rax)
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rax
	movl	8(%rbx), %esi
	callq	*24(%rax)
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rax
	movl	4(%rbx), %esi
	callq	*16(%rax)
	movq	-48(%rbp), %rdi
	movq	_IID_IPersistFile@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_IUnknown_QueryInterface
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.13:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	movl	(%rbx), %esi
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*8(%rax)
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_IUnknown_Release
	movq	-48(%rbp), %rdi
	callq	_IUnknown_Release
	xorl	%eax, %eax
	cmpq	(%r15), %rbx
	sete	%al
	jmp	LBB0_14
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_IUnknown_Release
	jmp	LBB0_2
LBB0_5:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rax
	movl	16(%rbx), %esi
	movq	_STGM_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	movq	%rax, %r15
	movq	-56(%rbp), %rdi
	callq	_IUnknown_Release
	movq	%r15, %rdi
	callq	_FAILED
	movq	-64(%rbp), %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_IUnknown_Release
	jmp	LBB0_2
LBB0_8:
	movq	%r14, %rdi
	callq	__countof
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_IShellLinkW_GetPath
	movq	%rax, %r15
	movq	-64(%rbp), %rdi
	callq	_IUnknown_Release
	movq	%r15, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_10
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_CLSID_ShellLink,4,2            ## @CLSID_ShellLink
	.comm	_CLSCTX_ALL,4,2                 ## @CLSCTX_ALL
	.comm	_IID_IShellLinkW,4,2            ## @IID_IShellLinkW
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IID_IPersistFile,4,2           ## @IID_IPersistFile
	.comm	_STGM_READ,4,2                  ## @STGM_READ
	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateShortcut                 ; -- Begin function CreateShortcut
	.p2align	2
_CreateShortcut:                        ; @CreateShortcut
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
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	x20, x9, x8
	mov	sp, x20
	ldr	x0, [x0, #16]
	bl	_PathFindExtensionW
	bl	_IsExtensionAShortcut
Lloh8:
	adrp	x23, _CLSCTX_ALL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CLSCTX_ALL@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w2, [x23]
Lloh10:
	adrp	x0, _CLSID_ShellLink@GOTPAGE
Lloh11:
	ldr	x0, [x0, _CLSID_ShellLink@GOTPAGEOFF]
Lloh12:
	adrp	x3, _IID_IShellLinkW@GOTPAGE
Lloh13:
	ldr	x3, [x3, _IID_IShellLinkW@GOTPAGEOFF]
	sub	x4, x29, #72
	mov	x1, #0
	bl	_CoCreateInstance
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.2:
	ldur	x0, [x29, #-72]
Lloh14:
	adrp	x1, _IID_IPersistFile@GOTPAGE
Lloh15:
	ldr	x1, [x1, _IID_IPersistFile@GOTPAGEOFF]
	sub	x2, x29, #80
	bl	_IUnknown_QueryInterface
	bl	_FAILED
	cbz	x0, LBB0_9
; %bb.3:
	ldur	x0, [x29, #-72]
	bl	_IUnknown_Release
	b	LBB0_12
LBB0_4:
	mov	x0, x20
	bl	__countof
	mov	x1, x0
	ldr	x2, [x19, #16]
	mov	x0, x20
	bl	_StringCchCopyW
LBB0_5:
	ldr	w2, [x23]
Lloh16:
	adrp	x0, _CLSID_ShellLink@GOTPAGE
Lloh17:
	ldr	x0, [x0, _CLSID_ShellLink@GOTPAGEOFF]
Lloh18:
	adrp	x3, _IID_IShellLinkW@GOTPAGE
Lloh19:
	ldr	x3, [x3, _IID_IShellLinkW@GOTPAGEOFF]
	sub	x4, x29, #64
	mov	x1, #0
	bl	_CoCreateInstance
Lloh20:
	adrp	x21, _S_OK@GOTPAGE
Lloh21:
	ldr	x21, [x21, _S_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.6:
	ldur	x0, [x29, #-64]
	ldr	x8, [x0]
	ldr	x8, [x8, #32]
	mov	x1, x20
	blr	x8
	ldur	x0, [x29, #-64]
	ldr	x8, [x0]
	ldr	x8, [x8, #24]
	ldr	w1, [x19, #8]
	blr	x8
	ldur	x0, [x29, #-64]
	ldr	x8, [x0]
	ldr	x8, [x8, #16]
	ldr	w1, [x19, #4]
	blr	x8
	ldur	x0, [x29, #-64]
Lloh22:
	adrp	x1, _IID_IPersistFile@GOTPAGE
Lloh23:
	ldr	x1, [x1, _IID_IPersistFile@GOTPAGEOFF]
	sub	x2, x29, #80
	bl	_IUnknown_QueryInterface
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldur	x0, [x29, #-80]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w1, [x19]
Lloh24:
	adrp	x9, _TRUE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x9]
	blr	x8
	mov	x19, x0
	ldur	x0, [x29, #-80]
	bl	_IUnknown_Release
	ldur	x0, [x29, #-64]
	bl	_IUnknown_Release
	ldr	x8, [x21]
	cmp	x19, x8
	cset	w0, eq
	b	LBB0_13
LBB0_8:
	ldur	x0, [x29, #-64]
	bl	_IUnknown_Release
	b	LBB0_12
LBB0_9:
	ldur	x0, [x29, #-80]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w1, [x19, #16]
Lloh27:
	adrp	x9, _STGM_READ@GOTPAGE
Lloh28:
	ldr	x9, [x9, _STGM_READ@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x9]
	blr	x8
	mov	x21, x0
	ldur	x0, [x29, #-80]
	bl	_IUnknown_Release
	mov	x0, x21
	bl	_FAILED
	ldur	x21, [x29, #-72]
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_IUnknown_Release
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	__countof
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	bl	_IShellLinkW_GetPath
	mov	x21, x0
	ldur	x0, [x29, #-72]
	bl	_IUnknown_Release
	mov	x0, x21
	bl	_FAILED
	cbz	x0, LBB0_5
LBB0_12:
Lloh30:
	adrp	x8, _FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
LBB0_13:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_CLSID_ShellLink,4,2            ; @CLSID_ShellLink
	.comm	_CLSCTX_ALL,4,2                 ; @CLSCTX_ALL
	.comm	_IID_IShellLinkW,4,2            ; @IID_IShellLinkW
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IID_IPersistFile,4,2           ; @IID_IPersistFile
	.comm	_STGM_READ,4,2                  ; @STGM_READ
	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
