	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScmCheckDriver
_ScmCheckDriver:                        ## @ScmCheckDriver
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	56(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	movq	8(%r14), %rax
	movq	_SERVICE_KERNEL_DRIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	l_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movq	_SERVICE_FILE_SYSTEM_DRIVER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	leaq	l_.str.2(%rip), %rsi
LBB0_3:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_RtlInitUnicodeString
	leaq	-60(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_InitializeObjectAttributes
	movq	_DIRECTORY_QUERY@GOTPCREL(%rip), %rax
	movq	_DIRECTORY_TRAVERSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	movq	%r15, %rdx
	callq	_NtOpenDirectoryObject
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	4(,%rax,8), %r15d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_HeapAlloc
	movq	%rax, %rbx
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %r12
	movq	_STATUS_NO_MORE_ENTRIES@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r12, %r9
	callq	_NtQueryDirectoryObject
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	56(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DPRINT
	movl	56(%r14), %edi
	movl	(%rbx), %esi
	callq	__wcsicmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.10:
	movl	56(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_DPRINT
	movq	_SERVICE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_SERVICE_ACCEPT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_12
LBB0_7:
	movl	56(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
LBB0_12:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
	movl	-44(%rbp), %edi
	callq	_NtClose
	movq	_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ScmCheckDriver(%S) called\n"

	.comm	_SERVICE_KERNEL_DRIVER,8,3      ## @SERVICE_KERNEL_DRIVER
	.section	__TEXT,__const
	.p2align	2                               ## @.str.1
l_.str.1:
	.long	92                              ## 0x5c
	.long	68                              ## 0x44
	.long	114                             ## 0x72
	.long	105                             ## 0x69
	.long	118                             ## 0x76
	.long	101                             ## 0x65
	.long	114                             ## 0x72
	.long	0                               ## 0x0

	.comm	_SERVICE_FILE_SYSTEM_DRIVER,8,3 ## @SERVICE_FILE_SYSTEM_DRIVER
	.p2align	2                               ## @.str.2
l_.str.2:
	.long	92                              ## 0x5c
	.long	70                              ## 0x46
	.long	105                             ## 0x69
	.long	108                             ## 0x6c
	.long	101                             ## 0x65
	.long	83                              ## 0x53
	.long	121                             ## 0x79
	.long	115                             ## 0x73
	.long	116                             ## 0x74
	.long	101                             ## 0x65
	.long	109                             ## 0x6d
	.long	0                               ## 0x0

	.comm	_DIRECTORY_QUERY,4,2            ## @DIRECTORY_QUERY
	.comm	_DIRECTORY_TRAVERSE,4,2         ## @DIRECTORY_TRAVERSE
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_STATUS_NO_MORE_ENTRIES,8,3     ## @STATUS_NO_MORE_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"Service '%S' failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"Comparing: '%S'  '%wZ'\n"

L_.str.5:                               ## @.str.5
	.asciz	"Found: '%S'  '%wZ'\n"

	.comm	_SERVICE_RUNNING,4,2            ## @SERVICE_RUNNING
	.comm	_SERVICE_ACCEPT_STOP,4,2        ## @SERVICE_ACCEPT_STOP
	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.comm	_STATUS_SUCCESS,8,3             ## @STATUS_SUCCESS
	.no_dead_strip	_ScmCheckDriver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScmCheckDriver
_ScmCheckDriver:                        ; @ScmCheckDriver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w1, [x0, #56]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _SERVICE_KERNEL_DRIVER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SERVICE_KERNEL_DRIVER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x9, _SERVICE_FILE_SYSTEM_DRIVER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SERVICE_FILE_SYSTEM_DRIVER@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_3:
	add	x0, sp, #24
	bl	_RtlInitUnicodeString
	add	x0, sp, #28
	add	x1, sp, #24
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_InitializeObjectAttributes
Lloh12:
	adrp	x8, _DIRECTORY_QUERY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIRECTORY_QUERY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DIRECTORY_TRAVERSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DIRECTORY_TRAVERSE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x0, sp, #20
	add	x2, sp, #28
	bl	_NtOpenDirectoryObject
	mov	x20, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_13
; %bb.4:
Lloh18:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	w21, #4
	bfi	w21, w8, #3, #29
	bl	_GetProcessHeap
Lloh21:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_HeapAlloc
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh24:
	adrp	x23, _TRUE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
Lloh26:
	adrp	x24, _FALSE@GOTPAGE
Lloh27:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
Lloh28:
	adrp	x22, l_.str.4@PAGE
Lloh29:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh30:
	adrp	x25, _STATUS_NO_MORE_ENTRIES@GOTPAGE
Lloh31:
	ldr	x25, [x25, _STATUS_NO_MORE_ENTRIES@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x23]
	cbz	x3, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #20]
	ldr	w4, [x24]
	add	x5, sp, #12
	add	x6, sp, #16
	mov	x1, x20
	mov	x2, x21
	bl	_NtQueryDirectoryObject
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_NT_SUCCESS
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19, #56]
	str	x20, [sp]
	mov	x0, x22
	bl	_DPRINT
	ldr	w0, [x19, #56]
	ldr	w1, [x20]
	bl	__wcsicmp
	cbnz	x0, LBB0_5
; %bb.9:
	ldr	w1, [x19, #56]
	str	x20, [sp]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DPRINT
Lloh34:
	adrp	x8, _SERVICE_RUNNING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SERVICE_RUNNING@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh37:
	adrp	x8, _SERVICE_ACCEPT_STOP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SERVICE_ACCEPT_STOP@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _ERROR_SUCCESS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #16]
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x9, [x23]
	str	x9, [x8]
	b	LBB0_12
LBB0_11:
	ldr	w1, [x19, #56]
Lloh43:
	adrp	x0, l_.str.3@PAGE
Lloh44:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINT
LBB0_12:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	ldr	w0, [sp, #20]
	bl	_NtClose
Lloh45:
	adrp	x8, _STATUS_SUCCESS@GOTPAGE
Lloh46:
	ldr	x8, [x8, _STATUS_SUCCESS@GOTPAGEOFF]
Lloh47:
	ldr	x20, [x8]
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ScmCheckDriver(%S) called\n"

	.comm	_SERVICE_KERNEL_DRIVER,8,3      ; @SERVICE_KERNEL_DRIVER
	.section	__TEXT,__const
	.p2align	2                               ; @.str.1
l_.str.1:
	.long	92                              ; 0x5c
	.long	68                              ; 0x44
	.long	114                             ; 0x72
	.long	105                             ; 0x69
	.long	118                             ; 0x76
	.long	101                             ; 0x65
	.long	114                             ; 0x72
	.long	0                               ; 0x0

	.comm	_SERVICE_FILE_SYSTEM_DRIVER,8,3 ; @SERVICE_FILE_SYSTEM_DRIVER
	.p2align	2                               ; @.str.2
l_.str.2:
	.long	92                              ; 0x5c
	.long	70                              ; 0x46
	.long	105                             ; 0x69
	.long	108                             ; 0x6c
	.long	101                             ; 0x65
	.long	83                              ; 0x53
	.long	121                             ; 0x79
	.long	115                             ; 0x73
	.long	116                             ; 0x74
	.long	101                             ; 0x65
	.long	109                             ; 0x6d
	.long	0                               ; 0x0

	.comm	_DIRECTORY_QUERY,4,2            ; @DIRECTORY_QUERY
	.comm	_DIRECTORY_TRAVERSE,4,2         ; @DIRECTORY_TRAVERSE
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_STATUS_NO_MORE_ENTRIES,8,3     ; @STATUS_NO_MORE_ENTRIES
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"Service '%S' failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"Comparing: '%S'  '%wZ'\n"

l_.str.5:                               ; @.str.5
	.asciz	"Found: '%S'  '%wZ'\n"

	.comm	_SERVICE_RUNNING,4,2            ; @SERVICE_RUNNING
	.comm	_SERVICE_ACCEPT_STOP,4,2        ; @SERVICE_ACCEPT_STOP
	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.comm	_STATUS_SUCCESS,8,3             ; @STATUS_SUCCESS
	.no_dead_strip	_ScmCheckDriver
.subsections_via_symbols
