	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_get_krbtgt               ## -- Begin function _krb5_get_krbtgt
	.p2align	4, 0x90
__krb5_get_krbtgt:                      ## @_krb5_get_krbtgt
	.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
	pushq	%rax
	.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, %r13d
	movl	%esi, %r15d
	movl	%edi, %r12d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-44(%rbp), %rdx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_krb5_cc_get_principal
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	movl	%r13d, %edx
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movl	-44(%rbp), %esi
	jmp	LBB0_4
LBB0_3:
	movq	_KRB5_GC_CACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movl	%r12d, %edi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_krb5_get_credentials
	movq	%rax, %rbx
	movl	-44(%rbp), %esi
	movl	%r12d, %edi
	callq	_krb5_free_principal
	movl	-48(%rbp), %esi
LBB0_4:
	movl	%r12d, %edi
	callq	_krb5_free_principal
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %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
	.comm	_KRB5_GC_CACHED,4,2             ## @KRB5_GC_CACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_get_krbtgt               ; -- Begin function _krb5_get_krbtgt
	.p2align	2
__krb5_get_krbtgt:                      ; @_krb5_get_krbtgt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	orr	x2, x22, #0x4
	mov	x0, x19
	mov	x1, x21
	bl	_krb5_cc_get_principal
	mov	x22, x0
	cbnz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x23
	mov	x4, x23
	mov	x5, #0
	bl	_krb5_make_principal
	cbz	x0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	w1, [sp, #12]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _KRB5_GC_CACHED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_GC_CACHED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	mov	x4, x20
	bl	_krb5_get_credentials
	mov	x22, x0
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_krb5_free_principal
	ldr	w1, [sp, #8]
LBB0_4:
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
	.comm	_KRB5_GC_CACHED,4,2             ; @KRB5_GC_CACHED
.subsections_via_symbols
