	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcm_op_retrieve
_kcm_op_retrieve:                       ## @kcm_op_retrieve
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r12d
	leaq	-56(%rbp), %rsi
	movq	%rcx, %rdi
	callq	_krb5_ret_stringz
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_20
## %bb.1:
	movq	-56(%rbp), %rcx
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_KCM_LOG_REQUEST_NAME
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_krb5_ret_uint32
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_krb5_ret_creds_tag
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_20:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_disallow_getting_krbtgt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	-64(%rbp), %rax
	cmpl	$2, (%rax)
	jne	LBB0_8
## %bb.6:
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	-56(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_kcm_ccache_resolve_client
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_free
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	jmp	LBB0_19
LBB0_10:
	movq	-72(%rbp), %rsi
	movl	-80(%rbp), %edx
	leaq	-64(%rbp), %rcx
	leaq	-88(%rbp), %r8
	movl	%r14d, %edi
	callq	_kcm_ccache_retrieve_cred
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	_KRB5_GC_CACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, -80(%rbp)
	jne	LBB0_17
## %bb.13:
	movq	%r15, %r12
	movq	-64(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_is_config_principal
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	-72(%rbp), %rdi
	callq	_HEIMDAL_MUTEX_lock
	movq	-72(%rbp), %rsi
	leaq	-100(%rbp), %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_kcm_internal_ccache
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rcx
	leaq	-88(%rbp), %r8
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_krb5_get_credentials
	movq	%rax, %rbx
	movq	-72(%rbp), %rdi
	callq	_HEIMDAL_MUTEX_unlock
	testq	%rbx, %rbx
	jne	LBB0_17
## %bb.15:
	movl	$1, %r14d
	jmp	LBB0_16
LBB0_11:
	xorl	%r14d, %r14d
	movq	%r15, %r12
LBB0_16:
	movq	-88(%rbp), %rsi
	movq	%r12, %rdi
	callq	_krb5_store_creds
	movq	%rax, %rbx
LBB0_17:
	movq	-56(%rbp), %rdi
	callq	_free
	leaq	-64(%rbp), %rsi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_krb5_free_cred_contents
	movq	-72(%rbp), %rsi
	movl	%r15d, %edi
	callq	_kcm_release_ccache
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.18:
	movq	-88(%rbp), %rsi
	movl	%r15d, %edi
LBB0_19:
	callq	_krb5_free_cred_contents
	jmp	LBB0_20
LBB0_7:
	movq	-56(%rbp), %rdi
	callq	_free
	leaq	-64(%rbp), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_krb5_free_cred_contents
	movq	_KRB5_FCC_PERM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_disallow_getting_krbtgt,8,3    ## @disallow_getting_krbtgt
	.comm	_KRB5_TGS_NAME,4,2              ## @KRB5_TGS_NAME
	.comm	_KRB5_FCC_PERM,8,3              ## @KRB5_FCC_PERM
	.comm	_KRB5_GC_CACHED,4,2             ## @KRB5_GC_CACHED
	.no_dead_strip	_kcm_op_retrieve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kcm_op_retrieve
_kcm_op_retrieve:                       ; @kcm_op_retrieve
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	x1, sp, #16
	mov	x0, x3
	bl	_krb5_ret_stringz
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.1:
	ldr	x3, [sp, #16]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_KCM_LOG_REQUEST_NAME
	add	x1, sp, #44
	mov	x0, x24
	bl	_krb5_ret_uint32
	cbnz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #32
	mov	x0, x24
	bl	_krb5_ret_creds_tag
	cbz	x0, LBB0_5
LBB0_3:
	mov	x21, x0
	ldr	x0, [sp, #16]
	bl	_free
LBB0_4:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
LBB0_5:
Lloh0:
	adrp	x8, _disallow_getting_krbtgt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _disallow_getting_krbtgt@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [sp, #32]
	ldr	w9, [x8]
	cmp	w9, #2
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_20
LBB0_8:
	ldr	x3, [sp, #16]
	add	x4, sp, #24
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_kcm_ccache_resolve_client
	cbz	x0, LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	x0, [sp, #16]
	bl	_free
	add	x1, sp, #32
	b	LBB0_19
LBB0_10:
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #44]
	add	x3, sp, #32
	add	x4, sp, #8
	mov	x0, x19
	bl	_kcm_ccache_retrieve_cred
	cbz	x0, LBB0_15
; %bb.11:
	mov	x21, x0
	ldr	w8, [sp, #44]
Lloh6:
	adrp	x9, _KRB5_GC_CACHED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KRB5_GC_CACHED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.12:
	ldr	x1, [sp, #32]
	mov	x0, x19
	bl	_krb5_is_config_principal
	cbnz	w0, LBB0_14
; %bb.13:
	ldr	x0, [sp, #24]
	bl	_HEIMDAL_MUTEX_lock
	ldr	x1, [sp, #24]
	add	x2, sp, #4
	mov	x0, x19
	bl	_kcm_internal_ccache
	add	x2, sp, #4
	add	x3, sp, #32
	add	x4, sp, #8
	mov	x0, x19
	mov	w1, #0
	bl	_krb5_get_credentials
	mov	x21, x0
	ldr	x0, [sp, #24]
	bl	_HEIMDAL_MUTEX_unlock
	cbz	x21, LBB0_21
LBB0_14:
	mov	w22, #0
	b	LBB0_17
LBB0_15:
	mov	w22, #0
LBB0_16:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_krb5_store_creds
	mov	x21, x0
LBB0_17:
	ldr	x0, [sp, #16]
	bl	_free
	add	x1, sp, #32
	mov	x0, x19
	bl	_krb5_free_cred_contents
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_kcm_release_ccache
	cbz	w22, LBB0_4
; %bb.18:
	ldr	x1, [sp, #8]
LBB0_19:
	mov	x0, x19
	bl	_krb5_free_cred_contents
	b	LBB0_4
LBB0_20:
	ldr	x0, [sp, #16]
	bl	_free
	add	x1, sp, #32
	mov	x0, x19
	bl	_krb5_free_cred_contents
Lloh9:
	adrp	x8, _KRB5_FCC_PERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KRB5_FCC_PERM@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	b	LBB0_4
LBB0_21:
	mov	w22, #1
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_disallow_getting_krbtgt,8,3    ; @disallow_getting_krbtgt
	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
	.comm	_KRB5_FCC_PERM,8,3              ; @KRB5_FCC_PERM
	.comm	_KRB5_GC_CACHED,4,2             ; @KRB5_GC_CACHED
	.no_dead_strip	_kcm_op_retrieve
.subsections_via_symbols
