	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function import_cred
_import_cred:                           ## @import_cred
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rbx
	movq	(%rdx), %rax
	movq	_GSS_C_NO_CREDENTIAL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_2
## %bb.3:
	movl	%esi, %r15d
	movl	(%rcx), %esi
	movl	4(%rcx), %edi
	callq	_krb5_storage_from_mem
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_krb5_ret_string
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%rax, (%r12)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_18:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:
	movl	%r15d, %edi
	callq	_krb5_cc_close
LBB0_20:
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	movl	%r15d, %edi
	callq	_krb5_free_principal
LBB0_22:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.23:
	movl	%r15d, %edi
	callq	_krb5_kt_close
LBB0_24:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:
	callq	_free
LBB0_26:
	movq	%r14, %rdi
	callq	_krb5_storage_free
	jmp	LBB0_27
LBB0_2:
	movq	$0, (%r12)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_27:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-40(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_9
## %bb.7:
	leaq	-48(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_cc_resolve
	testq	%rax, %rax
	jne	LBB0_5
## %bb.8:
	movq	-40(%rbp), %rsi
LBB0_9:
	movq	%rsi, %rdi
	callq	_free
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_krb5_ret_string
	testq	%rax, %rax
	jne	LBB0_5
## %bb.10:
	movq	-40(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_13
## %bb.11:
	leaq	-64(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_parse_name
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	-40(%rbp), %rsi
LBB0_13:
	movq	%rsi, %rdi
	callq	_free
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_krb5_ret_string
	testq	%rax, %rax
	jne	LBB0_5
## %bb.14:
	movq	-40(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_17
## %bb.15:
	leaq	-56(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_kt_resolve
	testq	%rax, %rax
	jne	LBB0_5
## %bb.16:
	movq	-40(%rbp), %rsi
LBB0_17:
	movq	%rsi, %rdi
	callq	_free
	movq	$0, -40(%rbp)
	movq	-48(%rbp), %rsi
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %r8
	callq	__gsskrb5_krb5_import_cred
	movq	%rax, %rbx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_C_NO_CREDENTIAL,8,3        ## @GSS_C_NO_CREDENTIAL
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.no_dead_strip	_import_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function import_cred
_import_cred:                           ; @import_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
	cbz	x2, LBB0_13
; %bb.1:
	mov	x22, x2
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _GSS_C_NO_CREDENTIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GSS_C_NO_CREDENTIAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.2:
	mov	x19, x1
	ldp	w1, w0, [x3]
	bl	_krb5_storage_from_mem
	cbz	x0, LBB0_13
; %bb.3:
	mov	x20, x0
	mov	x1, sp
	bl	_krb5_ret_string
	cbz	x0, LBB0_15
LBB0_4:
	str	x0, [x21]
Lloh3:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_krb5_cc_close
LBB0_6:
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_8:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_krb5_kt_close
LBB0_10:
	ldr	x0, [sp]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_free
LBB0_12:
	mov	x0, x20
	bl	_krb5_storage_free
	b	LBB0_14
LBB0_13:
	str	xzr, [x21]
Lloh6:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
LBB0_14:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	x1, [sp]
	ldrb	w8, [x1]
	cbz	w8, LBB0_18
; %bb.16:
	add	x2, sp, #8
	mov	x0, x19
	bl	_krb5_cc_resolve
	cbnz	x0, LBB0_4
; %bb.17:
	ldr	x1, [sp]
LBB0_18:
	mov	x0, x1
	bl	_free
	str	xzr, [sp]
	mov	x1, sp
	mov	x0, x20
	bl	_krb5_ret_string
	cbnz	x0, LBB0_4
; %bb.19:
	ldr	x1, [sp]
	ldrb	w8, [x1]
	cbz	w8, LBB0_22
; %bb.20:
	add	x2, sp, #24
	mov	x0, x19
	bl	_krb5_parse_name
	cbnz	x0, LBB0_4
; %bb.21:
	ldr	x1, [sp]
LBB0_22:
	mov	x0, x1
	bl	_free
	str	xzr, [sp]
	mov	x1, sp
	mov	x0, x20
	bl	_krb5_ret_string
	cbnz	x0, LBB0_4
; %bb.23:
	ldr	x1, [sp]
	ldrb	w8, [x1]
	cbz	w8, LBB0_26
; %bb.24:
	add	x2, sp, #16
	mov	x0, x19
	bl	_krb5_kt_resolve
	cbnz	x0, LBB0_4
; %bb.25:
	ldr	x1, [sp]
LBB0_26:
	mov	x0, x1
	bl	_free
	str	xzr, [sp]
	ldp	x1, x3, [sp, #8]
	ldr	x2, [sp, #24]
	mov	x0, x21
	mov	x4, x22
	bl	__gsskrb5_krb5_import_cred
	mov	x21, x0
	ldr	x1, [sp, #8]
	cbnz	x1, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_C_NO_CREDENTIAL,8,3        ; @GSS_C_NO_CREDENTIAL
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.no_dead_strip	_import_cred
.subsections_via_symbols
