	.file	"extr_set_keys.c__kadm5_set_keys2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_kadm5_set_keys2
	.type	_kadm5_set_keys2, @function
_kadm5_set_keys2:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdi
	lea	edi, [rdx+rdx*2]
	sal	edi, 3
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L2
	mov	r8, QWORD PTR ENOMEM[rip]
	test	ebp, ebp
	je	.L2
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
.L2:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r13
	call	_kadm5_init_keys@PLT
	test	ebp, ebp
	jle	.L4
	lea	eax, -1[rbp]
	lea	r15, 8[r13]
	sal	rax, 5
	lea	r12, 32[rbx+rax]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbx, 32
	mov	QWORD PTR -8[r15], 0
	add	r15, 24
	cmp	rbx, r12
	je	.L4
.L9:
	mov	QWORD PTR 8[r15], 0
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, r15
	mov	rdx, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[r15], eax
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [rdx]
	mov	esi, DWORD PTR [rax]
	call	krb5_data_copy@PLT
	mov	r8, rax
	test	rax, rax
	jne	.L5
	cmp	DWORD PTR [rbx], 2
	jne	.L6
	mov	edi, 1
	mov	esi, 8
	call	calloc@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L19
	mov	QWORD PTR -8[r15], rax
	mov	rax, QWORD PTR 24[rbx]
	add	rbx, 32
	add	r15, 24
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR 4[rdi], eax
	mov	rax, QWORD PTR -24[rbx]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbx]
	mov	esi, DWORD PTR 4[rax]
	call	krb5_data_copy@PLT
	cmp	rbx, r12
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rbx, QWORD PTR [rsp]
	mov	rdx, QWORD PTR 8[r14]
	mov	esi, DWORD PTR [r14]
	mov	edi, DWORD PTR [rbx]
	call	_kadm5_free_keys@PLT
	mov	DWORD PTR [r14], ebp
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	mov	QWORD PTR 8[r14], r13
	mov	rsi, r14
	call	hdb_entry_set_pw_change_time@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r14
	call	hdb_entry_clear_password@PLT
	xor	r8d, r8d
	jmp	.L1
.L19:
	mov	r8, QWORD PTR ENOMEM[rip]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, r13
	mov	esi, ebp
	mov	QWORD PTR 8[rsp], r8
	mov	edi, DWORD PTR [rax]
	call	_kadm5_free_keys@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_kadm5_set_keys2, .-_kadm5_set_keys2
	.comm	ENOMEM,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_set_keys.c__kadm5_set_keys2.c"
	.text
	.align	2
	.global	_kadm5_set_keys2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_kadm5_set_keys2, %function
_kadm5_set_keys2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	mov	r10, r0
	sub	sp, sp, #12
	lsl	r0, r2, #4
	mov	r9, r1
	mov	r4, r3
	bl	malloc
	subs	fp, r6, #0
	movne	fp, #1
	cmp	r0, #0
	movne	fp, #0
	cmp	fp, #0
	beq	.L2
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r1, r6
	mov	r8, r0
	bl	_kadm5_init_keys
	cmp	r6, #0
	ble	.L4
	mov	r7, fp
	add	r5, r8, #4
	b	.L9
.L8:
	add	fp, fp, #1
	cmp	r6, fp
	add	r4, r4, #16
	add	r5, r5, #16
	beq	.L4
.L9:
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	ldr	r3, [r4, #8]
	stmib	r5, {r1, r7}
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, [r2]
	bl	krb5_data_copy
	subs	r3, r0, #0
	bne	.L5
	ldr	r2, [r4]
	cmp	r2, #2
	strne	r3, [r5, #-4]
	bne	.L8
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	subs	r3, r0, #0
	beq	.L13
	ldr	r2, [r4, #12]
	str	r3, [r5, #-4]
	ldr	r1, [r2, #4]
	ldr	r2, [r4, #4]
	str	r1, [r3, #4]
	ldr	r3, [r4, #8]
	ldr	r2, [r2, #4]
	ldr	r1, [r3, #4]
	bl	krb5_data_copy
	b	.L8
.L4:
	ldm	r9, {r1, r2}
	ldr	r0, [r10]
	bl	_kadm5_free_keys
	mov	r2, #0
	mov	r1, r9
	stm	r9, {r6, r8}
	ldr	r0, [r10]
	bl	hdb_entry_set_pw_change_time
	mov	r1, r9
	ldr	r0, [r10]
	bl	hdb_entry_clear_password
	mov	r3, #0
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L14
	ldr	r3, [r3]
.L5:
	mov	r2, r8
	mov	r1, r6
	ldr	r0, [r10]
	str	r3, [sp, #4]
	bl	_kadm5_free_keys
	ldr	r3, [sp, #4]
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	ENOMEM
	.size	_kadm5_set_keys2, .-_kadm5_set_keys2
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
