	.file	"extr_rcutorture.c_rcutorture_loop_extend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rcutorture_loop_extend, @function
rcutorture_loop_extend:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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
	call	rcutorture_extend_mask_max@PLT
	xor	edi, edi
	mov	ebx, eax
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	lea	eax, -1[rbx]
	test	eax, ebx
	jne	.L11
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L11:
	.cfi_restore_state
	mov	rdi, r12
	call	torture_random@PLT
	mov	r14d, eax
	sar	eax, 3
	sar	r14d, 6
	or	eax, r14d
	and	eax, DWORD PTR RCUTORTURE_RDR_MAX_LOOPS[rip]
	mov	r14d, eax
	js	.L2
	cdqe
	mov	rbx, r13
	lea	r15, 4[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r12
	call	rcutorture_extend_mask@PLT
	mov	rcx, rbx
	mov	rdx, r12
	mov	rdi, rbp
	mov	esi, eax
	add	rbx, 4
	call	rcutorture_one_extend@PLT
	cmp	rbx, r15
	jne	.L4
	add	r14d, 1
	movsx	r14, r14d
	lea	r13, 0[r13+r14*4]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rcutorture_loop_extend, .-rcutorture_loop_extend
	.comm	RCUTORTURE_RDR_MAX_LOOPS,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_rcutorture.c_rcutorture_loop_extend.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcutorture_loop_extend, %function
rcutorture_loop_extend:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r7, r2
	bl	rcutorture_extend_mask_max
	ldr	r3, [r5]
	mov	r4, r0
	clz	r0, r3
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	sub	r3, r4, #1
	tst	r3, r4
	bne	.L11
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r0, r6
	bl	torture_random
	ldr	r2, .L12
	asr	r3, r0, #3
	ldr	r2, [r2]
	orr	r0, r3, r0, asr #6
	ands	r0, r0, r2
	bmi	.L2
	mov	r4, r7
	add	r9, r7, #4
	add	r9, r9, r0, lsl #2
	lsl	r8, r0, #2
.L4:
	mov	r1, r6
	ldr	r0, [r5]
	bl	rcutorture_extend_mask
	mov	r3, r4
	mov	r1, r0
	mov	r2, r6
	mov	r0, r5
	add	r4, r4, #4
	bl	rcutorture_one_extend
	cmp	r4, r9
	bne	.L4
	add	r0, r8, #4
	add	r7, r7, r0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	RCUTORTURE_RDR_MAX_LOOPS
	.size	rcutorture_loop_extend, .-rcutorture_loop_extend
	.comm	RCUTORTURE_RDR_MAX_LOOPS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
