	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_homedir_access           ## -- Begin function _krb5_homedir_access
	.p2align	4, 0x90
__krb5_homedir_access:                  ## @_krb5_homedir_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_KRB5_CTX_F_HOMEDIR_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
LBB0_3:
	movq	_homedir_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	_allow_homedir@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_HEIMDAL_MUTEX_unlock
	jmp	LBB0_4
LBB0_2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_CTX_F_HOMEDIR_ACCESS,4,2  ## @KRB5_CTX_F_HOMEDIR_ACCESS
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_homedir_mutex,4,2              ## @homedir_mutex
	.comm	_allow_homedir,4,2              ## @allow_homedir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_homedir_access           ; -- Begin function _krb5_homedir_access
	.p2align	2
__krb5_homedir_access:                  ; @_krb5_homedir_access
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _KRB5_CTX_F_HOMEDIR_ACCESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KRB5_CTX_F_HOMEDIR_ACCESS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
Lloh3:
	adrp	x20, _homedir_mutex@GOTPAGE
Lloh4:
	ldr	x20, [x20, _homedir_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_HEIMDAL_MUTEX_lock
Lloh5:
	adrp	x8, _allow_homedir@GOTPAGE
Lloh6:
	ldr	x8, [x8, _allow_homedir@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	mov	x0, x20
	bl	_HEIMDAL_MUTEX_unlock
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_CTX_F_HOMEDIR_ACCESS,4,2  ; @KRB5_CTX_F_HOMEDIR_ACCESS
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_homedir_mutex,4,2              ; @homedir_mutex
	.comm	_allow_homedir,4,2              ; @allow_homedir
.subsections_via_symbols
