	.file	"extr_ghes.c_ghes_estatus_cache_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ghes_estatus_cache_add, @function
ghes_estatus_cache_add:
.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
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	ghes_estatus_cache_alloc@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L1
	xor	eax, eax
	call	rcu_read_lock@PLT
	xor	eax, eax
	call	sched_clock@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR GHES_ESTATUS_CACHES_SIZE[rip]
	test	eax, eax
	jle	.L3
	mov	QWORD PTR 16[rsp], 0
	xor	r13d, r13d
	xor	ebx, ebx
	mov	DWORD PTR 12[rsp], -1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	mov	r14, rbp
	sub	r14, QWORD PTR [rax]
	cmp	QWORD PTR GHES_ESTATUS_IN_CACHE_MAX_NSEC[rip], r14
	jbe	.L4
	lea	rdi, 12[rax]
	call	atomic_read@PLT
	mov	rdi, r14
	lea	esi, 1[rax]
	call	do_div@PLT
	cmp	r14, rbx
	jbe	.L5
	mov	QWORD PTR 16[rsp], r15
	mov	rbx, r14
	mov	DWORD PTR 12[rsp], r13d
.L5:
	add	r13, 1
	cmp	DWORD PTR GHES_ESTATUS_CACHES_SIZE[rip], r13d
	jle	.L25
.L6:
	mov	rax, QWORD PTR ghes_estatus_caches[rip]
	lea	r12, 0[0+r13*4]
	mov	edi, DWORD PTR [rax+r13*4]
	call	rcu_dereference@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L26
.L4:
	xor	eax, eax
	call	smp_wmb@PLT
.L11:
	mov	rdi, QWORD PTR ghes_estatus_caches[rip]
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r15
	add	rdi, r12
	call	cmpxchg@PLT
	cmp	r15, rax
	je	.L27
.L8:
	mov	rdi, QWORD PTR 24[rsp]
	call	ghes_estatus_cache_free@PLT
.L10:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	jmp	rcu_read_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 40
	.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
.L25:
	.cfi_restore_state
	xor	eax, eax
	call	smp_wmb@PLT
	cmp	DWORD PTR 12[rsp], -1
	je	.L8
	movsx	r12, DWORD PTR 12[rsp]
	mov	r15, QWORD PTR 16[rsp]
	sal	r12, 2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	test	r15, r15
	je	.L10
	mov	esi, DWORD PTR ghes_estatus_cache_rcu_free[rip]
	lea	rdi, 8[r15]
	call	call_rcu@PLT
	jmp	.L10
.L3:
	xor	eax, eax
	call	smp_wmb@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ghes_estatus_cache_add, .-ghes_estatus_cache_add
	.comm	ghes_estatus_caches,8,8
	.comm	ghes_estatus_cache_rcu_free,4,4
	.comm	GHES_ESTATUS_IN_CACHE_MAX_NSEC,8,8
	.comm	GHES_ESTATUS_CACHES_SIZE,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_ghes.c_ghes_estatus_cache_add.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ghes_estatus_cache_add, %function
ghes_estatus_cache_add:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	bl	ghes_estatus_cache_alloc
	subs	r3, r0, #0
	str	r3, [sp, #28]
	beq	.L1
	bl	rcu_read_lock
	bl	sched_clock
	ldr	r9, .L28
	str	r0, [sp, #12]
	ldr	r3, [r9]
	str	r1, [sp, #16]
	cmp	r3, #0
	ble	.L3
	mov	r3, #0
	mov	r4, #0
	mov	r5, #0
	stm	sp, {r3-r4}
	mvn	r3, #0
	mov	r10, r5
	ldr	r8, .L28+4
	ldr	fp, .L28+8
	str	r5, [sp, #24]
	str	r3, [sp, #20]
	b	.L6
.L26:
	ldr	r2, [r4]
	ldr	r3, [sp, #12]
	ldr	r1, [r4, #4]
	subs	r6, r3, r2
	ldr	r3, [sp, #16]
	sbc	r7, r3, r1
	ldmia	fp, {r2-r3}
	cmp	r3, r7
	cmpeq	r2, r6
	bls	.L4
	bl	atomic_read
	mov	r2, r0
	mov	r1, r7
	add	r2, r2, #1
	mov	r0, r6
	bl	do_div
	ldmia	sp, {r2-r3}
	cmp	r7, r3
	cmpeq	r6, r2
	ldr	r2, [r9]
	stmhi	sp, {r6-r7}
	strhi	r4, [sp, #24]
	strhi	r10, [sp, #20]
.L5:
	add	r10, r10, #1
	cmp	r2, r10
	ble	.L25
.L6:
	ldr	r2, [r8]
	lsl	r5, r10, #2
	ldr	r0, [r2, r10, lsl #2]
	bl	rcu_dereference
	subs	r4, r0, #0
	add	r0, r4, #12
	bne	.L26
.L4:
	mov	r10, r5
	bl	smp_wmb
.L11:
	ldr	r0, [r8]
	mov	r1, r4
	ldr	r2, [sp, #28]
	add	r0, r0, r10
	bl	cmpxchg
	cmp	r4, r0
	beq	.L27
.L8:
	ldr	r0, [sp, #28]
	bl	ghes_estatus_cache_free
.L10:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	rcu_read_unlock
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	bl	smp_wmb
	ldr	r3, [sp, #20]
	cmn	r3, #1
	beq	.L8
	ldr	r4, [sp, #24]
	lsl	r10, r3, #2
	b	.L11
.L27:
	cmp	r4, #0
	beq	.L10
	ldr	r3, .L28+12
	add	r0, r4, #8
	ldr	r1, [r3]
	bl	call_rcu
	b	.L10
.L3:
	bl	smp_wmb
	b	.L8
.L29:
	.align	2
.L28:
	.word	GHES_ESTATUS_CACHES_SIZE
	.word	ghes_estatus_caches
	.word	GHES_ESTATUS_IN_CACHE_MAX_NSEC
	.word	ghes_estatus_cache_rcu_free
	.size	ghes_estatus_cache_add, .-ghes_estatus_cache_add
	.comm	ghes_estatus_caches,4,4
	.comm	ghes_estatus_cache_rcu_free,4,4
	.comm	GHES_ESTATUS_IN_CACHE_MAX_NSEC,8,8
	.comm	GHES_ESTATUS_CACHES_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
