	.file	"extr_aachba.c_aac_start_stop.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aac_start_stop, @function
aac_start_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rdi]
	and	eax, DWORD PTR AAC_OPTION_POWER_MANAGEMENT[rip]
	je	.L14
	cmp	QWORD PTR [rdi], 0
	je	.L4
.L12:
	mov	r12d, DWORD PTR SCSI_MLQUEUE_HOST_BUSY[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rsi, rbx
	call	aac_fib_alloc_tag@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	aac_fib_init@PLT
	mov	rdi, rbp
	call	fib_data@PLT
	mov	edi, DWORD PTR VM_ContainerConfig[rip]
	mov	r12, rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR CT_POWER_MANAGEMENT[rip]
	mov	QWORD PTR 32[r12], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR 24[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	test	BYTE PTR 16[rax], 1
	jne	.L15
	mov	edi, DWORD PTR CT_PM_STOP_UNIT[rip]
	call	cpu_to_le32@PLT
.L6:
	mov	QWORD PTR 16[r12], rax
	mov	rdi, r13
	call	sdev_id@PLT
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[r12], rax
	xor	eax, eax
	test	BYTE PTR 4[rdx], 1
	jne	.L16
.L7:
	mov	QWORD PTR [r12], rax
	mov	eax, DWORD PTR AAC_OWNER_FIRMWARE[rip]
	xor	r8d, r8d
	mov	rsi, rbp
	push	rbx
	.cfi_def_cfa_offset 56
	mov	ecx, DWORD PTR FsaNormal[rip]
	mov	edx, 40
	xor	r12d, r12d
	mov	DWORD PTR 16[rbx], eax
	mov	rax, QWORD PTR aac_start_stop_callback[rip]
	mov	r9d, 1
	mov	edi, DWORD PTR ContainerCommand[rip]
	push	rax
	.cfi_def_cfa_offset 64
	call	aac_fib_send@PLT
	add	eax, DWORD PTR EINPROGRESS[rip]
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	je	.L1
	mov	rdi, rbp
	call	aac_fib_complete@PLT
	mov	rdi, rbp
	call	aac_fib_free@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, DWORD PTR COMMAND_COMPLETE[rip]
	mov	r12d, eax
	mov	eax, DWORD PTR DID_OK[rip]
	mov	rdi, rbx
	sal	edx, 8
	sal	eax, 16
	or	eax, edx
	or	eax, DWORD PTR SAM_STAT_GOOD[rip]
	mov	DWORD PTR [rbx], eax
	call	[QWORD PTR 24[rbx]]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR CT_PM_START_UNIT[rip]
	call	cpu_to_le32@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR CT_PM_UNIT_IMMEDIATE[rip]
	call	cpu_to_le32@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	aac_start_stop, .-aac_start_stop
	.comm	aac_start_stop_callback,8,8
	.comm	VM_ContainerConfig,4,4
	.comm	SCSI_MLQUEUE_HOST_BUSY,4,4
	.comm	SAM_STAT_GOOD,4,4
	.comm	FsaNormal,4,4
	.comm	EINPROGRESS,4,4
	.comm	DID_OK,4,4
	.comm	ContainerCommand,4,4
	.comm	CT_POWER_MANAGEMENT,4,4
	.comm	CT_PM_UNIT_IMMEDIATE,4,4
	.comm	CT_PM_STOP_UNIT,4,4
	.comm	CT_PM_START_UNIT,4,4
	.comm	COMMAND_COMPLETE,4,4
	.comm	AAC_OWNER_FIRMWARE,4,4
	.comm	AAC_OPTION_POWER_MANAGEMENT,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_aachba.c_aac_start_stop.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aac_start_stop, %function
aac_start_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r0, #16]
	ldr	r3, .L14
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r5, r0
	ldr	r4, [r2, #4]
	sub	sp, sp, #16
	ands	r4, r4, r3
	beq	.L12
	ldr	r4, [r2]
	cmp	r4, #0
	beq	.L4
.L10:
	ldr	r3, .L14+4
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r2
	mov	r1, r5
	bl	aac_fib_alloc_tag
	mov	r7, r0
	bl	aac_fib_init
	mov	r0, r7
	bl	fib_data
	ldr	r3, .L14+8
	mov	r6, r0
	ldr	r0, [r3]
	bl	cpu_to_le32
	ldr	r3, .L14+12
	str	r0, [r6, #16]
	ldr	r0, [r3]
	bl	cpu_to_le32
	ldr	r3, [r5, #4]
	str	r0, [r6, #12]
	ldr	r3, [r3, #16]
	tst	r3, #1
	ldrne	r3, .L14+16
	ldreq	r3, .L14+20
	ldr	r0, [r3]
	bl	cpu_to_le32
	str	r0, [r6, #8]
	mov	r0, r8
	bl	sdev_id
	bl	cpu_to_le32
	ldr	r3, [r5, #4]
	str	r0, [r6, #4]
	ldr	r3, [r3, #4]
	ands	r3, r3, #1
	bne	.L13
.L7:
	mov	r0, #1
	mov	r1, #0
	ldr	ip, .L14+24
	ldr	r2, .L14+28
	str	r3, [r6]
	ldr	r3, [ip]
	ldr	ip, [r2]
	str	r5, [sp, #12]
	str	r3, [r5, #8]
	stmib	sp, {r0, ip}
	ldr	r2, .L14+32
	ldr	r3, .L14+36
	str	r1, [sp]
	ldr	r3, [r3]
	ldr	r0, [r2]
	mov	r1, r7
	mov	r2, #20
	bl	aac_fib_send
	ldr	r3, .L14+40
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L1
	mov	r0, r7
	bl	aac_fib_complete
	mov	r0, r7
	bl	aac_fib_free
	b	.L10
.L12:
	ldr	r3, .L14+44
	ldr	r1, .L14+48
	ldr	r3, [r3]
	ldr	r2, .L14+52
	ldr	r1, [r1]
	ldr	r2, [r2]
	lsl	r3, r3, #8
	orr	r3, r3, r1, lsl #16
	orr	r3, r3, r2
	str	r3, [r0]
	ldr	r3, [r0, #12]
	blx	r3
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, .L14+56
	ldr	r0, [r3]
	bl	cpu_to_le32
	mov	r3, r0
	b	.L7
.L15:
	.align	2
.L14:
	.word	AAC_OPTION_POWER_MANAGEMENT
	.word	SCSI_MLQUEUE_HOST_BUSY
	.word	VM_ContainerConfig
	.word	CT_POWER_MANAGEMENT
	.word	CT_PM_START_UNIT
	.word	CT_PM_STOP_UNIT
	.word	AAC_OWNER_FIRMWARE
	.word	aac_start_stop_callback
	.word	ContainerCommand
	.word	FsaNormal
	.word	EINPROGRESS
	.word	COMMAND_COMPLETE
	.word	DID_OK
	.word	SAM_STAT_GOOD
	.word	CT_PM_UNIT_IMMEDIATE
	.size	aac_start_stop, .-aac_start_stop
	.comm	aac_start_stop_callback,4,4
	.comm	VM_ContainerConfig,4,4
	.comm	SCSI_MLQUEUE_HOST_BUSY,4,4
	.comm	SAM_STAT_GOOD,4,4
	.comm	FsaNormal,4,4
	.comm	EINPROGRESS,4,4
	.comm	DID_OK,4,4
	.comm	ContainerCommand,4,4
	.comm	CT_POWER_MANAGEMENT,4,4
	.comm	CT_PM_UNIT_IMMEDIATE,4,4
	.comm	CT_PM_STOP_UNIT,4,4
	.comm	CT_PM_START_UNIT,4,4
	.comm	COMMAND_COMPLETE,4,4
	.comm	AAC_OWNER_FIRMWARE,4,4
	.comm	AAC_OPTION_POWER_MANAGEMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
