	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_access                     ## -- Begin function kcm_access
	.p2align	4, 0x90
_kcm_access:                            ## @kcm_access
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rcx, %rdi
	callq	_KCM_ASSERT_VALID
	leal	-128(%r14), %ecx
	cmpl	$23, %ecx
	ja	LBB0_36
## %bb.1:
	movl	$14698319, %r15d                ## imm = 0xE0474F
	shrl	%cl, %r15d
	movl	$2078896, %ebx                  ## imm = 0x1FB8B0
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
	movq	_KCM_FLAGS_OWNER_IS_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.2:
	leal	-134(%r14), %eax
	cmpl	$15, %eax
	ja	LBB0_4
## %bb.3:
	movl	$32781, %ecx                    ## imm = 0x800D
	btl	%eax, %ecx
	jb	LBB0_36
LBB0_4:
	movq	%r13, %rdi
	callq	_CLIENT_IS_ROOT
	testq	%rax, %rax
	jne	LBB0_38
LBB0_6:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_S_IROTH@GOTPCREL(%rip), %rax
	movq	_S_IWOTH@GOTPCREL(%rip), %rbx
	movq	%r13, %rdi
	movl	(%rbx), %r13d
	orl	(%rax), %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_CLIENT_IS_ROOT
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	testb	$1, %r15b
	jne	LBB0_9
## %bb.8:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IRGRP@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	movq	_S_IROTH@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_9:
	testb	$1, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movq	_S_IWGRP@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	orl	(%rbx), %r13d
LBB0_11:
	movq	8(%r12), %rsi
	movl	32(%r12), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_kcm_is_same_session
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	xorl	%eax, %eax
	testb	$1, %r15b
	jne	LBB0_14
## %bb.13:
	movq	_S_IROTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	orl	%r13d, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testb	$1, %dl
	movq	_S_IWOTH@GOTPCREL(%rip), %rcx
	jne	LBB0_24
## %bb.15:
	orl	(%rcx), %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rcx
	cmpq	8(%r12), %rcx
	jne	LBB0_29
## %bb.16:
	xorl	%ecx, %ecx
	testb	$1, %r15b
	jne	LBB0_18
## %bb.17:
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_18:
	orl	%ecx, %eax
	jmp	LBB0_23
LBB0_19:
	movq	(%rbx), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_28
## %bb.20:
	xorl	%eax, %eax
	testb	$1, %r15b
	jne	LBB0_22
## %bb.21:
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:
	orl	%r13d, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	testb	$1, %dl
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_29
LBB0_23:
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_29
LBB0_24:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rcx
	cmpq	8(%r12), %rcx
	jne	LBB0_29
## %bb.25:
	xorl	%ecx, %ecx
	testb	$1, %r15b
	jne	LBB0_27
## %bb.26:
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_27:
	orl	%ecx, %eax
	jmp	LBB0_29
LBB0_28:
	movl	%r13d, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_29:
	movq	8(%r13), %rcx
	cmpq	16(%r12), %rcx
	jne	LBB0_34
## %bb.30:
	xorl	%ecx, %ecx
	testb	$1, %r15b
	jne	LBB0_32
## %bb.31:
	movq	_S_IRGRP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_32:
	orl	%ecx, %eax
	testb	$1, %dl
	jne	LBB0_34
## %bb.33:
	movq	_S_IWGRP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_34:
	testl	%eax, 24(%r12)
	jne	LBB0_38
LBB0_36:
	movq	_KRB5_FCC_PERM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_38
## %bb.37:
	movl	16(%r13), %r15d
	movl	%r14d, %edi
	callq	_kcm_op2string
	movl	28(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_kcm_log
	jmp	LBB0_39
LBB0_38:
	xorl	%ebx, %ebx
LBB0_39:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_FCC_PERM,8,3              ## @KRB5_FCC_PERM
	.comm	_KCM_FLAGS_OWNER_IS_SYSTEM,4,2  ## @KCM_FLAGS_OWNER_IS_SYSTEM
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_S_IWOTH,4,2                    ## @S_IWOTH
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Process %d is not permitted to call %s on cache %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_access                     ; -- Begin function kcm_access
	.p2align	2
_kcm_access:                            ; @kcm_access
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x0, x3
	bl	_KCM_ASSERT_VALID
	sub	w22, w20, #128
	cmp	w22, #23
	b.hi	LBB0_25
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _KCM_FLAGS_OWNER_IS_SYSTEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KCM_FLAGS_OWNER_IS_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	sub	w8, w20, #134
	cmp	w8, #15
	b.hi	LBB0_4
; %bb.3:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #32781
	tst	w8, w9
	b.ne	LBB0_25
LBB0_4:
	mov	x0, x21
	bl	_CLIENT_IS_ROOT
	cbnz	x0, LBB0_24
LBB0_5:
	mov	w8, #18255
	movk	w8, #224, lsl #16
	lsr	w24, w8, w22
	mov	w8, #47280
	movk	w8, #31, lsl #16
Lloh3:
	adrp	x26, _S_IROTH@GOTPAGE
Lloh4:
	ldr	x26, [x26, _S_IROTH@GOTPAGEOFF]
	lsr	w23, w8, w22
	ldr	w8, [x26]
Lloh5:
	adrp	x25, _S_IWOTH@GOTPAGE
Lloh6:
	ldr	x25, [x25, _S_IWOTH@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w22, w9, w8
	mov	x0, x21
	bl	_CLIENT_IS_ROOT
	cbz	x0, LBB0_10
; %bb.6:
	tbnz	w24, #0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh9:
	adrp	x9, _S_IRGRP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_IRGRP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x26]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w22, w8, w10
LBB0_8:
	tbnz	w23, #0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh15:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	ldr	w10, [x25]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w22, w8, w10
LBB0_10:
	ldr	x1, [x19, #8]
	ldr	w2, [x19, #32]
	mov	x0, x21
	bl	_kcm_is_same_session
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w8, [x26]
	tst	w24, #0x1
	csel	w8, w8, wzr, eq
	orr	w22, w8, w22
	tbnz	w23, #0, LBB0_17
; %bb.12:
	ldr	w8, [x25]
	orr	w22, w8, w22
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.13:
Lloh19:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w24, #0x1
	csel	w8, w8, wzr, eq
	orr	w22, w8, w22
	b	LBB0_16
LBB0_14:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.15:
Lloh22:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w24, #0x1
	csel	w8, w8, wzr, eq
	orr	w22, w8, w22
	tbnz	w23, #0, LBB0_20
LBB0_16:
Lloh25:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	b	LBB0_19
LBB0_17:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.18:
Lloh28:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w24, #0x1
	csel	w8, w8, wzr, eq
LBB0_19:
	orr	w22, w8, w22
LBB0_20:
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.21:
Lloh31:
	adrp	x8, _S_IRGRP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _S_IRGRP@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w24, #0x1
	csel	w8, w8, wzr, eq
	orr	w22, w8, w22
	tbnz	w23, #0, LBB0_23
; %bb.22:
Lloh34:
	adrp	x8, _S_IWGRP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _S_IWGRP@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_23:
	ldr	w8, [x19, #24]
	tst	w8, w22
	b.eq	LBB0_25
LBB0_24:
	mov	x22, #0
	b	LBB0_27
LBB0_25:
Lloh37:
	adrp	x8, _KRB5_FCC_PERM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _KRB5_FCC_PERM@GOTPAGEOFF]
Lloh39:
	ldr	x22, [x8]
	cbz	x22, LBB0_27
; %bb.26:
	ldr	w21, [x21, #16]
	mov	x0, x20
	bl	_kcm_op2string
	mov	x3, x0
	ldr	w4, [x19, #28]
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x21
	bl	_kcm_log
LBB0_27:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_FCC_PERM,8,3              ; @KRB5_FCC_PERM
	.comm	_KCM_FLAGS_OWNER_IS_SYSTEM,4,2  ; @KCM_FLAGS_OWNER_IS_SYSTEM
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_S_IWOTH,4,2                    ; @S_IWOTH
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Process %d is not permitted to call %s on cache %s"

.subsections_via_symbols
