	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmCanonDriverImagePath        ## -- Begin function ScmCanonDriverImagePath
	.p2align	4, 0x90
_ScmCanonDriverImagePath:               ## @ScmCanonDriverImagePath
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_wcslen
	movl	%eax, %ebx
	cmpl	$13, %eax
	jl	LBB0_12
## %bb.1:
	leaq	l_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	$12, %edx
	callq	__wcsnicmp
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	cmpl	$14, %ebx
	jb	LBB0_12
## %bb.7:
	leaq	l_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movl	$13, %edx
	callq	__wcsnicmp
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	cmpl	$92, (%r12)
	je	LBB0_16
## %bb.13:
	cmpl	$58, 4(%r12)
	jne	LBB0_14
LBB0_16:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_RtlDosPathNameToNtPathName_U
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	-40(%rbp), %edx
	addl	$4, %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	sarl	$2, %edx
	movq	%rax, %rdi
	callq	_wcsncpy
	leaq	-40(%rbp), %rdi
	callq	_RtlFreeUnicodeString
	movq	_SERVICE_BOOT_START@GOTPCREL(%rip), %rcx
	movq	(%r14), %rax
	cmpq	%r15, (%rcx)
	jne	LBB0_21
## %bb.22:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ScmConvertToBootPathName
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	(%r14), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	jmp	LBB0_29
LBB0_17:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_ERROR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_14:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	4(,%rbx,4), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_wcscpy
	jmp	LBB0_27
LBB0_2:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	4(,%rbx,4), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_SERVICE_BOOT_START@GOTPCREL(%rip), %rcx
	leaq	48(%r12), %rsi
	cmpq	%r15, (%rcx)
	cmovneq	%r12, %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_wcscpy
	jmp	LBB0_25
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	leaq	-40(%rbp), %rdi
	callq	_RtlFreeUnicodeString
	movq	_ERROR_NOT_ENOUGH_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	jmp	LBB0_26
LBB0_8:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	4(,%rbx,4), %edx
	movl	%eax, %edi
	callq	_HeapAlloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	_SERVICE_BOOT_START@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_11
## %bb.10:
	leaq	l_.str(%rip), %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_wcscpy
	movq	(%r14), %rax
LBB0_11:
	addq	$52, %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_wcscat
	jmp	LBB0_25
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_ERROR_NOT_ENOUGH_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_24:
	movq	-48(%rbp), %rdi
	callq	_ASSERT
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi
	addq	$48, %rsi
	xorl	%eax, %eax
	callq	_wcscpy
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-48(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
LBB0_25:
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
LBB0_26:
	xorl	%eax, %eax
	callq	_DPRINT
LBB0_27:
	movq	_NO_ERROR@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rbx
LBB0_29:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @.str
l_.str:
	.long	92                              ## 0x5c
	.long	83                              ## 0x53
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	82                              ## 0x52
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	92                              ## 0x5c
	.long	0                               ## 0x0

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Error allocating memory for canonized service name!\n"

	.comm	_ERROR_NOT_ENOUGH_MEMORY,8,3    ## @ERROR_NOT_ENOUGH_MEMORY
	.comm	_SERVICE_BOOT_START,8,3         ## @SERVICE_BOOT_START
L_.str.2:                               ## @.str.2
	.asciz	"Canonicalized name %S\n"

	.comm	_NO_ERROR,8,3                   ## @NO_ERROR
	.section	__TEXT,__const
	.p2align	2                               ## @.str.3
l_.str.3:
	.long	37                              ## 0x25
	.long	83                              ## 0x53
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	82                              ## 0x52
	.long	111                             ## 0x6f
	.long	111                             ## 0x6f
	.long	116                             ## 0x74
	.long	37                              ## 0x25
	.long	92                              ## 0x5c
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"RtlDosPathNameToNtPathName_U() failed!\n"

	.comm	_ERROR_INVALID_PARAMETER,8,3    ## @ERROR_INVALID_PARAMETER
L_.str.5:                               ## @.str.5
	.asciz	"Error converting named!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmCanonDriverImagePath        ; -- Begin function ScmCanonDriverImagePath
	.p2align	2
_ScmCanonDriverImagePath:               ; @ScmCanonDriverImagePath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wcslen
	mov	x22, x0
	cmp	w0, #13
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x23
	mov	x1, x21
	mov	w2, #12
	bl	__wcsnicmp
	cbz	w0, LBB0_14
; %bb.2:
	cmp	w22, #14
	b.lo	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	mov	w2, #13
	bl	__wcsnicmp
	cbz	w0, LBB0_18
LBB0_4:
	ldr	w8, [x21]
	cmp	w8, #92
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x21, #4]
	cmp	w8, #58
	b.ne	LBB0_12
LBB0_6:
	add	x1, sp, #24
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	bl	_RtlDosPathNameToNtPathName_U
	cbz	w0, LBB0_11
; %bb.7:
	bl	_GetProcessHeap
Lloh4:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w8, [sp, #24]
	add	w2, w8, #4
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_16
; %bb.8:
	ldp	w8, w1, [sp, #24]
	asr	w2, w8, #2
	bl	_wcsncpy
	add	x0, sp, #24
	bl	_RtlFreeUnicodeString
Lloh7:
	adrp	x8, _SERVICE_BOOT_START@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SERVICE_BOOT_START@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x0, [x19]
	cmp	x8, x20
	b.ne	LBB0_17
; %bb.9:
	add	x1, sp, #16
	bl	_ScmConvertToBootPathName
	cbz	x0, LBB0_24
; %bb.10:
	mov	x20, x0
	bl	_GetProcessHeap
	ldr	x2, [x19]
	mov	w1, #0
	bl	_HeapFree
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DPRINT
	b	LBB0_29
LBB0_11:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPRINT
Lloh14:
	adrp	x8, _ERROR_INVALID_PARAMETER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_28
LBB0_12:
	bl	_GetProcessHeap
Lloh16:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	lsl	w8, w22, #2
	add	w2, w8, #4
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_22
; %bb.13:
	str	x21, [sp]
	bl	_wcscpy
	b	LBB0_27
LBB0_14:
	bl	_GetProcessHeap
Lloh19:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	lsl	w8, w22, #2
	add	w2, w8, #4
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_22
; %bb.15:
Lloh22:
	adrp	x8, _SERVICE_BOOT_START@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SERVICE_BOOT_START@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	mov	w9, #48
	cmp	x8, x20
	csel	x8, x9, xzr, eq
	add	x8, x21, x8
	str	x8, [sp]
	bl	_wcscpy
	b	LBB0_25
LBB0_16:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	add	x0, sp, #24
	bl	_RtlFreeUnicodeString
	b	LBB0_23
LBB0_17:
	str	x0, [sp]
	b	LBB0_26
LBB0_18:
	bl	_GetProcessHeap
Lloh27:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	lsl	w8, w22, #2
	add	w2, w8, #4
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_22
; %bb.19:
Lloh30:
	adrp	x8, _SERVICE_BOOT_START@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SERVICE_BOOT_START@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_21
; %bb.20:
	str	x23, [sp]
	bl	_wcscpy
	ldr	x0, [x19]
LBB0_21:
	add	x1, x21, #52
	bl	_wcscat
	b	LBB0_25
LBB0_22:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
LBB0_23:
Lloh35:
	adrp	x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERROR_NOT_ENOUGH_MEMORY@GOTPAGEOFF]
	b	LBB0_28
LBB0_24:
	ldr	x0, [sp, #16]
	bl	_ASSERT
	ldr	x0, [x19]
	ldr	x8, [sp, #16]
	add	x8, x8, #48
	str	x8, [sp]
	bl	_wcscpy
	bl	_GetProcessHeap
	ldr	x2, [sp, #16]
	mov	w1, #0
	bl	_HeapFree
LBB0_25:
	ldr	x8, [x19]
	str	x8, [sp]
LBB0_26:
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINT
LBB0_27:
Lloh39:
	adrp	x8, _NO_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NO_ERROR@GOTPAGEOFF]
LBB0_28:
	ldr	x20, [x8]
LBB0_29:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @.str
l_.str:
	.long	92                              ; 0x5c
	.long	83                              ; 0x53
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	82                              ; 0x52
	.long	111                             ; 0x6f
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	92                              ; 0x5c
	.long	0                               ; 0x0

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Error allocating memory for canonized service name!\n"

	.comm	_ERROR_NOT_ENOUGH_MEMORY,8,3    ; @ERROR_NOT_ENOUGH_MEMORY
	.comm	_SERVICE_BOOT_START,8,3         ; @SERVICE_BOOT_START
l_.str.2:                               ; @.str.2
	.asciz	"Canonicalized name %S\n"

	.comm	_NO_ERROR,8,3                   ; @NO_ERROR
	.section	__TEXT,__const
	.p2align	2                               ; @.str.3
l_.str.3:
	.long	37                              ; 0x25
	.long	83                              ; 0x53
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	82                              ; 0x52
	.long	111                             ; 0x6f
	.long	111                             ; 0x6f
	.long	116                             ; 0x74
	.long	37                              ; 0x25
	.long	92                              ; 0x5c
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"RtlDosPathNameToNtPathName_U() failed!\n"

	.comm	_ERROR_INVALID_PARAMETER,8,3    ; @ERROR_INVALID_PARAMETER
l_.str.5:                               ; @.str.5
	.asciz	"Error converting named!\n"

.subsections_via_symbols
