	.file	"extr_init_c.c__kadm5_c_get_cred_cache.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to find local user name"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"admin"
	.text
	.p2align 4
	.globl	_kadm5_c_get_cred_cache
	.type	_kadm5_c_get_cred_cache, @function
_kadm5_c_get_cred_cache:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 120[rsp]
	mov	rbp, QWORD PTR 112[rsp]
	mov	DWORD PTR 12[rsp], r8d
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	test	rcx, rcx
	je	.L2
	cmp	BYTE PTR [rcx], 0
	cmove	r13, rax
.L2:
	test	r15, r15
	cmove	r15, QWORD PTR KADM5_ADMIN_SERVICE[rip]
	test	rsi, rsi
	je	.L8
	lea	rdx, 32[rsp]
	mov	edi, r14d
	call	krb5_parse_name@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
.L8:
	test	rbp, rbp
	je	.L51
	lea	rdx, 32[rsp]
	mov	rsi, rbp
	mov	edi, r14d
	mov	QWORD PTR 16[rsp], rbp
	call	krb5_cc_get_principal@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
.L11:
	mov	r8, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	r9, QWORD PTR 16[rsp]
	test	r8, r8
	je	.L52
	test	r9, r9
	je	.L20
	test	rsi, rsi
	je	.L23
.L24:
	mov	rdx, rsi
	mov	edi, r14d
	mov	rsi, r8
	call	krb5_principal_compare@PLT
	test	rax, rax
	je	.L48
	mov	r8, QWORD PTR 32[rsp]
	mov	r9, QWORD PTR 16[rsp]
.L23:
	mov	rcx, r15
	mov	rdx, r8
	mov	rsi, r9
	mov	edi, r14d
	call	get_kadm_ticket@PLT
	mov	r12, rax
	test	rax, rax
	je	.L53
	test	rbp, rbp
	jne	.L27
.L48:
	mov	r9, QWORD PTR 16[rsp]
	test	r9, r9
	je	.L49
.L44:
	cmp	rbp, r9
	je	.L49
	mov	rsi, r9
	mov	edi, r14d
	call	krb5_cc_close@PLT
.L49:
	mov	r8, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
.L20:
	cmp	r8, rsi
	je	.L22
	mov	edi, r14d
	call	krb5_free_principal@PLT
	mov	rsi, QWORD PTR 32[rsp]
.L22:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rdx, r13
	mov	r9, r15
	mov	r8, rbx
	push	QWORD PTR 8[rsp]
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR 28[rsp]
	mov	edi, r14d
	call	get_new_cache@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	edi, r14d
	mov	r12, rax
	call	krb5_free_principal@PLT
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L54
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L51:
	.cfi_restore_state
	lea	r12, 24[rsp]
	lea	rsi, 16[rsp]
	mov	edi, r14d
	mov	rdx, r12
	call	get_cache_principal@PLT
	test	rax, rax
	je	.L11
	xor	eax, eax
	call	get_default_username@PLT
	mov	rcx, rax
	test	rax, rax
	je	.L55
	mov	rsi, r12
	xor	r9d, r9d
	lea	r8, .LC1[rip]
	xor	edx, edx
	mov	edi, r14d
	call	krb5_make_principal@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L52:
	test	rsi, rsi
	je	.L13
	mov	QWORD PTR 32[rsp], rsi
	test	r9, r9
	je	.L22
	mov	r8, rsi
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L13:
	test	r9, r9
	jne	.L44
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r12, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rax, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR [rsp]
	mov	edi, r14d
	mov	rsi, QWORD PTR 24[rsp]
	mov	QWORD PTR [rbx], rax
	call	krb5_free_principal@PLT
	mov	rsi, QWORD PTR 32[rsp]
	cmp	QWORD PTR 24[rsp], rsi
	je	.L1
	mov	edi, r14d
	call	krb5_free_principal@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L55:
	mov	rsi, QWORD PTR KADM5_FAILURE[rip]
	lea	rdx, .LC0[rip]
	mov	edi, r14d
	call	krb5_set_error_message@PLT
	mov	r12, QWORD PTR KADM5_FAILURE[rip]
	jmp	.L1
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_kadm5_c_get_cred_cache, .-_kadm5_c_get_cred_cache
	.comm	KADM5_FAILURE,8,8
	.comm	KADM5_ADMIN_SERVICE,8,8
	.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_init_c.c__kadm5_c_get_cred_cache.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to find local user name\000"
	.align	2
.LC1:
	.ascii	"admin\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_kadm5_c_get_cred_cache
	.syntax unified
	.arm
	.fpu softvfp
	.type	_kadm5_c_get_cred_cache, %function
_kadm5_c_get_cred_cache:
	@ args = 16, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r3, #0
	ldr	r3, .L50
	sub	sp, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r0
	mov	r7, r2
	ldr	r10, [sp, #68]
	ldr	r8, [sp, #72]
	ldr	r9, [sp, #76]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	beq	.L2
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, ip
	moveq	r5, ip
.L2:
	cmp	r7, #0
	ldreq	r3, .L50+4
	ldreq	r7, [r3]
	cmp	r1, #0
	beq	.L8
	mov	r0, r6
	add	r2, sp, #24
	bl	krb5_parse_name
	subs	r4, r0, #0
	bne	.L1
.L8:
	cmp	r8, #0
	beq	.L45
	mov	r1, r8
	mov	r0, r6
	add	r2, sp, #24
	str	r8, [sp, #16]
	bl	krb5_cc_get_principal
	subs	r4, r0, #0
	bne	.L1
.L11:
	ldr	r0, [sp, #24]
	ldr	r1, [sp, #20]
	cmp	r0, #0
	ldr	r3, [sp, #16]
	beq	.L46
	cmp	r3, #0
	beq	.L19
	cmp	r1, #0
	beq	.L22
.L23:
	mov	r2, r1
	mov	r1, r0
	mov	r0, r6
	bl	krb5_principal_compare
	cmp	r0, #0
	ldr	r3, [sp, #16]
	bne	.L15
.L16:
	cmp	r3, #0
	cmpne	r8, r3
	beq	.L42
	mov	r1, r3
	mov	r0, r6
	bl	krb5_cc_close
.L42:
	ldr	r0, [sp, #24]
	ldr	r1, [sp, #20]
.L19:
	cmp	r0, r1
	beq	.L21
	mov	r0, r6
	bl	krb5_free_principal
	ldr	r1, [sp, #24]
.L21:
	mov	r2, r5
	mov	r0, r6
	stmib	sp, {r7, r9}
	ldr	r3, [sp, #64]
	str	r10, [sp]
	bl	get_new_cache
	mov	r4, r0
	ldr	r1, [sp, #24]
.L43:
	mov	r0, r6
	bl	krb5_free_principal
.L1:
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L45:
	mov	r0, r6
	add	r2, sp, #20
	add	r1, sp, #16
	bl	get_cache_principal
	cmp	r0, #0
	beq	.L11
	bl	get_default_username
	subs	r3, r0, #0
	beq	.L48
	ldr	r2, .L50+8
	mov	r0, r6
	str	r2, [sp]
	str	r8, [sp, #4]
	mov	r2, r8
	add	r1, sp, #20
	bl	krb5_make_principal
	subs	r4, r0, #0
	beq	.L11
	b	.L1
.L46:
	cmp	r1, #0
	beq	.L13
	cmp	r3, #0
	str	r1, [sp, #24]
	beq	.L21
	mov	r0, r1
	b	.L23
.L15:
	ldr	r0, [sp, #24]
.L22:
	mov	r2, r0
	mov	r1, r3
	mov	r0, r6
	mov	r3, r7
	bl	get_kadm_ticket
	subs	r4, r0, #0
	beq	.L49
	cmp	r8, #0
	bne	.L26
	ldr	r3, [sp, #16]
	b	.L16
.L13:
	cmp	r3, #0
	bne	.L16
	b	.L21
.L49:
	ldr	r3, [sp, #16]
	ldr	r1, [sp, #20]
	str	r3, [r9]
	mov	r0, r6
	bl	krb5_free_principal
	ldr	r1, [sp, #24]
	ldr	r3, [sp, #20]
	cmp	r3, r1
	bne	.L43
	b	.L1
.L48:
	ldr	r4, .L50+12
	mov	r0, r6
	ldr	r1, [r4]
	ldr	r2, .L50+16
	bl	krb5_set_error_message
	ldr	r4, [r4]
	b	.L1
.L26:
	mvn	r4, #0
	b	.L1
.L47:
	bl	__stack_chk_fail
.L51:
	.align	2
.L50:
	.word	.LC2
	.word	KADM5_ADMIN_SERVICE
	.word	.LC1
	.word	KADM5_FAILURE
	.word	.LC0
	.size	_kadm5_c_get_cred_cache, .-_kadm5_c_get_cred_cache
	.comm	KADM5_FAILURE,4,4
	.comm	KADM5_ADMIN_SERVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
