	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_c_get_cred_cache        ## -- Begin function _kadm5_c_get_cred_cache
	.p2align	4, 0x90
__kadm5_c_get_cred_cache:               ## @_kadm5_c_get_cred_cache
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%edi, %ebx
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	testq	%rcx, %rcx
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.1:
	xorl	%r13d, %r13d
	cmpb	$0, (%rcx)
	cmovneq	%rcx, %r13
	testq	%r12, %r12
	jne	LBB0_3
LBB0_2:
	movq	_KADM5_ADMIN_SERVICE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_3:
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_krb5_parse_name
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_32
LBB0_5:
	movq	16(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.6:
	movq	%r14, -64(%rbp)
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_krb5_cc_get_principal
LBB0_7:
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_32
	jmp	LBB0_12
LBB0_8:
	xorl	%r13d, %r13d
	testq	%r12, %r12
	je	LBB0_2
	jmp	LBB0_3
LBB0_9:
	leaq	-64(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_get_cache_principal
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_get_default_username
	testq	%rax, %rax
	je	LBB0_28
## %bb.11:
	leaq	L_.str.1(%rip), %r8
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movq	%rax, %rcx
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	jmp	LBB0_7
LBB0_12:
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rax
	testq	%rdx, %rdx
	jne	LBB0_15
## %bb.13:
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, -48(%rbp)
	movq	%rax, %rdx
LBB0_15:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.16:
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.17:
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movl	%ebx, %edi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_krb5_principal_compare
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	movq	-64(%rbp), %rsi
	movq	-48(%rbp), %rdx
LBB0_20:
	movl	%ebx, %edi
	movq	%r12, %rcx
	callq	_get_kadm_ticket
	testq	%rax, %rax
	je	LBB0_29
## %bb.21:
	movq	$-1, %r15
	testq	%r14, %r14
	jne	LBB0_32
LBB0_22:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.23:
	cmpq	%r14, %rsi
	je	LBB0_25
## %bb.24:
	movl	%ebx, %edi
	callq	_krb5_cc_close
LBB0_25:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rax
	cmpq	%rax, %rsi
	je	LBB0_27
## %bb.26:
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_krb5_free_principal
	movq	-48(%rbp), %rsi
LBB0_27:
	movq	24(%rbp), %rax
	movq	%rax, (%rsp)
	movl	%ebx, %edi
	movq	%r13, %rdx
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
	callq	_get_new_cache
	movq	%rax, %r15
	movq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	_krb5_free_principal
	jmp	LBB0_32
LBB0_28:
	movq	_KADM5_FAILURE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	callq	_krb5_set_error_message
	movq	(%r14), %r15
	jmp	LBB0_32
LBB0_29:
	movq	-64(%rbp), %rax
	movq	24(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_krb5_free_principal
	movq	-48(%rbp), %rsi
	cmpq	%rsi, -56(%rbp)
	je	LBB0_31
## %bb.30:
	movl	%ebx, %edi
	callq	_krb5_free_principal
LBB0_31:
	xorl	%r15d, %r15d
LBB0_32:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KADM5_ADMIN_SERVICE,8,3        ## @KADM5_ADMIN_SERVICE
	.comm	_KADM5_FAILURE,8,3              ## @KADM5_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to find local user name"

L_.str.1:                               ## @.str.1
	.asciz	"admin"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kadm5_c_get_cred_cache        ; -- Begin function _kadm5_c_get_cred_cache
	.p2align	2
__kadm5_c_get_cred_cache:               ; @_kadm5_c_get_cred_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x7
	mov	x25, x6
	mov	x21, x5
	mov	x22, x4
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	cbz	x3, LBB0_2
; %bb.1:
	ldrb	w8, [x3]
	cmp	w8, #0
	csel	x23, xzr, x3, eq
	b	LBB0_3
LBB0_2:
	mov	x23, #0
LBB0_3:
Lloh0:
	adrp	x8, _KADM5_ADMIN_SERVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KADM5_ADMIN_SERVICE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, #0
	csel	x24, x8, x2, eq
	cbz	x1, LBB0_5
; %bb.4:
	add	x2, sp, #8
	mov	x0, x19
	bl	_krb5_parse_name
	mov	x26, x0
	cbnz	x0, LBB0_31
LBB0_5:
	cbz	x25, LBB0_7
; %bb.6:
	str	x25, [sp, #24]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x25
	bl	_krb5_cc_get_principal
	mov	x26, x0
	cbnz	x0, LBB0_31
	b	LBB0_10
LBB0_7:
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x19
	bl	_get_cache_principal
	cbz	x0, LBB0_10
; %bb.8:
	bl	_get_default_username
	cbz	x0, LBB0_27
; %bb.9:
	mov	x3, x0
Lloh3:
	adrp	x4, l_.str.1@PAGE
Lloh4:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, #0
	mov	x5, #0
	bl	_krb5_make_principal
	mov	x26, x0
	cbnz	x0, LBB0_31
LBB0_10:
	ldp	x2, x8, [sp, #8]
	cbnz	x2, LBB0_13
; %bb.11:
	cbz	x8, LBB0_13
; %bb.12:
	str	x8, [sp, #8]
	mov	x2, x8
LBB0_13:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_21
; %bb.14:
	cbz	x2, LBB0_21
; %bb.15:
	cbz	x8, LBB0_18
; %bb.16:
	mov	x0, x19
	mov	x1, x2
	mov	x2, x8
	bl	_krb5_principal_compare
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x1, [sp, #24]
	ldr	x2, [sp, #8]
LBB0_18:
	mov	x0, x19
	mov	x3, x24
	bl	_get_kadm_ticket
	cbz	x0, LBB0_28
; %bb.19:
	cbz	x25, LBB0_21
; %bb.20:
	mov	x26, #-1
	b	LBB0_31
LBB0_21:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_24
; %bb.22:
	cmp	x1, x25
	b.eq	LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_krb5_cc_close
LBB0_24:
	ldp	x1, x8, [sp, #8]
	cmp	x1, x8
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x19
	mov	x1, x8
	bl	_krb5_free_principal
	ldr	x1, [sp, #8]
LBB0_26:
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x24
	mov	x6, x20
	bl	_get_new_cache
	mov	x26, x0
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_krb5_free_principal
	b	LBB0_31
LBB0_27:
Lloh5:
	adrp	x20, _KADM5_FAILURE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _KADM5_FAILURE@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_krb5_set_error_message
	ldr	x26, [x20]
	b	LBB0_31
LBB0_28:
	ldp	x1, x8, [sp, #16]
	str	x8, [x20]
	mov	x0, x19
	bl	_krb5_free_principal
	ldp	x1, x8, [sp, #8]
	cmp	x8, x1
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_30:
	mov	x26, #0
LBB0_31:
	mov	x0, x26
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_KADM5_ADMIN_SERVICE,8,3        ; @KADM5_ADMIN_SERVICE
	.comm	_KADM5_FAILURE,8,3              ; @KADM5_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to find local user name"

l_.str.1:                               ; @.str.1
	.asciz	"admin"

.subsections_via_symbols
