	.file	"extr_epoch_test.c_testloop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"epoch start wait"
.LC1:
	.string	"W"
	.text
	.p2align 4
	.type	testloop, @function
testloop:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, state_mtx[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mtx_lock@PLT
	mov	eax, DWORD PTR state_flags[rip]
	test	DWORD PTR ET_EXITING[rip], eax
	jne	.L2
	lea	rbx, state_mtx[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbx
	call	mtx_unlock@PLT
	mov	rdi, rbp
	call	epoch_testcase2@PLT
	mov	esi, 500
	lea	rdi, .LC1[rip]
	call	pause@PLT
	mov	rdi, rbp
	call	epoch_testcase1@PLT
	mov	rdi, rbx
	call	mtx_lock@PLT
	mov	eax, DWORD PTR state_flags[rip]
	test	DWORD PTR ET_EXITING[rip], eax
	jne	.L2
.L3:
	xor	r8d, r8d
	lea	rcx, .LC0[rip]
	xor	edx, edx
	mov	rsi, rbx
	mov	rdi, rbx
	call	msleep@PLT
	mov	eax, DWORD PTR state_flags[rip]
	test	DWORD PTR ET_EXITING[rip], eax
	je	.L8
.L2:
	lea	rdi, state_mtx[rip]
	call	mtx_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	kthread_exit@PLT
	.cfi_endproc
.LFE0:
	.size	testloop, .-testloop
	.comm	state_mtx,4,4
	.comm	state_flags,4,4
	.comm	ET_EXITING,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_epoch_test.c_testloop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"epoch start wait\000"
	.align	2
.LC1:
	.ascii	"W\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	testloop, %function
testloop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r7, .L9
	ldr	r6, .L9+4
	mov	r5, r0
	sub	sp, sp, #12
	ldr	r0, .L9+8
	bl	mtx_lock
	ldr	r2, [r7]
	ldr	r3, [r6]
	tst	r2, r3
	bne	.L2
	ldr	r8, .L9+12
	ldr	r4, .L9+8
	ldr	r9, .L9+16
	b	.L3
.L8:
	mov	r0, r4
	bl	mtx_unlock
	mov	r0, r5
	bl	epoch_testcase2
	mov	r1, #500
	mov	r0, r9
	bl	pause
	mov	r0, r5
	bl	epoch_testcase1
	mov	r0, r4
	bl	mtx_lock
	ldr	r2, [r7]
	ldr	r3, [r6]
	tst	r2, r3
	bne	.L2
.L3:
	mov	r2, #0
	mov	r3, r8
	str	r2, [sp]
	mov	r1, r4
	ldr	r0, .L9+8
	bl	msleep
	ldr	r2, [r7]
	ldr	r3, [r6]
	tst	r2, r3
	beq	.L8
.L2:
	ldr	r0, .L9+8
	bl	mtx_unlock
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	kthread_exit
.L10:
	.align	2
.L9:
	.word	state_flags
	.word	ET_EXITING
	.word	state_mtx
	.word	.LC0
	.word	.LC1
	.size	testloop, .-testloop
	.comm	state_mtx,4,4
	.comm	state_flags,4,4
	.comm	ET_EXITING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
