	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cache_principal
_get_cache_principal:                   ## @get_cache_principal
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r15d
	callq	_krb5_cc_default
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	$0, (%r12)
	jmp	LBB0_17
LBB0_2:
	movq	(%r12), %rsi
	leaq	-40(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_cc_get_principal
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rbx
	movq	(%r12), %rsi
	movl	%r15d, %edi
	callq	_krb5_cc_close
	movq	$0, (%r12)
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rbx
	movq	(%r12), %rsi
	movl	%r15d, %edi
	callq	_krb5_cc_close
	movq	$0, (%r12)
	movq	-40(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_free_principal
	jmp	LBB0_17
LBB0_6:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	-40(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	_KRB5_GC_CACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rcx
	leaq	-56(%rbp), %r9
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%rbx, %r8
	callq	_krb5_get_credentials_with_flags
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_free_principal
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_10:
	movq	(%r12), %rsi
	movl	%r15d, %edi
	callq	_krb5_cc_close
	movq	$0, (%r12)
	movq	-40(%rbp), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_krb5_principal_get_comp_string
	movq	%rax, %rbx
	movq	-40(%rbp), %rsi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_krb5_principal_get_comp_string
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	leaq	L_.str.1(%rip), %r8
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	movq	%rax, %rbx
	movq	-40(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_free_principal
	testq	%rbx, %rbx
	jne	LBB0_17
## %bb.13:
	movq	-48(%rbp), %rax
	jmp	LBB0_15
LBB0_7:
	movq	-56(%rbp), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	movl	%r15d, %edi
	callq	_krb5_free_creds
	jmp	LBB0_16
LBB0_14:
	movq	-40(%rbp), %rax
LBB0_15:
	movq	%rax, (%r14)
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r15d, %edi
	callq	_krb5_free_creds
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kadmin"

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

	.comm	_KRB5_GC_CACHED,4,2             ## @KRB5_GC_CACHED
	.no_dead_strip	_get_cache_principal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cache_principal
_get_cache_principal:                   ; @get_cache_principal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_krb5_cc_default
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	str	xzr, [x21]
	b	LBB0_6
LBB0_2:
	ldr	x1, [x21]
	add	x2, sp, #40
	mov	x0, x19
	bl	_krb5_cc_get_principal
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	ldr	x1, [x21]
	mov	x0, x19
	bl	_krb5_cc_close
	str	xzr, [x21]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #32
	mov	x0, x19
	mov	x2, #0
	mov	x5, #0
	bl	_krb5_make_principal
	cbz	x0, LBB0_7
; %bb.5:
	mov	x22, x0
	ldr	x1, [x21]
	mov	x0, x19
	bl	_krb5_cc_close
	str	xzr, [x21]
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldp	x9, x8, [sp, #32]
	stp	x9, x8, [sp, #16]
Lloh4:
	adrp	x8, _KRB5_GC_CACHED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KRB5_GC_CACHED@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	x3, [x21]
	add	x4, sp, #8
	mov	x5, sp
	mov	x0, x19
	mov	x2, #0
	bl	_krb5_get_credentials_with_flags
	mov	x22, x0
	ldr	x1, [sp, #32]
	mov	x0, x19
	bl	_krb5_free_principal
	cbz	x22, LBB0_12
LBB0_8:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_krb5_cc_close
	str	xzr, [x21]
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	w2, #0
	bl	_krb5_principal_get_comp_string
	mov	x21, x0
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	w2, #1
	bl	_krb5_principal_get_comp_string
	cbz	x0, LBB0_10
; %bb.9:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_14
LBB0_10:
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x1, sp, #32
	mov	x0, x19
	mov	x2, #0
	mov	x3, x21
	mov	x5, #0
	bl	_krb5_make_principal
	mov	x22, x0
	ldr	x1, [sp, #40]
	mov	x0, x19
	bl	_krb5_free_principal
	cbnz	x22, LBB0_6
; %bb.11:
	ldr	x8, [sp, #32]
	b	LBB0_15
LBB0_12:
	ldr	x1, [sp]
	ldr	x8, [x1]
	cbz	x8, LBB0_16
; %bb.13:
	ldr	x8, [sp, #40]
	str	x8, [x20]
	mov	x0, x19
	bl	_krb5_free_creds
	mov	x22, #0
	b	LBB0_6
LBB0_14:
	mov	x22, #0
	ldr	x8, [sp, #40]
LBB0_15:
	str	x8, [x20]
	b	LBB0_6
LBB0_16:
	mov	x0, x19
	bl	_krb5_free_creds
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kadmin"

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

	.comm	_KRB5_GC_CACHED,4,2             ; @KRB5_GC_CACHED
	.no_dead_strip	_get_cache_principal
.subsections_via_symbols
