	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function krb5_kt_ret_principal
_krb5_kt_ret_principal:                 ## @krb5_kt_ret_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$1, %esi
	callq	_ALLOC
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_krb5_ret_int16
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_2:
	movq	_KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_krb5_storage_is_flags
	movq	-40(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	decq	%rcx
	movq	%rcx, -40(%rbp)
LBB0_4:
	testq	%rcx, %rcx
	js	LBB0_5
## %bb.7:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_krb5_kt_ret_string
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	movq	_KRB5_KT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	(%r14), %ecx
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	%r15d, %edi
	callq	_krb5_free_principal
	movl	%ebx, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_krb5_kt_ret_principal.cold.1
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function krb5_kt_ret_principal.cold.1
_krb5_kt_ret_principal.cold.1:          ## @krb5_kt_ret_principal.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	pushq	$4
	popq	%rsi
	callq	_calloc
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"Failed decoding length of keytab principal in keytab file %s"

	.comm	_KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS,4,2 ## @KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS
	.comm	_KRB5_KT_END,4,2                ## @KRB5_KT_END
L_.str.3:                               ## @.str.3
	.asciz	"Keytab principal contains invalid length in keytab %s"

L_.str.4:                               ## @.str.4
	.asciz	"Can't read realm from keytab: %s"

	.comm	_KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE,4,2 ## @KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE
	.comm	_KRB5_NT_UNKNOWN,4,2            ## @KRB5_NT_UNKNOWN
	.no_dead_strip	_krb5_kt_ret_principal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function krb5_kt_ret_principal
_krb5_kt_ret_principal:                 ; @krb5_kt_ret_principal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #1
	bl	_ALLOC
	add	x1, sp, #8
	mov	x0, x22
	bl	_krb5_ret_int16
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x8, _KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_krb5_storage_is_flags
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:
	sub	x8, x8, #1
	str	x8, [sp, #8]
LBB0_4:
	tbnz	x8, #63, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	bl	_krb5_kt_ret_string
	cbz	w0, LBB0_9
; %bb.6:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _KRB5_KT_END@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KRB5_KT_END@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	ldr	w8, [x20]
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_krb5_set_error_message
	mov	x0, x19
	bl	_krb5_free_principal
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	add	x0, sp, #8
	bl	_krb5_kt_ret_principal.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function krb5_kt_ret_principal.cold.1
_krb5_kt_ret_principal.cold.1:          ; @krb5_kt_ret_principal.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	mov	w1, #4
	bl	_calloc
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"Failed decoding length of keytab principal in keytab file %s"

	.comm	_KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS,4,2 ; @KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS
	.comm	_KRB5_KT_END,4,2                ; @KRB5_KT_END
l_.str.3:                               ; @.str.3
	.asciz	"Keytab principal contains invalid length in keytab %s"

l_.str.4:                               ; @.str.4
	.asciz	"Can't read realm from keytab: %s"

	.comm	_KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE,4,2 ; @KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE
	.comm	_KRB5_NT_UNKNOWN,4,2            ; @KRB5_NT_UNKNOWN
	.no_dead_strip	_krb5_kt_ret_principal
.subsections_via_symbols
