	.file	"extr_accept_sec_context.c_gsskrb5_accept_delegated_token.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gsskrb5_accept_delegated_token, @function
gsskrb5_accept_delegated_token:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR GSS_S_COMPLETE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rdi], 0
	mov	QWORD PTR 8[rsp], 0
	test	rcx, rcx
	je	.L19
	mov	QWORD PTR [rcx], 0
	mov	esi, DWORD PTR krb5_cc_type_memory[rip]
	lea	rcx, 8[rsp]
	xor	edx, edx
	mov	edi, ebp
	call	krb5_cc_new_unique@PLT
.L3:
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR GSS_C_DELEG_FLAG[rip]
	not	eax
	and	DWORD PTR [rbx], eax
.L5:
	test	rsi, rsi
	je	.L1
	test	r12, r12
	je	.L12
.L11:
	mov	edi, ebp
	call	krb5_cc_destroy@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	test	rsi, rsi
	je	.L1
.L12:
	mov	edi, ebp
	call	krb5_cc_close@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR 12[rbx]
	mov	edi, ebp
	call	krb5_cc_initialize@PLT
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR GSS_C_DELEG_FLAG[rip]
	mov	rsi, QWORD PTR 8[rsp]
	not	eax
	and	DWORD PTR [rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rsi, 8[rsp]
	mov	edi, edx
	call	krb5_cc_default@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR KRB5_AUTH_CONTEXT_DO_TIME[rip]
	lea	rcx, 16[rsp]
	mov	edi, ebp
	call	krb5_auth_con_removeflags@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR 8[rsp]
	mov	edi, ebp
	lea	rcx, 8[rbx]
	call	krb5_rd_cred2@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdx, QWORD PTR 16[rsp]
	mov	edi, ebp
	mov	r15, rax
	call	krb5_auth_con_setflags@PLT
	test	r15, r15
	jne	.L21
	mov	rsi, QWORD PTR 8[rsp]
	test	r12, r12
	je	.L8
	xor	ecx, ecx
	xor	edx, edx
	mov	r8, r12
	mov	rdi, r13
	call	_gsskrb5_krb5_import_cred@PLT
	cmp	QWORD PTR GSS_S_COMPLETE[rip], rax
	mov	r14, rax
	je	.L22
	mov	rsi, QWORD PTR 8[rsp]
	test	rsi, rsi
	jne	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR GSS_C_DELEG_FLAG[rip]
	mov	r14, QWORD PTR GSS_S_FAILURE[rip]
	mov	rsi, QWORD PTR 8[rsp]
	not	eax
	and	DWORD PTR [rbx], eax
	mov	QWORD PTR 0[r13], r15
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR [r12]
	mov	edx, DWORD PTR GSS_CF_DESTROY_CRED_ON_RELEASE[rip]
	mov	edi, ebp
	mov	rsi, QWORD PTR 8[rsp]
	or	DWORD PTR [rax], edx
	call	krb5_cc_close@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gsskrb5_accept_delegated_token, .-gsskrb5_accept_delegated_token
	.comm	krb5_cc_type_memory,4,4
	.comm	KRB5_AUTH_CONTEXT_DO_TIME,4,4
	.comm	GSS_S_FAILURE,8,8
	.comm	GSS_S_COMPLETE,8,8
	.comm	GSS_C_DELEG_FLAG,4,4
	.comm	GSS_CF_DESTROY_CRED_ON_RELEASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_accept_sec_context.c_gsskrb5_accept_delegated_token.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gsskrb5_accept_delegated_token, %function
gsskrb5_accept_delegated_token:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L23
	subs	r6, r3, #0
	ldr	r3, .L23+4
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r9, [r10]
	mov	r7, r0
	mov	r4, r1
	mov	r5, r2
	str	ip, [sp, #12]
	str	ip, [r0]
	beq	.L19
	ldr	r3, .L23+8
	mov	r2, ip
	ldr	r1, [r3]
	mov	r0, r5
	str	ip, [r6]
	add	r3, sp, #12
	bl	krb5_cc_new_unique
	mov	r8, r0
.L3:
	cmp	r8, #0
	ldr	r1, [sp, #12]
	beq	.L4
	ldr	r2, .L23+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	bic	r3, r3, r2
	str	r3, [r4]
.L5:
	cmp	r1, #0
	beq	.L1
	cmp	r6, #0
	beq	.L12
.L11:
	mov	r0, r5
	bl	krb5_cc_destroy
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	cmp	r1, #0
	beq	.L1
.L12:
	mov	r0, r5
	bl	krb5_cc_close
	b	.L1
.L4:
	mov	r0, r5
	ldr	r2, [r4, #12]
	bl	krb5_cc_initialize
	cmp	r0, #0
	beq	.L6
	ldr	r2, .L23+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r1, [sp, #12]
	bic	r3, r3, r2
	str	r3, [r4]
	b	.L5
.L19:
	mov	r0, r2
	add	r1, sp, #12
	bl	krb5_cc_default
	mov	r8, r0
	b	.L3
.L6:
	ldr	r2, .L23+16
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	add	r3, sp, #16
	mov	r0, r5
	bl	krb5_auth_con_removeflags
	ldr	r2, [sp, #12]
	ldr	r1, [r4, #4]
	add	r3, r4, #8
	mov	r0, r5
	bl	krb5_rd_cred2
	mov	fp, r0
	ldr	r2, [sp, #16]
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	krb5_auth_con_setflags
	cmp	fp, #0
	bne	.L21
	cmp	r6, #0
	ldr	r1, [sp, #12]
	beq	.L8
	mov	r3, r8
	mov	r0, r7
	mov	r2, r8
	str	r6, [sp]
	bl	_gsskrb5_krb5_import_cred
	ldr	r3, [r10]
	mov	r9, r0
	cmp	r3, r0
	beq	.L22
	ldr	r1, [sp, #12]
	cmp	r1, #0
	bne	.L11
	b	.L1
.L21:
	ldr	r2, .L23+12
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r2, .L23+20
	bic	r3, r3, r1
	ldr	r9, [r2]
	str	r3, [r4]
	ldr	r1, [sp, #12]
	str	fp, [r7]
	b	.L5
.L22:
	ldr	r2, [r6]
	ldr	r1, .L23+24
	ldr	r3, [r2]
	ldr	r1, [r1]
	mov	r0, r5
	orr	r3, r3, r1
	str	r3, [r2]
	ldr	r1, [sp, #12]
	bl	krb5_cc_close
	b	.L1
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	GSS_S_COMPLETE
	.word	.LC0
	.word	krb5_cc_type_memory
	.word	GSS_C_DELEG_FLAG
	.word	KRB5_AUTH_CONTEXT_DO_TIME
	.word	GSS_S_FAILURE
	.word	GSS_CF_DESTROY_CRED_ON_RELEASE
	.size	gsskrb5_accept_delegated_token, .-gsskrb5_accept_delegated_token
	.comm	krb5_cc_type_memory,4,4
	.comm	KRB5_AUTH_CONTEXT_DO_TIME,4,4
	.comm	GSS_S_FAILURE,4,4
	.comm	GSS_S_COMPLETE,4,4
	.comm	GSS_C_DELEG_FLAG,4,4
	.comm	GSS_CF_DESTROY_CRED_ON_RELEASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
