	.file	"extr_cm4000_cs.c_terminate_monitor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"-> terminate_monitor\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Now allow last cycle of monitor!\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Delete timer\n"
.LC3:
	.string	"<- terminate_monitor\n"
	.text
	.p2align 4
	.type	terminate_monitor, @function
terminate_monitor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, .LC0[rip]
	mov	rbp, rdi
	mov	rsi, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	edi, 3
	lea	rbx, 12[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	DEBUGP@PLT
	mov	edi, DWORD PTR LOCK_MONITOR[rip]
	mov	rsi, rbx
	call	test_and_set_bit@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, eax
	call	wait_event_interruptible@PLT
	lea	rdx, .LC1[rip]
	mov	rsi, rbp
	mov	edi, 5
	call	DEBUGP@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, 25
	call	msleep@PLT
.L2:
	mov	edi, DWORD PTR LOCK_MONITOR[rip]
	mov	rsi, rbx
	call	test_bit@PLT
	test	rax, rax
	jne	.L3
	mov	rsi, rbp
	lea	rdx, .LC2[rip]
	mov	edi, 5
	call	DEBUGP@PLT
	lea	rdi, 8[rbp]
	call	del_timer_sync@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	lea	rdx, .LC3[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edi, 3
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	DEBUGP@PLT
	.cfi_endproc
.LFE0:
	.size	terminate_monitor, .-terminate_monitor
	.comm	LOCK_MONITOR,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_cm4000_cs.c_terminate_monitor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"-> terminate_monitor\012\000"
	.align	2
.LC1:
	.ascii	"Now allow last cycle of monitor!\012\000"
	.align	2
.LC2:
	.ascii	"Delete timer\012\000"
	.align	2
.LC3:
	.ascii	"<- terminate_monitor\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminate_monitor, %function
terminate_monitor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r4, .L6
	ldr	r2, .L6+4
	mov	r1, r0
	add	r5, r6, #8
	mov	r0, #3
	bl	DEBUGP
	mov	r1, r5
	ldr	r0, [r4]
	ldr	r7, [r6, #12]
	bl	test_and_set_bit
	mov	r1, r0
	mov	r0, r7
	bl	wait_event_interruptible
	mov	r1, r6
	ldr	r2, .L6+8
	mov	r0, #5
	bl	DEBUGP
	b	.L2
.L3:
	mov	r0, #25
	bl	msleep
.L2:
	mov	r1, r5
	ldr	r0, [r4]
	bl	test_bit
	cmp	r0, #0
	bne	.L3
	mov	r1, r6
	ldr	r2, .L6+12
	mov	r0, #5
	bl	DEBUGP
	add	r0, r6, #4
	bl	del_timer_sync
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r0, #3
	ldr	r2, .L6+16
	b	DEBUGP
.L7:
	.align	2
.L6:
	.word	LOCK_MONITOR
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	terminate_monitor, .-terminate_monitor
	.comm	LOCK_MONITOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
