	.file	"extr_common.c_hdb_add_aliases.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hdb_add_aliases, @function
hdb_add_aliases:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	mov	rdi, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 12[rsp], edx
	lea	rsi, 48[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	hdb_entry_get_aliases@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 48[rsp]
	test	rax, rax
	je	.L1
	cmp	QWORD PTR [rax], 0
	je	.L1
	lea	rcx, 44[rsp]
	xor	ebx, ebx
	lea	r13, 36[rsp]
	mov	QWORD PTR 16[rsp], rcx
	lea	r14, 40[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR 12[rsp]
	mov	r8d, DWORD PTR 40[rsp]
	mov	rsi, r12
	mov	edi, ebp
	mov	ecx, DWORD PTR 36[rsp]
	call	[QWORD PTR [r12]]
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	call	krb5_data_free@PLT
	mov	rdi, r14
	call	krb5_data_free@PLT
	mov	rdx, QWORD PTR [rsp]
	test	rdx, rdx
	jne	.L9
	mov	rax, QWORD PTR 48[rsp]
	add	rbx, 1
	cmp	QWORD PTR [rax], rbx
	jbe	.L1
.L6:
	mov	edx, DWORD PTR [r15]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, ebp
	mov	DWORD PTR 44[rsp], edx
	lea	rsi, [rax+rbx*4]
	mov	rdx, r13
	call	hdb_principal2key@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdx, r14
	mov	edi, ebp
	call	hdb_entry_alias2value@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r13
	mov	QWORD PTR [rsp], rax
	call	krb5_data_free@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	QWORD PTR 24[rsp], rdx
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	mov	rax, QWORD PTR 24[rsp]
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L9:
	.cfi_restore_state
	mov	QWORD PTR 24[rsp], rdx
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hdb_add_aliases, .-hdb_add_aliases
	.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_common.c_hdb_add_aliases.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hdb_add_aliases, %function
hdb_add_aliases:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r3
	sub	sp, sp, #32
	mov	r6, r0
	mov	r0, r3
	ldr	r3, .L15
	mov	r7, r1
	add	r1, sp, #12
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	hdb_entry_get_aliases
	subs	r10, r0, #0
	bne	.L1
	ldr	r3, [sp, #12]
	cmp	r3, #0
	beq	.L1
	ldr	r2, [r3]
	cmp	r2, #0
	movne	r5, r10
	bne	.L6
	b	.L1
.L4:
	ldr	r3, [sp, #20]
	mov	r2, r9
	mov	r1, r7
	ldr	r4, [r7]
	mov	r0, r6
	str	r3, [sp]
	ldr	r3, [sp, #16]
	blx	r4
	mov	r4, r0
	add	r0, sp, #16
	bl	krb5_data_free
	add	r0, sp, #20
	bl	krb5_data_free
	cmp	r4, #0
	bne	.L9
	ldr	r3, [sp, #12]
	add	r5, r5, #1
	ldr	r2, [r3]
	cmp	r2, r5
	bls	.L1
.L6:
	ldr	r1, [r3, #4]
	ldr	r3, [r8]
	add	r1, r1, r5, lsl #2
	add	r2, sp, #16
	mov	r0, r6
	str	r3, [sp, #24]
	bl	hdb_principal2key
	mov	r0, r6
	add	r2, sp, #20
	add	r1, sp, #24
	bl	hdb_entry_alias2value
	subs	r4, r0, #0
	beq	.L4
	add	r0, sp, #16
	bl	krb5_data_free
	mov	r10, r4
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r10
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r10, r4
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	hdb_add_aliases, .-hdb_add_aliases
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
