	.file	"extr_kern_alq.c_ald_daemon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"aldslp"
	.text
	.p2align 4
	.type	ald_daemon, @function
ald_daemon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR ald_proc[rip]
	lea	r12, ald_active[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	FIRST_THREAD_IN_PROC@PLT
	mov	ecx, DWORD PTR SHUTDOWN_PRI_FIRST[rip]
	mov	esi, DWORD PTR ald_shutdown[rip]
	xor	edx, edx
	mov	edi, DWORD PTR shutdown_pre_sync[rip]
	mov	DWORD PTR ald_thread[rip], eax
	call	EVENTHANDLER_REGISTER@PLT
	mov	DWORD PTR alq_eventhandler_tag[rip], eax
	xor	eax, eax
	call	ALD_LOCK@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rax
	call	ALQ_LOCK@PLT
	mov	rdi, rbp
	call	ald_deactivate@PLT
	xor	eax, eax
	call	ALD_UNLOCK@PLT
	mov	rdi, rbp
	call	alq_doio@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	ALQ_UNLOCK@PLT
	test	ebx, ebx
	jne	.L14
.L6:
	xor	eax, eax
	call	ALD_LOCK@PLT
.L2:
	mov	rdi, r12
	call	LIST_FIRST@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L3
	cmp	QWORD PTR ald_shutingdown[rip], 0
	je	.L15
	xor	eax, eax
	call	ALD_UNLOCK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	kproc_exit@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	wakeup_one@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR PWAIT[rip]
	xor	r8d, r8d
	mov	rdi, r12
	lea	rcx, .LC0[rip]
	lea	rsi, ald_mtx[rip]
	call	mtx_sleep@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ald_daemon, .-ald_daemon
	.comm	shutdown_pre_sync,4,4
	.comm	alq_eventhandler_tag,4,4
	.comm	ald_thread,4,4
	.comm	ald_shutingdown,8,8
	.comm	ald_shutdown,4,4
	.comm	ald_proc,4,4
	.comm	ald_mtx,4,4
	.comm	ald_active,4,4
	.comm	SHUTDOWN_PRI_FIRST,4,4
	.comm	PWAIT,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_kern_alq.c_ald_daemon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"aldslp\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ald_daemon, %function
ald_daemon:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L16
	sub	sp, sp, #8
	ldr	r0, [r3]
	bl	FIRST_THREAD_IN_PROC
	mov	ip, r0
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	ldr	r1, .L16+12
	ldr	r0, .L16+16
	str	ip, [r2]
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	EVENTHANDLER_REGISTER
	ldr	r3, .L16+20
	ldr	r7, .L16+24
	str	r0, [r3]
	ldr	r6, .L16+28
	bl	ALD_LOCK
	ldr	r10, .L16+32
	ldr	r9, .L16+36
	ldr	r8, .L16+40
	b	.L2
.L3:
	bl	ALQ_LOCK
	mov	r0, r4
	bl	ald_deactivate
	bl	ALD_UNLOCK
	mov	r0, r4
	bl	alq_doio
	mov	r5, r0
	mov	r0, r4
	bl	ALQ_UNLOCK
	cmp	r5, #0
	bne	.L14
.L6:
	bl	ALD_LOCK
.L2:
	mov	r0, r6
	bl	LIST_FIRST
	subs	r4, r0, #0
	bne	.L3
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L15
	bl	ALD_UNLOCK
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	kproc_exit
.L14:
	mov	r0, r4
	bl	wakeup_one
	b	.L6
.L15:
	str	r3, [sp]
	mov	r1, r8
	mov	r3, r9
	mov	r0, r6
	ldr	r2, [r10]
	bl	mtx_sleep
	b	.L2
.L17:
	.align	2
.L16:
	.word	ald_proc
	.word	ald_thread
	.word	SHUTDOWN_PRI_FIRST
	.word	ald_shutdown
	.word	shutdown_pre_sync
	.word	alq_eventhandler_tag
	.word	ald_shutingdown
	.word	ald_active
	.word	PWAIT
	.word	.LC0
	.word	ald_mtx
	.size	ald_daemon, .-ald_daemon
	.comm	shutdown_pre_sync,4,4
	.comm	alq_eventhandler_tag,4,4
	.comm	ald_thread,4,4
	.comm	ald_shutingdown,4,4
	.comm	ald_shutdown,4,4
	.comm	ald_proc,4,4
	.comm	ald_mtx,4,4
	.comm	ald_active,4,4
	.comm	SHUTDOWN_PRI_FIRST,4,4
	.comm	PWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
