	.file	"extr_radix-tree.c___lookup_tag.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__lookup_tag, @function
__lookup_tag:
.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
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR 24[rsp], rsi
	mov	DWORD PTR 20[rsp], ecx
	mov	QWORD PTR 8[rsp], r8
	mov	DWORD PTR 4[rsp], eax
	test	eax, eax
	je	.L2
	lea	r15d, -1[rax]
	mov	r14, rdi
	mov	r12d, r9d
	imul	r15d, DWORD PTR RADIX_TREE_MAP_SHIFT[rip]
	mov	DWORD PTR 16[rsp], r15d
.L9:
	mov	eax, DWORD PTR 16[rsp]
	mov	ebp, 1
	mov	r8, rbx
	mov	ecx, eax
	sal	rbp, cl
	shr	r8, cl
	and	r8, QWORD PTR RADIX_TREE_MAP_MASK[rip]
	mov	r13, rbp
	mov	r15, r8
	neg	r13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	and	rbx, r13
	add	rbx, rbp
	je	.L11
	add	r15, 1
	cmp	QWORD PTR RADIX_TREE_MAP_SIZE[rip], r15
	je	.L11
.L4:
	mov	rdx, r15
	mov	esi, r12d
	mov	rdi, r14
	call	tag_get@PLT
	test	rax, rax
	je	.L25
	sub	DWORD PTR 4[rsp], 1
	je	.L26
	mov	rax, QWORD PTR 8[r14]
	mov	ecx, DWORD PTR RADIX_TREE_MAP_SHIFT[rip]
	sub	DWORD PTR 16[rsp], ecx
	mov	rdi, QWORD PTR [rax+r15*8]
	call	rcu_dereference@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 4[rsp], 0
.L2:
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [rax], rbx
	mov	eax, DWORD PTR 4[rsp]
	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
.L26:
	.cfi_restore_state
	mov	r13, QWORD PTR RADIX_TREE_MAP_MASK[rip]
	and	r13, rbx
	cmp	QWORD PTR RADIX_TREE_MAP_SIZE[rip], r13
	jbe	.L12
	add	rbx, 1
	sub	rbx, r13
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, r13
	mov	esi, r12d
	lea	rbp, [rbx+r13]
	mov	rdi, r14
	call	tag_get@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 8[r14]
	lea	rax, [rax+r13*8]
	cmp	QWORD PTR [rax], 0
	je	.L7
	mov	ecx, DWORD PTR 4[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	lea	edx, 1[rcx]
	mov	QWORD PTR [rsi+rcx*8], rax
	cmp	edx, DWORD PTR 20[rsp]
	je	.L13
	mov	DWORD PTR 4[rsp], edx
.L7:
	add	r13, 1
	cmp	QWORD PTR RADIX_TREE_MAP_SIZE[rip], r13
	ja	.L8
.L6:
	mov	rax, QWORD PTR 8[r14]
	mov	rbx, rbp
	mov	rdi, QWORD PTR [rax+r15*8]
	call	rcu_dereference@PLT
	jmp	.L2
.L13:
	mov	eax, DWORD PTR 20[rsp]
	mov	rbx, rbp
	mov	DWORD PTR 4[rsp], eax
	jmp	.L2
.L12:
	mov	rbp, rbx
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	__lookup_tag, .-__lookup_tag
	.comm	RADIX_TREE_MAP_SIZE,8,8
	.comm	RADIX_TREE_MAP_SHIFT,4,4
	.comm	RADIX_TREE_MAP_MASK,8,8
	.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_radix-tree.c___lookup_tag.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__lookup_tag, %function
__lookup_tag:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, [r0]
	sub	sp, sp, #20
	cmp	r10, #0
	mov	fp, r2
	ldr	r7, [sp, #60]
	str	r1, [sp, #12]
	str	r3, [sp, #8]
	beq	.L2
	ldr	r2, .L31
	sub	r3, r10, #1
	ldr	r2, [r2]
	str	r10, [sp, #4]
	mul	r1, r2, r3
	mov	r10, r7
	mov	r6, r0
	mov	r7, r1
	ldr	r9, .L31+4
.L9:
	ldr	r3, .L31+8
	ldr	r4, [r3]
	mov	r3, #1
	lsl	r5, r3, r7
	and	r4, r4, fp, lsr r7
	rsb	r8, r5, #0
	b	.L4
.L29:
	adds	fp, r5, r3
	add	r4, r4, #1
	beq	.L10
	ldr	r3, [r9]
	cmp	r3, r4
	beq	.L28
.L4:
	mov	r2, r4
	mov	r1, r10
	mov	r0, r6
	bl	tag_get
	cmp	r0, #0
	and	r3, r8, fp
	beq	.L29
	ldr	r3, [sp, #4]
	subs	r3, r3, #1
	str	r3, [sp, #4]
	beq	.L30
	ldr	r3, .L31
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	ldr	r0, [r2, r4, lsl #2]
	sub	r7, r7, r3
	bl	rcu_dereference
	subs	r6, r0, #0
	bne	.L9
	mov	r10, r6
.L2:
	mov	r0, r10
	ldr	r3, [sp, #56]
	str	fp, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r10, fp
	b	.L2
.L28:
	mov	r10, r0
	b	.L2
.L30:
	mov	r7, r10
	mov	r10, r3
	ldr	r3, .L31+8
	ldr	r5, .L31+4
	ldr	r9, [r3]
	ldr	r2, [r5]
	and	r9, r9, fp
	cmp	r2, r9
	bls	.L12
	add	r3, fp, #1
	str	r4, [sp, #4]
	ldr	fp, [sp, #12]
	mov	r4, r7
	ldr	r7, [sp, #8]
	sub	r8, r3, r9
.L8:
	mov	r2, r9
	mov	r1, r4
	mov	r0, r6
	bl	tag_get
	cmp	r0, #0
	add	ip, r10, #1
	add	r3, r8, r9
	beq	.L7
	ldr	r2, [r6, #4]
	ldr	r0, [r2, r9, lsl #2]
	add	r2, r2, r9, lsl #2
	cmp	r0, #0
	beq	.L7
	cmp	ip, r7
	str	r2, [fp, r10, lsl #2]
	beq	.L13
	mov	r10, ip
.L7:
	ldr	r2, [r5]
	add	r9, r9, #1
	cmp	r2, r9
	bhi	.L8
	ldr	r4, [sp, #4]
.L6:
	ldr	r2, [r6, #4]
	mov	fp, r3
	ldr	r0, [r2, r4, lsl #2]
	bl	rcu_dereference
	b	.L2
.L13:
	mov	fp, r3
	ldr	r10, [sp, #8]
	b	.L2
.L12:
	mov	r3, fp
	b	.L6
.L32:
	.align	2
.L31:
	.word	RADIX_TREE_MAP_SHIFT
	.word	RADIX_TREE_MAP_SIZE
	.word	RADIX_TREE_MAP_MASK
	.size	__lookup_tag, .-__lookup_tag
	.comm	RADIX_TREE_MAP_SIZE,4,4
	.comm	RADIX_TREE_MAP_SHIFT,4,4
	.comm	RADIX_TREE_MAP_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
