	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gsskrb5_accept_delegated_token
_gsskrb5_accept_delegated_token:        ## @gsskrb5_accept_delegated_token
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	$0, (%rdi)
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	$0, (%r13)
	movq	_krb5_cc_type_memory@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_krb5_cc_new_unique
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_1:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_cc_default
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	-48(%rbp), %rsi
	movl	12(%rbx), %edx
	movl	%r15d, %edi
	callq	_krb5_cc_initialize
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	movq	_GSS_C_DELEG_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_5:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.6:
	testq	%r13, %r13
	je	LBB0_14
LBB0_16:
	movl	%r15d, %edi
	callq	_krb5_cc_destroy
	jmp	LBB0_17
LBB0_8:
	movl	4(%rbx), %esi
	movq	_KRB5_AUTH_CONTEXT_DO_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movl	%r15d, %edi
	callq	_krb5_auth_con_removeflags
	movl	4(%rbx), %esi
	movq	-48(%rbp), %rdx
	leaq	8(%rbx), %rcx
	movl	%r15d, %edi
	callq	_krb5_rd_cred2
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %esi
	movq	-64(%rbp), %rdx
	movl	%r15d, %edi
	callq	_krb5_auth_con_setflags
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	_GSS_C_DELEG_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rcx, (%r12)
	jmp	LBB0_5
LBB0_10:
	movq	-48(%rbp), %rsi
	testq	%r13, %r13
	je	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	__gsskrb5_krb5_import_cred
	movq	%rax, %r14
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_15
## %bb.12:
	movq	(%r13), %rax
	movq	_GSS_CF_DESTROY_CRED_ON_RELEASE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	-48(%rbp), %rsi
	jmp	LBB0_14
LBB0_13:
	testq	%rsi, %rsi
	je	LBB0_17
LBB0_14:
	movl	%r15d, %edi
	callq	_krb5_cc_close
LBB0_17:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_krb5_cc_type_memory,4,2        ## @krb5_cc_type_memory
	.comm	_GSS_C_DELEG_FLAG,4,2           ## @GSS_C_DELEG_FLAG
	.comm	_KRB5_AUTH_CONTEXT_DO_TIME,4,2  ## @KRB5_AUTH_CONTEXT_DO_TIME
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_GSS_CF_DESTROY_CRED_ON_RELEASE,4,2 ## @GSS_CF_DESTROY_CRED_ON_RELEASE
	.no_dead_strip	_gsskrb5_accept_delegated_token
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gsskrb5_accept_delegated_token
_gsskrb5_accept_delegated_token:        ; @gsskrb5_accept_delegated_token
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x25, _GSS_S_COMPLETE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _GSS_S_COMPLETE@GOTPAGEOFF]
	ldr	x20, [x25]
	str	xzr, [x0]
	cbz	x3, LBB0_2
; %bb.1:
	str	xzr, [x21]
Lloh2:
	adrp	x8, _krb5_cc_type_memory@GOTPAGE
Lloh3:
	ldr	x8, [x8, _krb5_cc_type_memory@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_krb5_cc_new_unique
	cbnz	x0, LBB0_4
	b	LBB0_3
LBB0_2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_krb5_cc_default
	cbnz	x0, LBB0_4
LBB0_3:
	ldr	x1, [sp, #8]
	ldr	w2, [x22, #12]
	mov	x0, x19
	bl	_krb5_cc_initialize
	cbz	x0, LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _GSS_C_DELEG_FLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSS_C_DELEG_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
	ldr	x1, [sp, #8]
	cbz	x1, LBB0_14
LBB0_5:
	cbz	x21, LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_krb5_cc_destroy
	b	LBB0_14
LBB0_7:
	ldr	w1, [x22, #4]
Lloh8:
	adrp	x8, _KRB5_AUTH_CONTEXT_DO_TIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KRB5_AUTH_CONTEXT_DO_TIME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_krb5_auth_con_removeflags
	ldr	w1, [x22, #4]
	ldr	x2, [sp, #8]
	add	x3, x22, #8
	mov	x0, x19
	bl	_krb5_rd_cred2
	mov	x24, x0
	ldr	w1, [x22, #4]
	ldr	x2, [sp]
	mov	x0, x19
	bl	_krb5_auth_con_setflags
	cbz	x24, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _GSS_C_DELEG_FLAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GSS_C_DELEG_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
	str	w8, [x22]
Lloh14:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	str	x24, [x23]
	ldr	x1, [sp, #8]
	cbnz	x1, LBB0_5
	b	LBB0_14
LBB0_9:
	ldr	x1, [sp, #8]
	cbz	x21, LBB0_12
; %bb.10:
	mov	x0, x23
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	bl	__gsskrb5_krb5_import_cred
	mov	x20, x0
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.11:
Lloh17:
	adrp	x8, _GSS_CF_DESTROY_CRED_ON_RELEASE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GSS_CF_DESTROY_CRED_ON_RELEASE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh19:
	ldr	w8, [x8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	x1, [sp, #8]
	b	LBB0_13
LBB0_12:
	cbz	x1, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_krb5_cc_close
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	ldr	x1, [sp, #8]
	cbnz	x1, LBB0_6
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_krb5_cc_type_memory,4,2        ; @krb5_cc_type_memory
	.comm	_GSS_C_DELEG_FLAG,4,2           ; @GSS_C_DELEG_FLAG
	.comm	_KRB5_AUTH_CONTEXT_DO_TIME,4,2  ; @KRB5_AUTH_CONTEXT_DO_TIME
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_GSS_CF_DESTROY_CRED_ON_RELEASE,4,2 ; @GSS_CF_DESTROY_CRED_ON_RELEASE
	.no_dead_strip	_gsskrb5_accept_delegated_token
.subsections_via_symbols
