	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScmCheckAccess
_ScmCheckAccess:                        ## @ScmCheckAccess
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	%rsi, -16(%rbp)
	movq	(%rdi), %rax
	movq	_MANAGER_TAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ScmManagerMapping@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	movq	_SERVICE_TAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_ScmServiceMapping@GOTPCREL(%rip), %rsi
LBB0_5:
	leaq	-16(%rbp), %rdi
	callq	_RtlMapGenericMask
	movq	-16(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_ERROR_INVALID_HANDLE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MANAGER_TAG,8,3                ## @MANAGER_TAG
	.comm	_ScmManagerMapping,4,2          ## @ScmManagerMapping
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_SERVICE_TAG,8,3                ## @SERVICE_TAG
	.comm	_ScmServiceMapping,4,2          ## @ScmServiceMapping
	.comm	_ERROR_INVALID_HANDLE,8,3       ## @ERROR_INVALID_HANDLE
	.no_dead_strip	_ScmCheckAccess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScmCheckAccess
_ScmCheckAccess:                        ; @ScmCheckAccess
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	x1, [sp, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MANAGER_TAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MANAGER_TAG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, _ScmManagerMapping@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ScmManagerMapping@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _SERVICE_TAG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SERVICE_TAG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, _ScmServiceMapping@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ScmServiceMapping@GOTPAGEOFF]
LBB0_4:
	add	x0, sp, #8
	bl	_RtlMapGenericMask
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
Lloh10:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _ERROR_INVALID_HANDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR_INVALID_HANDLE@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MANAGER_TAG,8,3                ; @MANAGER_TAG
	.comm	_ScmManagerMapping,4,2          ; @ScmManagerMapping
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_SERVICE_TAG,8,3                ; @SERVICE_TAG
	.comm	_ScmServiceMapping,4,2          ; @ScmServiceMapping
	.comm	_ERROR_INVALID_HANDLE,8,3       ; @ERROR_INVALID_HANDLE
	.no_dead_strip	_ScmCheckAccess
.subsections_via_symbols
