	.file	"extr_cache.c_sunrpc_cache_lookup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sunrpc_cache_lookup
	.type	sunrpc_cache_lookup, @function
sunrpc_cache_lookup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rdx, edx
	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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 32[rdi]
	lea	r15, [rax+rdx*8]
	call	read_lock@PLT
	mov	r12, QWORD PTR [r15]
	mov	rbx, r15
	test	r12, r12
	jne	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, QWORD PTR [rbx]
	mov	r12, QWORD PTR [rbx]
	test	r12, r12
	je	.L6
.L2:
	mov	rsi, r14
	mov	rdi, r12
	call	[QWORD PTR 8[rbp]]
	test	rax, rax
	je	.L5
	mov	rsi, r12
	mov	rdi, rbp
	call	cache_is_expired@PLT
	test	rax, rax
	je	.L25
.L6:
	mov	rdi, rbp
	call	read_unlock@PLT
	xor	eax, eax
	call	[QWORD PTR 24[rbp]]
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	cache_init@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	[QWORD PTR 16[rbp]]
	mov	rdi, rbp
	call	write_lock@PLT
	mov	r13, QWORD PTR [r15]
	test	r13, r13
	je	.L7
	mov	rbx, r15
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rbx, QWORD PTR [rbx]
	mov	r13, QWORD PTR [rbx]
	test	r13, r13
	je	.L26
.L10:
	mov	rsi, r14
	mov	rdi, r13
	call	[QWORD PTR 8[rbp]]
	test	rax, rax
	je	.L8
	mov	rsi, r13
	mov	rdi, rbp
	call	cache_is_expired@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r12
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR 4[rbp]
	mov	QWORD PTR 0[r13], 0
	mov	rdx, QWORD PTR [r15]
	mov	QWORD PTR [r12], rdx
	mov	QWORD PTR [r15], r12
	mov	DWORD PTR 4[rbp], eax
	call	cache_get@PLT
	mov	rdi, rbp
	call	write_unlock@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	cache_put@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L26:
	.cfi_restore_state
	mov	r13, QWORD PTR [r15]
.L7:
	mov	QWORD PTR [r12], r13
	mov	rdi, r12
	mov	QWORD PTR [r15], r12
	add	DWORD PTR 4[rbp], 1
	call	cache_get@PLT
	mov	rdi, rbp
	call	write_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, r12
	call	cache_get@PLT
	mov	rdi, rbp
	call	read_unlock@PLT
	jmp	.L1
.L9:
	mov	rdi, r13
	call	cache_get@PLT
	mov	rdi, rbp
	call	write_unlock@PLT
	mov	rdi, r12
	mov	rsi, rbp
	mov	r12, r13
	call	cache_put@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sunrpc_cache_lookup, .-sunrpc_cache_lookup
	.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_cache.c_sunrpc_cache_lookup.c"
	.text
	.align	2
	.global	sunrpc_cache_lookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	sunrpc_cache_lookup, %function
sunrpc_cache_lookup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r2
	ldr	r10, [r0, #20]
	mov	r5, r0
	mov	r8, r1
	bl	read_lock
	ldr	r4, [r10, r9, lsl #2]
	add	r7, r10, r9, lsl #2
	cmp	r4, #0
	movne	r6, r7
	bne	.L2
	b	.L6
.L5:
	ldr	r6, [r6]
	ldr	r4, [r6]
	cmp	r4, #0
	beq	.L6
.L2:
	mov	r1, r8
	mov	r0, r4
	ldr	r3, [r5, #8]
	blx	r3
	cmp	r0, #0
	beq	.L5
	mov	r1, r4
	mov	r0, r5
	bl	cache_is_expired
	cmp	r0, #0
	beq	.L23
.L6:
	mov	r0, r5
	bl	read_unlock
	ldr	r3, [r5, #16]
	blx	r3
	subs	r4, r0, #0
	beq	.L1
	bl	cache_init
	mov	r1, r8
	ldr	r3, [r5, #12]
	mov	r0, r4
	blx	r3
	mov	r0, r5
	bl	write_lock
	ldr	r6, [r10, r9, lsl #2]
	cmp	r6, #0
	bne	.L10
	b	.L7
.L8:
	ldr	r7, [r7]
	ldr	r6, [r7]
	cmp	r6, #0
	beq	.L24
.L10:
	mov	r1, r8
	mov	r0, r6
	ldr	r3, [r5, #8]
	blx	r3
	cmp	r0, #0
	beq	.L8
	mov	r1, r6
	mov	r0, r5
	bl	cache_is_expired
	cmp	r0, #0
	beq	.L9
	mov	r3, #0
	ldr	r2, [r6]
	mov	r0, r4
	str	r2, [r7]
	str	r3, [r6]
	ldr	r2, [r10, r9, lsl #2]
	ldr	r3, [r5, #4]
	str	r2, [r4]
	str	r4, [r10, r9, lsl #2]
	str	r3, [r5, #4]
	bl	cache_get
	mov	r0, r5
	bl	write_unlock
	mov	r1, r5
	mov	r0, r6
	bl	cache_put
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	ldr	r6, [r10, r9, lsl #2]
.L7:
	ldr	r3, [r5, #4]
	mov	r0, r4
	add	r3, r3, #1
	str	r6, [r4]
	str	r4, [r10, r9, lsl #2]
	str	r3, [r5, #4]
	bl	cache_get
	mov	r0, r5
	bl	write_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	mov	r0, r4
	bl	cache_get
	mov	r0, r5
	bl	read_unlock
	b	.L1
.L9:
	mov	r0, r6
	bl	cache_get
	mov	r0, r5
	bl	write_unlock
	mov	r0, r4
	mov	r1, r5
	bl	cache_put
	mov	r4, r6
	b	.L1
	.size	sunrpc_cache_lookup, .-sunrpc_cache_lookup
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
