	.file	"extr_aacraid.c_aac_daemon.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.type	aac_daemon, @function
aac_daemon:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	lea	r12, 4[rbx]
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rsi, QWORD PTR HBA_FLAGS_DBG_FUNCTION_ENTRY_B[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	call	fwprintf@PLT
	mov	rdi, r12
	call	mtx_lock@PLT
	mov	rdi, rbp
	call	getmicrotime@PLT
	lea	rsi, 8[rsp]
	mov	rdi, rbx
	call	aacraid_alloc_command@PLT
	test	eax, eax
	je	.L6
.L2:
	mov	rdi, r12
	call	mtx_unlock@PLT
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], 1800
	mov	QWORD PTR 24[rsp], 0
	call	tvtohz@PLT
	mov	rsi, rbx
	lea	rdi, aac_daemon[rip]
	mov	edx, eax
	call	timeout@PLT
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR time_uptime[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdx, QWORD PTR 24[rdi]
	mov	DWORD PTR 16[rdi], eax
	mov	eax, DWORD PTR AAC_CMD_WAIT[rip]
	or	DWORD PTR [rdi], eax
	mov	eax, DWORD PTR AAC_FIBSTATE_HOSTOWNED[rip]
	or	eax, DWORD PTR AAC_FIBSTATE_INITIALISED[rip]
	mov	QWORD PTR 8[rdi], 0
	or	eax, DWORD PTR AAC_FIBSTATE_EMPTY[rip]
	or	eax, DWORD PTR AAC_FIBSTATE_FROMHOST[rip]
	mov	DWORD PTR 8[rdx], 8
	or	eax, DWORD PTR AAC_FIBSTATE_REXPECTED[rip]
	or	eax, DWORD PTR AAC_FIBSTATE_NORM[rip]
	or	eax, DWORD PTR AAC_FIBSTATE_ASYNC[rip]
	or	eax, DWORD PTR AAC_FIBSTATE_FAST_RESPONSE[rip]
	mov	DWORD PTR 12[rdx], eax
	mov	eax, DWORD PTR SendHostTime[rip]
	mov	DWORD PTR 16[rdx], eax
	mov	rax, QWORD PTR [rdx]
	mov	edx, DWORD PTR 16[rsp]
	mov	DWORD PTR [rax], edx
	xor	edx, edx
	call	aacraid_map_command_sg@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	aacraid_release_command@PLT
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aac_daemon, .-aac_daemon
	.comm	time_uptime,4,4
	.comm	hz,4,4
	.comm	SendHostTime,4,4
	.comm	MA_OWNED,4,4
	.comm	HBA_FLAGS_DBG_FUNCTION_ENTRY_B,8,8
	.comm	AAC_FIBSTATE_REXPECTED,4,4
	.comm	AAC_FIBSTATE_NORM,4,4
	.comm	AAC_FIBSTATE_INITIALISED,4,4
	.comm	AAC_FIBSTATE_HOSTOWNED,4,4
	.comm	AAC_FIBSTATE_FROMHOST,4,4
	.comm	AAC_FIBSTATE_FAST_RESPONSE,4,4
	.comm	AAC_FIBSTATE_EMPTY,4,4
	.comm	AAC_FIBSTATE_ASYNC,4,4
	.comm	AAC_CMD_WAIT,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_aacraid.c_aac_daemon.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aac_daemon, %function
aac_daemon:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L8
	sub	sp, sp, #20
	ldr	r1, [r3]
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	add	r5, r0, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	fwprintf
	mov	r0, r5
	bl	mtx_lock
	add	r0, sp, #4
	bl	getmicrotime
	mov	r0, r4
	mov	r1, sp
	bl	aacraid_alloc_command
	subs	r3, r0, #0
	beq	.L6
.L2:
	mov	r0, r5
	bl	mtx_unlock
	mov	r2, #0
	ldr	r3, .L8+12
	add	r0, sp, #4
	str	r3, [sp, #4]
	str	r2, [sp, #8]
	bl	tvtohz
	mov	r1, r4
	mov	r2, r0
	ldr	r0, .L8+16
	bl	timeout
	ldr	r3, .L8+4
	str	r0, [r4]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r1, #8
	ldr	r2, .L8+20
	ldr	r0, .L8+24
	ldr	ip, .L8+28
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	lr, .L8+32
	ldr	ip, [ip]
	ldr	lr, [lr]
	orr	r2, r2, r0
	ldr	r0, .L8+36
	orr	r2, r2, ip
	ldr	ip, .L8+40
	ldr	r0, [r0]
	orr	r2, r2, lr
	ldr	lr, .L8+44
	ldr	ip, [ip]
	ldr	lr, [lr]
	orr	r2, r2, r0
	orr	r2, r2, ip
	orr	r2, r2, lr
	ldr	lr, .L8+48
	ldr	ip, .L8+52
	ldr	r0, [sp]
	ldr	lr, [lr]
	ldr	r6, .L8+56
	ldr	ip, [ip]
	ldr	r7, [r6]
	str	lr, [r0, #8]
	ldr	lr, [r0]
	orr	r2, r2, ip
	ldr	r6, .L8+60
	ldr	ip, [r0, #12]
	orr	lr, lr, r7
	str	r3, [r0, #4]
	ldr	r6, [r6]
	str	lr, [r0]
	str	r2, [ip, #8]
	str	r1, [ip, #4]
	ldr	r2, [ip]
	ldr	r1, [sp, #4]
	str	r6, [ip, #12]
	str	r1, [r2]
	mov	r2, r3
	mov	r1, r3
	bl	aacraid_map_command_sg
	ldr	r0, [sp]
	bl	aacraid_release_command
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	HBA_FLAGS_DBG_FUNCTION_ENTRY_B
	.word	.LC1
	.word	.LC0
	.word	1800
	.word	aac_daemon
	.word	AAC_FIBSTATE_HOSTOWNED
	.word	AAC_FIBSTATE_INITIALISED
	.word	AAC_FIBSTATE_EMPTY
	.word	AAC_FIBSTATE_FROMHOST
	.word	AAC_FIBSTATE_REXPECTED
	.word	AAC_FIBSTATE_NORM
	.word	AAC_FIBSTATE_ASYNC
	.word	time_uptime
	.word	AAC_FIBSTATE_FAST_RESPONSE
	.word	AAC_CMD_WAIT
	.word	SendHostTime
	.size	aac_daemon, .-aac_daemon
	.comm	time_uptime,4,4
	.comm	hz,4,4
	.comm	SendHostTime,4,4
	.comm	MA_OWNED,4,4
	.comm	HBA_FLAGS_DBG_FUNCTION_ENTRY_B,4,4
	.comm	AAC_FIBSTATE_REXPECTED,4,4
	.comm	AAC_FIBSTATE_NORM,4,4
	.comm	AAC_FIBSTATE_INITIALISED,4,4
	.comm	AAC_FIBSTATE_HOSTOWNED,4,4
	.comm	AAC_FIBSTATE_FROMHOST,4,4
	.comm	AAC_FIBSTATE_FAST_RESPONSE,4,4
	.comm	AAC_FIBSTATE_EMPTY,4,4
	.comm	AAC_FIBSTATE_ASYNC,4,4
	.comm	AAC_CMD_WAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
