	.file	"extr_39445.c_authtrust.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	authtrust
	.type	authtrust, @function
authtrust:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR key_hash[rip]
	call	KEYHASH@PLT
	mov	rbx, QWORD PTR [rbx+rax*8]
	test	rbx, rbx
	jne	.L4
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L2
.L4:
	cmp	QWORD PTR [rbx], rbp
	jne	.L28
	cmp	QWORD PTR cache_keyid[rip], rbp
	jne	.L13
	mov	QWORD PTR cache_flags[rip], 0
	mov	QWORD PTR cache_keyid[rip], 0
.L13:
	mov	edx, DWORD PTR 16[rbx]
	mov	eax, DWORD PTR KEY_TRUSTED[rip]
	test	r12, r12
	jle	.L5
	or	eax, edx
	mov	DWORD PTR 16[rbx], eax
	cmp	r12, 1
	je	.L6
	add	r12, QWORD PTR current_time[rip]
	mov	QWORD PTR 40[rbx], r12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	r12, r12
	je	.L1
	mov	rax, QWORD PTR authnumfreekeys[rip]
	test	rax, rax
	jne	.L10
	call	auth_moremem@PLT
	mov	r8, rax
	mov	rax, QWORD PTR authnumfreekeys[rip]
	test	r8, r8
	je	.L1
.L10:
	mov	rbx, QWORD PTR authfreekeys[rip]
	sub	rax, 1
	mov	r12, QWORD PTR key_hash[rip]
	mov	rdi, rbp
	mov	QWORD PTR authnumfreekeys[rip], rax
	mov	eax, DWORD PTR KEY_TRUSTED[rip]
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR authfreekeys[rip], rdx
	mov	DWORD PTR 16[rbx], eax
	mov	QWORD PTR [rbx], rbp
	call	KEYHASH@PLT
	mov	rdi, rbp
	mov	rax, QWORD PTR [r12+rax*8]
	mov	r12, QWORD PTR key_hash[rip]
	mov	QWORD PTR 8[rbx], rax
	call	KEYHASH@PLT
	mov	QWORD PTR [r12+rax*8], rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	add	DWORD PTR authnumkeys[rip], 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	not	eax
	mov	r12, QWORD PTR key_hash[rip]
	mov	rdi, rbp
	and	eax, edx
	mov	DWORD PTR 16[rbx], eax
	call	KEYHASH@PLT
	mov	rax, QWORD PTR [r12+rax*8]
	cmp	rax, rbx
	je	.L29
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, rax
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, rbx
	jne	.L8
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rdx], rax
.L9:
	mov	rax, QWORD PTR authfreekeys[rip]
	sub	DWORD PTR authnumkeys[rip], 1
	mov	QWORD PTR authfreekeys[rip], rbx
	mov	QWORD PTR 8[rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	add	QWORD PTR authnumfreekeys[rip], 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	QWORD PTR 40[rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L29:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r12, QWORD PTR key_hash[rip]
	call	KEYHASH@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR [r12+rax*8], rdx
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	authtrust, .-authtrust
	.comm	key_hash,8,8
	.comm	current_time,8,8
	.comm	cache_keyid,8,8
	.comm	cache_flags,8,8
	.comm	authnumkeys,4,4
	.comm	authnumfreekeys,8,8
	.comm	authfreekeys,8,8
	.comm	KEY_TRUSTED,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_39445.c_authtrust.c"
	.text
	.align	2
	.global	authtrust
	.syntax unified
	.arm
	.fpu softvfp
	.type	authtrust, %function
authtrust:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L30
	mov	r6, r1
	ldr	r4, [r7]
	mov	r5, r0
	bl	KEYHASH
	ldr	r4, [r4, r0, lsl #2]
	cmp	r4, #0
	bne	.L4
	b	.L2
.L28:
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L2
.L4:
	ldr	r3, [r4]
	cmp	r3, r5
	bne	.L28
	ldr	r3, .L30+4
	ldr	r2, [r3]
	cmp	r2, r5
	moveq	r2, #0
	ldreq	r1, .L30+8
	streq	r2, [r3]
	streq	r2, [r1]
.L13:
	ldr	r3, .L30+12
	cmp	r6, #0
	ldr	r3, [r3]
	ldr	r2, [r4, #8]
	ble	.L5
	orr	r3, r3, r2
	cmp	r6, #1
	str	r3, [r4, #8]
	moveq	r3, #0
	ldrne	r3, .L30+16
	streq	r3, [r4, #20]
	ldrne	r3, [r3]
	addne	r6, r3, r6
	strne	r6, [r4, #20]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r6, .L30+20
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L10
	bl	auth_moremem
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r6]
.L10:
	mov	r2, #0
	ldr	r1, .L30+24
	ldr	r0, .L30+12
	ldr	r4, [r1]
	sub	r3, r3, #1
	ldr	r0, [r0]
	str	r3, [r6]
	ldr	r3, [r4, #4]
	str	r2, [r4, #16]
	str	r3, [r1]
	str	r2, [r4, #12]
	str	r0, [r4, #8]
	str	r5, [r4]
	mov	r0, r5
	ldr	r6, [r7]
	bl	KEYHASH
	ldr	r3, [r6, r0, lsl #2]
	mov	r0, r5
	str	r3, [r4, #4]
	ldr	r5, [r7]
	bl	KEYHASH
	ldr	r2, .L30+28
	str	r4, [r5, r0, lsl #2]
	ldr	r3, [r2]
	add	r3, r3, #1
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	bic	r3, r2, r3
	str	r3, [r4, #8]
	mov	r0, r5
	ldr	r6, [r7]
	bl	KEYHASH
	ldr	r3, [r6, r0, lsl #2]
	cmp	r3, r4
	beq	.L29
.L8:
	mov	r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, r4
	bne	.L8
	ldr	r3, [r4, #4]
	str	r3, [r2, #4]
.L9:
	ldr	ip, .L30+28
	ldr	r0, .L30+20
	ldr	r2, [ip]
	ldr	r1, .L30+24
	ldr	r3, [r0]
	sub	r2, r2, #1
	str	r2, [ip]
	ldr	r2, [r1]
	add	r3, r3, #1
	str	r3, [r0]
	str	r2, [r4, #4]
	str	r4, [r1]
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	mov	r0, r5
	ldr	r5, [r7]
	bl	KEYHASH
	ldr	r3, [r4, #4]
	str	r3, [r5, r0, lsl #2]
	b	.L9
.L31:
	.align	2
.L30:
	.word	key_hash
	.word	cache_keyid
	.word	cache_flags
	.word	KEY_TRUSTED
	.word	current_time
	.word	authnumfreekeys
	.word	authfreekeys
	.word	authnumkeys
	.size	authtrust, .-authtrust
	.comm	key_hash,4,4
	.comm	current_time,4,4
	.comm	cache_keyid,4,4
	.comm	cache_flags,4,4
	.comm	authnumkeys,4,4
	.comm	authnumfreekeys,4,4
	.comm	authfreekeys,4,4
	.comm	KEY_TRUSTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
