	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_tgt
_check_for_tgt:                         ## @check_for_tgt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r15d
	movl	%edi, %r13d
	leaq	-56(%rbp), %rdi
	callq	_krb5_cc_clear_mcred
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_krb5_principal_get_realm
	leaq	-48(%rbp), %rsi
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r13d, %edi
	movl	%eax, %edx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movl	%r13d, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_2:
	movl	%r12d, -44(%rbp)
	leaq	-56(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movl	%r13d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_krb5_cc_retrieve_cred
	movq	%rax, %r15
	movl	-48(%rbp), %esi
	movl	%r13d, %edi
	callq	_krb5_free_principal
	testq	%r15, %r15
	je	LBB0_5
## %bb.3:
	movq	_KRB5_CC_END@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	(%rax), %r15
	je	LBB0_8
## %bb.4:
	leaq	L_.str.1(%rip), %rcx
	movl	%r13d, %edi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_krb5_err
LBB0_5:
	xorl	%edi, %edi
	callq	_time
	movq	-72(%rbp), %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	setg	%al
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%rcx, (%r14)
LBB0_7:
	movb	%al, %bl
	leaq	-72(%rbp), %rsi
	movl	%r13d, %edi
	callq	_krb5_free_cred_contents
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_TGS_NAME,4,2              ## @KRB5_TGS_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_make_principal"

	.comm	_KRB5_CC_END,8,3                ## @KRB5_CC_END
L_.str.1:                               ## @.str.1
	.asciz	"krb5_cc_retrieve_cred"

	.no_dead_strip	_check_for_tgt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_tgt
_check_for_tgt:                         ; @check_for_tgt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x23, sp, #16
	add	x0, sp, #16
	bl	_krb5_cc_clear_mcred
	mov	x0, x19
	mov	x1, x22
	bl	_krb5_principal_get_realm
	mov	x2, x0
	add	x1, x23, #8
Lloh0:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x2
	mov	x5, #0
	bl	_krb5_make_principal
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_2:
	str	w22, [sp, #28]
	add	x3, sp, #16
	mov	x4, sp
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_krb5_cc_retrieve_cred
	mov	x21, x0
	ldr	w1, [sp, #24]
	mov	x0, x19
	bl	_krb5_free_principal
	cbz	x21, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _KRB5_CC_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KRB5_CC_END@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w21, #1
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_krb5_err
LBB0_6:
	mov	x0, #0
	bl	_time
	ldr	x8, [sp]
	cmp	x0, x8
	cset	w21, gt
	cbz	x20, LBB0_8
; %bb.7:
	str	x8, [x20]
LBB0_8:
	mov	x1, sp
	mov	x0, x19
	bl	_krb5_free_cred_contents
LBB0_9:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_make_principal"

	.comm	_KRB5_CC_END,8,3                ; @KRB5_CC_END
l_.str.1:                               ; @.str.1
	.asciz	"krb5_cc_retrieve_cred"

	.no_dead_strip	_check_for_tgt
.subsections_via_symbols
