	.file	"extr_dm-bufio.c___cache_size_refresh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__cache_size_refresh, @function
__cache_size_refresh:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, dm_bufio_clients_lock[rip]
	call	mutex_is_locked@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	rdi, QWORD PTR dm_bufio_client_count[rip]
	shr	rdi, 63
	call	BUG_ON@PLT
	mov	edi, DWORD PTR dm_bufio_cache_size[rip]
	call	ACCESS_ONCE@PLT
	mov	DWORD PTR dm_bufio_cache_size_latch[rip], eax
	test	eax, eax
	je	.L9
.L2:
	mov	rcx, QWORD PTR dm_bufio_client_count[rip]
	test	rcx, rcx
	je	.L3
	cdqe
	cqo
	idiv	rcx
.L3:
	mov	DWORD PTR dm_bufio_cache_size_per_client[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR dm_bufio_default_cache_size[rip]
	xor	esi, esi
	lea	rdi, dm_bufio_cache_size[rip]
	call	cmpxchg@PLT
	mov	eax, DWORD PTR dm_bufio_default_cache_size[rip]
	mov	DWORD PTR dm_bufio_cache_size_latch[rip], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	__cache_size_refresh, .-__cache_size_refresh
	.comm	dm_bufio_default_cache_size,4,4
	.comm	dm_bufio_clients_lock,4,4
	.comm	dm_bufio_client_count,8,8
	.comm	dm_bufio_cache_size_per_client,4,4
	.comm	dm_bufio_cache_size_latch,4,4
	.comm	dm_bufio_cache_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_dm-bufio.c___cache_size_refresh.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__cache_size_refresh, %function
__cache_size_refresh:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L10
	bl	mutex_is_locked
	clz	r0, r0
	ldr	r4, .L10+4
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r0, [r4]
	ldr	r6, .L10+8
	lsr	r0, r0, #31
	bl	BUG_ON
	ldr	r0, [r6]
	bl	ACCESS_ONCE
	ldr	r5, .L10+12
	cmp	r0, #0
	str	r0, [r5]
	beq	.L9
.L2:
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L3
	bl	__aeabi_idiv
.L3:
	ldr	r3, .L10+16
	str	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r7, .L10+20
	mov	r1, r0
	ldr	r2, [r7]
	mov	r0, r6
	bl	cmpxchg
	ldr	r0, [r7]
	str	r0, [r5]
	b	.L2
.L11:
	.align	2
.L10:
	.word	dm_bufio_clients_lock
	.word	dm_bufio_client_count
	.word	dm_bufio_cache_size
	.word	dm_bufio_cache_size_latch
	.word	dm_bufio_cache_size_per_client
	.word	dm_bufio_default_cache_size
	.size	__cache_size_refresh, .-__cache_size_refresh
	.comm	dm_bufio_default_cache_size,4,4
	.comm	dm_bufio_clients_lock,4,4
	.comm	dm_bufio_client_count,4,4
	.comm	dm_bufio_cache_size_per_client,4,4
	.comm	dm_bufio_cache_size_latch,4,4
	.comm	dm_bufio_cache_size,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
