	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function krb5_kt_ret_string
_krb5_kt_ret_string:                    ## @krb5_kt_ret_string
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_krb5_ret_int16
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-28(%rbp), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_krb5_storage_read
	movl	%eax, %ecx
	movq	(%r15), %rax
	movslq	-28(%rbp), %rdx
	movb	$0, (%rax,%rdx)
	xorl	%eax, %eax
	cmpl	-28(%rbp), %ecx
	je	LBB0_8
## %bb.4:
	testl	%ecx, %ecx
	jns	LBB0_5
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_krb5_set_error_message
	movl	(%r15), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_KRB5_KT_END@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_errno,4,2                      ## @errno
	.comm	_KRB5_KT_END,4,2                ## @KRB5_KT_END
	.no_dead_strip	_krb5_kt_ret_string
.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_string
_krb5_kt_ret_string:                    ; @krb5_kt_ret_string
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #12
	mov	x0, x21
	bl	_krb5_ret_int16
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	ldr	w8, [sp, #12]
	add	w0, w8, #1
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x21
	bl	_krb5_storage_read
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20]
	ldrsw	x10, [sp, #12]
	strb	wzr, [x9, x10]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.4:
Lloh0:
	adrp	x9, _errno@GOTPAGE
Lloh1:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x10, _KRB5_KT_END@GOTPAGE
Lloh3:
	ldr	x10, [x10, _KRB5_KT_END@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, lt
	ldr	w0, [x8]
	b	LBB0_1
LBB0_5:
Lloh4:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	ldr	w0, [x21]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_errno,4,2                      ; @errno
	.comm	_KRB5_KT_END,4,2                ; @KRB5_KT_END
	.no_dead_strip	_krb5_kt_ret_string
.subsections_via_symbols
