	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_krb5_copy_ccache           ## -- Begin function gss_krb5_copy_ccache
	.p2align	4, 0x90
_gss_krb5_copy_ccache:                  ## @gss_krb5_copy_ccache
	.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
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	_GSS_C_NO_BUFFER_SET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -48(%rbp)
	movq	_GSS_KRB5_COPY_CCACHE_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	callq	_gss_inquire_cred_by_oid
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	-48(%rbp), %rax
	cmpq	(%rbx), %rax
	je	LBB0_3
## %bb.2:
	cmpl	$1, (%rax)
	jne	LBB0_3
## %bb.4:
	leaq	-36(%rbp), %rdi
	callq	_krb5_init_context
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, (%r12)
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gss_release_buffer_set
	jmp	LBB0_14
LBB0_3:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gss_release_buffer_set
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_14:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %edx
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_asprintf
	movl	%eax, %r15d
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gss_release_buffer_set
	cmpl	$-1, %r15d
	je	LBB0_7
## %bb.9:
	movl	-36(%rbp), %edi
	movq	-64(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_krb5_cc_resolve
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi
	callq	_free
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movl	%r15d, (%r12)
	jmp	LBB0_14
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movl	-36(%rbp), %edi
	movl	-52(%rbp), %esi
	movl	%r14d, %edx
	callq	_krb5_cc_copy_cache
	movl	%eax, %r14d
	movl	-36(%rbp), %edi
	movl	-52(%rbp), %esi
	callq	_krb5_cc_close
	movl	-36(%rbp), %edi
	callq	_krb5_free_context
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.13:
	movl	%r14d, (%r12)
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_C_NO_BUFFER_SET,8,3        ## @GSS_C_NO_BUFFER_SET
	.comm	_GSS_KRB5_COPY_CCACHE_X,4,2     ## @GSS_KRB5_COPY_CCACHE_X
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GSS_S_FAILURE,4,2              ## @GSS_S_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.*s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gss_krb5_copy_ccache           ; -- Begin function gss_krb5_copy_ccache
	.p2align	2
_gss_krb5_copy_ccache:                  ; @gss_krb5_copy_ccache
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x21, _GSS_C_NO_BUFFER_SET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GSS_C_NO_BUFFER_SET@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp, #24]
Lloh2:
	adrp	x8, _GSS_KRB5_COPY_CCACHE_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSS_KRB5_COPY_CCACHE_X@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #24
	bl	_gss_inquire_cred_by_oid
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [sp, #24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #20
	bl	_krb5_init_context
	cbz	w0, LBB0_9
; %bb.4:
	str	w0, [x19]
	add	x1, sp, #24
	mov	x0, x19
	bl	_gss_release_buffer_set
	b	LBB0_7
LBB0_5:
	add	x1, sp, #24
	mov	x0, x19
	bl	_gss_release_buffer_set
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
Lloh7:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_8:
	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_9:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #8]
	ldr	x3, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	mov	x21, x0
	add	x1, sp, #24
	mov	x0, x19
	bl	_gss_release_buffer_set
	cmn	w21, #1
	b.eq	LBB0_12
; %bb.10:
	ldr	w0, [sp, #20]
	ldr	x1, [sp, #8]
	add	x2, sp, #16
	bl	_krb5_cc_resolve
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_free
	cbz	w21, LBB0_13
; %bb.11:
	str	w21, [x19]
	b	LBB0_7
LBB0_12:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_13:
	ldp	w1, w0, [sp, #16]
	mov	x2, x20
	bl	_krb5_cc_copy_cache
	mov	x20, x0
	ldp	w1, w0, [sp, #16]
	bl	_krb5_cc_close
	ldr	w0, [sp, #20]
	bl	_krb5_free_context
	cbz	w20, LBB0_15
; %bb.14:
	str	w20, [x19]
	b	LBB0_7
LBB0_15:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_C_NO_BUFFER_SET,8,3        ; @GSS_C_NO_BUFFER_SET
	.comm	_GSS_KRB5_COPY_CCACHE_X,4,2     ; @GSS_KRB5_COPY_CCACHE_X
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GSS_S_FAILURE,4,2              ; @GSS_S_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.*s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
