	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_chown                      ## -- Begin function kcm_chown
	.p2align	4, 0x90
_kcm_chown:                             ## @kcm_chown
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdx, %rdi
	callq	_KCM_ASSERT_VALID
	movq	_KCM_FLAGS_OWNER_IS_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_1
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	8(%r12), %rax
	jne	LBB0_1
## %bb.4:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	%r15, 8(%rbx)
	movq	%r14, 16(%rbx)
	movq	%r12, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_KRB5_FCC_PERM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KCM_FLAGS_OWNER_IS_SYSTEM,4,2  ## @KCM_FLAGS_OWNER_IS_SYSTEM
	.comm	_KRB5_FCC_PERM,4,2              ## @KRB5_FCC_PERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kcm_chown                      ; -- Begin function kcm_chown
	.p2align	2
_kcm_chown:                             ; @kcm_chown
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x0, x2
	bl	_KCM_ASSERT_VALID
	ldr	w8, [x20]
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.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x22, x20, #24
	mov	x0, x22
	bl	_HEIMDAL_MUTEX_lock
	stp	x21, x19, [x20, #8]
	mov	x0, x22
	bl	_HEIMDAL_MUTEX_unlock
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _KRB5_FCC_PERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_FCC_PERM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KCM_FLAGS_OWNER_IS_SYSTEM,4,2  ; @KCM_FLAGS_OWNER_IS_SYSTEM
	.comm	_KRB5_FCC_PERM,4,2              ; @KRB5_FCC_PERM
.subsections_via_symbols
