	.file	"extr_ciss.c_ciss_notify_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"idle"
.LC1:
	.string	"cr null"
	.text
	.p2align 4
	.type	ciss_notify_thread, @function
ciss_notify_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, r13
	lea	r12, 16[rbx]
	call	mtx_lock@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	STAILQ_EMPTY@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR CISS_FLAG_THREAD_SHUT[rip], eax
	je	.L15
.L3:
	mov	QWORD PTR 8[rbx], 0
	lea	rdi, 8[rbx]
	call	wakeup@PLT
	mov	rdi, r13
	call	mtx_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	edi, edi
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	kproc_exit@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edx, DWORD PTR PUSER[rip]
	xor	r8d, r8d
	mov	rcx, r14
	mov	rsi, r13
	mov	rdi, r12
	call	msleep@PLT
.L2:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR CISS_FLAG_THREAD_SHUT[rip], eax
	jne	.L3
	mov	rdi, rbx
	call	ciss_dequeue_notify@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L16
.L4:
	mov	rsi, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rsi]
	cmp	eax, 129
	je	.L5
	cmp	eax, 130
	je	.L6
	cmp	eax, 128
	je	.L17
.L8:
	mov	rdi, rbp
	call	ciss_release_request@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	call	ciss_notify_logical@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	ciss_notify_physical@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbx
	call	ciss_notify_hotplug@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC1[rip]
	call	panic@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ciss_notify_thread, .-ciss_notify_thread
	.comm	PUSER,4,4
	.comm	CISS_FLAG_THREAD_SHUT,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_ciss.c_ciss_notify_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"idle\000"
	.align	2
.LC1:
	.ascii	"cr null\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ciss_notify_thread, %function
ciss_notify_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r8, r0, #4
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, r8
	bl	mtx_lock
	ldr	r6, .L18
	ldr	r10, .L18+4
	ldr	r9, .L18+8
	ldr	fp, .L18+12
	add	r7, r5, #12
.L9:
	mov	r0, r7
	bl	STAILQ_EMPTY
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r5]
	ldr	r2, [r6]
	ands	r3, r3, r2
	beq	.L15
.L3:
	mov	r0, r5
	mov	r4, #0
	str	r4, [r0, #8]!
	bl	wakeup
	mov	r0, r8
	bl	mtx_unlock
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	kproc_exit
.L15:
	str	r3, [sp]
	mov	r1, r8
	mov	r3, r9
	mov	r0, r7
	ldr	r2, [r10]
	bl	msleep
.L2:
	ldr	r2, [r5]
	ldr	r3, [r6]
	tst	r2, r3
	bne	.L3
	mov	r0, r5
	bl	ciss_dequeue_notify
	subs	r4, r0, #0
	beq	.L16
.L4:
	ldr	r1, [r4]
	ldr	r3, [r1]
	cmp	r3, #129
	beq	.L5
	cmp	r3, #130
	beq	.L6
	cmp	r3, #128
	beq	.L17
.L8:
	mov	r0, r4
	bl	ciss_release_request
	b	.L9
.L5:
	mov	r0, r5
	bl	ciss_notify_logical
	b	.L8
.L17:
	mov	r0, r5
	bl	ciss_notify_physical
	b	.L8
.L6:
	mov	r0, r5
	bl	ciss_notify_hotplug
	b	.L8
.L16:
	mov	r0, fp
	bl	panic
	b	.L4
.L19:
	.align	2
.L18:
	.word	CISS_FLAG_THREAD_SHUT
	.word	PUSER
	.word	.LC0
	.word	.LC1
	.size	ciss_notify_thread, .-ciss_notify_thread
	.comm	PUSER,4,4
	.comm	CISS_FLAG_THREAD_SHUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
