	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_cred_cache                ## -- Begin function copy_cred_cache
	.p2align	4, 0x90
_copy_cred_cache:                       ## @copy_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, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	36(%r12), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_kcc_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-88(%rbp), %rdx
	callq	_krb5_parse_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	movl	36(%r12), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_3:
	movl	32(%r12), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.4:
	movq	_kcc_context@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rdx
	callq	_krb5_string_to_enctype
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	movl	32(%r12), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_6:
	movq	_KRB5_TC_MATCH_KEYTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -64(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -68(%rbp)
LBB0_7:
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	movq	_kcc_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rdx
	callq	_parse_ticket_flags
	movq	_KRB5_TC_MATCH_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -64(%rbp)
LBB0_9:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	callq	_parse_time
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	movq	16(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_12:
	xorl	%edi, %edi
	callq	_time
	addq	%rbx, %rax
	movq	%rax, -80(%rbp)
	movq	_KRB5_TC_MATCH_TIMES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -64(%rbp)
LBB0_13:
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movq	_kcc_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_krb5_set_fcache_version
LBB0_15:
	cmpl	$1, %r15d
	jne	LBB0_17
## %bb.16:
	movq	_kcc_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_krb5_cc_default_name
	movq	%rax, %rbx
	jmp	LBB0_18
LBB0_17:
	movq	(%r14), %rbx
	addq	$8, %r14
LBB0_18:
	movq	(%r14), %r14
	movq	_kcc_context@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_krb5_cc_resolve
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_20:
	cmpq	$0, (%r12)
	je	LBB0_26
## %bb.21:
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %rdx
	callq	_krb5_cc_get_principal
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_23:
	movl	(%r13), %ebx
	movl	-44(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_principal_get_realm
	movl	%eax, %r15d
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	callq	_krb5_principal_get_realm
	leaq	-88(%rbp), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_25:
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	callq	_krb5_free_principal
LBB0_26:
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rsi
	callq	_krb5_cc_resolve
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_28:
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	_matchfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-88(%rbp), %r8
	leaq	-52(%rbp), %r9
	callq	_krb5_cc_copy_match_f
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rcx
	movl	$1, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_krb5_err
LBB0_30:
	movl	(%r13), %edi
	movl	-48(%rbp), %esi
	callq	_krb5_cc_close
	cmpl	$0, -52(%rbp)
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	je	LBB0_31
## %bb.32:
	callq	_krb5_cc_close
	jmp	LBB0_33
LBB0_31:
	callq	_krb5_cc_destroy
LBB0_33:
	xorl	%eax, %eax
	cmpl	$0, -52(%rbp)
	sete	%al
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kcc_context,4,2                ## @kcc_context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_KRB5_TC_MATCH_KEYTYPE,4,2      ## @KRB5_TC_MATCH_KEYTYPE
	.comm	_KRB5_TC_MATCH_FLAGS,4,2        ## @KRB5_TC_MATCH_FLAGS
L_.str.1:                               ## @.str.1
	.asciz	"s"

L_.str.2:                               ## @.str.2
	.asciz	"unknown time \"%s\""

	.comm	_KRB5_TC_MATCH_TIMES,4,2        ## @KRB5_TC_MATCH_TIMES
L_.str.3:                               ## @.str.3
	.asciz	"getting default principal"

	.comm	_KRB5_TGS_NAME,4,2              ## @KRB5_TGS_NAME
L_.str.4:                               ## @.str.4
	.asciz	"constructing krbtgt principal"

	.comm	_matchfunc,4,2                  ## @matchfunc
L_.str.5:                               ## @.str.5
	.asciz	"copying cred cache"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_cred_cache                ; -- Begin function copy_cred_cache
	.p2align	2
_copy_cred_cache:                       ; @copy_cred_cache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w1, [x19, #36]
Lloh0:
	adrp	x23, _kcc_context@GOTPAGE
Lloh1:
	ldr	x23, [x23, _kcc_context@GOTPAGEOFF]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w0, [x23]
	add	x2, sp, #16
	bl	_krb5_parse_name
	cbz	x0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w0, [x23]
	ldr	w8, [x19, #36]
	str	x8, [sp]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_3:
	ldr	w1, [x19, #32]
	cbz	w1, LBB0_7
; %bb.4:
	ldr	w0, [x23]
	sub	x2, x29, #52
	bl	_krb5_string_to_enctype
	cbz	x0, LBB0_6
; %bb.5:
	mov	x2, x0
	ldr	w0, [x23]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_6:
Lloh6:
	adrp	x8, _KRB5_TC_MATCH_KEYTYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KRB5_TC_MATCH_KEYTYPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]
	orr	w8, w9, w8
	ldur	w9, [x29, #-52]
	stp	w9, w8, [sp, #36]
LBB0_7:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	w0, [x23]
	add	x8, sp, #16
	add	x2, x8, #16
	bl	_parse_ticket_flags
Lloh9:
	adrp	x8, _KRB5_TC_MATCH_FLAGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KRB5_TC_MATCH_FLAGS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]
	orr	w8, w9, w8
	str	w8, [sp, #40]
LBB0_9:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.10:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_parse_time
	mov	x22, x0
	tbz	x0, #63, LBB0_12
; %bb.11:
	ldr	x2, [x19, #16]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	mov	x0, #0
	bl	_time
	add	x8, x0, x22
	str	x8, [sp, #24]
Lloh16:
	adrp	x8, _KRB5_TC_MATCH_TIMES@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KRB5_TC_MATCH_TIMES@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]
	orr	w8, w9, w8
	str	w8, [sp, #40]
LBB0_13:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_15
; %bb.14:
	ldr	w0, [x23]
	bl	_krb5_set_fcache_version
LBB0_15:
	cmp	w21, #1
	b.ne	LBB0_17
; %bb.16:
	ldr	w0, [x23]
	bl	_krb5_cc_default_name
	mov	x21, x0
	b	LBB0_18
LBB0_17:
	ldr	x21, [x20], #8
LBB0_18:
	ldr	x20, [x20]
	ldr	w0, [x23]
	sub	x2, x29, #52
	mov	x1, x21
	bl	_krb5_cc_resolve
	cbz	x0, LBB0_20
; %bb.19:
	mov	x2, x0
	ldr	w0, [x23]
	str	x21, [sp]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_20:
	ldr	x8, [x19]
	cbz	x8, LBB0_26
; %bb.21:
	ldr	w0, [x23]
	ldur	w1, [x29, #-52]
	add	x2, sp, #56
	bl	_krb5_cc_get_principal
	cbz	x0, LBB0_23
; %bb.22:
	mov	x2, x0
	ldr	w0, [x23]
Lloh21:
	adrp	x3, l_.str.3@PAGE
Lloh22:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_23:
	ldr	w19, [x23]
	ldr	w1, [sp, #56]
	mov	x0, x19
	bl	_krb5_principal_get_realm
	mov	x21, x0
Lloh23:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	ldr	w0, [x23]
	ldr	w1, [sp, #56]
	bl	_krb5_principal_get_realm
	mov	x4, x0
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	mov	x5, #0
	bl	_krb5_make_principal
	cbz	x0, LBB0_25
; %bb.24:
	mov	x2, x0
	ldr	w0, [x23]
Lloh26:
	adrp	x3, l_.str.4@PAGE
Lloh27:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_25:
	ldr	w0, [x23]
	ldr	w1, [sp, #56]
	bl	_krb5_free_principal
LBB0_26:
	ldr	w0, [x23]
	add	x2, sp, #56
	mov	x1, x20
	bl	_krb5_cc_resolve
	cbz	x0, LBB0_28
; %bb.27:
	mov	x2, x0
	ldr	w0, [x23]
	str	x20, [sp]
Lloh28:
	adrp	x3, l_.str@PAGE
Lloh29:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_28:
	ldr	w0, [x23]
	ldur	w1, [x29, #-52]
	ldr	w2, [sp, #56]
Lloh30:
	adrp	x8, _matchfunc@GOTPAGE
Lloh31:
	ldr	x8, [x8, _matchfunc@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	add	x4, sp, #16
	add	x5, sp, #52
	bl	_krb5_cc_copy_match_f
	cbz	x0, LBB0_30
; %bb.29:
	mov	x2, x0
	ldr	w0, [x23]
Lloh33:
	adrp	x3, l_.str.5@PAGE
Lloh34:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w1, #1
	bl	_krb5_err
LBB0_30:
	ldr	w0, [x23]
	ldur	w1, [x29, #-52]
	bl	_krb5_cc_close
	ldp	w8, w1, [sp, #52]
	ldr	w0, [x23]
	cbz	w8, LBB0_32
; %bb.31:
	bl	_krb5_cc_close
	b	LBB0_33
LBB0_32:
	bl	_krb5_cc_destroy
LBB0_33:
	ldr	w8, [sp, #52]
	cmp	w8, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_kcc_context,4,2                ; @kcc_context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_KRB5_TC_MATCH_KEYTYPE,4,2      ; @KRB5_TC_MATCH_KEYTYPE
	.comm	_KRB5_TC_MATCH_FLAGS,4,2        ; @KRB5_TC_MATCH_FLAGS
l_.str.1:                               ; @.str.1
	.asciz	"s"

l_.str.2:                               ; @.str.2
	.asciz	"unknown time \"%s\""

	.comm	_KRB5_TC_MATCH_TIMES,4,2        ; @KRB5_TC_MATCH_TIMES
l_.str.3:                               ; @.str.3
	.asciz	"getting default principal"

	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
l_.str.4:                               ; @.str.4
	.asciz	"constructing krbtgt principal"

	.comm	_matchfunc,4,2                  ; @matchfunc
l_.str.5:                               ; @.str.5
	.asciz	"copying cred cache"

.subsections_via_symbols
