	.file	"extr_main.c_dpm_suspend.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
	.text
	.p2align 4
	.type	dpm_suspend, @function
dpm_suspend:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	rbx, dpm_list[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	rdi, r14
	call	INIT_LIST_HEAD@PLT
	lea	rdi, dpm_list_mtx[rip]
	call	mutex_lock@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	put_device@PLT
.L2:
	mov	rdi, rbx
	call	list_empty@PLT
	test	eax, eax
	jne	.L10
	mov	rdi, QWORD PTR dpm_list[rip]
	call	to_device@PLT
	mov	r15, QWORD PTR dpm_list[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	get_device@PLT
	lea	rdi, dpm_list_mtx[rip]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	mov	esi, r13d
	call	device_suspend@PLT
	lea	rdi, dpm_list_mtx[rip]
	mov	r12d, eax
	call	mutex_lock@PLT
	test	r12d, r12d
	jne	.L11
	mov	eax, DWORD PTR DPM_OFF[rip]
	mov	rdi, r15
	mov	DWORD PTR 0[rbp], eax
	call	list_empty@PLT
	test	eax, eax
	jne	.L5
	mov	rsi, r14
	mov	rdi, r15
	call	list_move@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r12d, r12d
.L4:
	mov	rsi, QWORD PTR dpm_list[rip]
	mov	rdi, r14
	call	list_splice@PLT
	lea	rdi, dpm_list_mtx[rip]
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	mov	ecx, r12d
	lea	rdx, .LC0[rip]
	mov	esi, r13d
	call	pm_dev_err@PLT
	mov	rdi, rbp
	call	put_device@PLT
	jmp	.L4
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dpm_suspend, .-dpm_suspend
	.comm	dpm_list_mtx,4,4
	.comm	dpm_list,8,8
	.comm	DPM_OFF,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_main.c_dpm_suspend.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	dpm_suspend, %function
dpm_suspend:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L13
	sub	sp, sp, #12
	mov	r9, r0
	ldr	r6, .L13+4
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	INIT_LIST_HEAD
	ldr	r0, .L13+8
	mov	r10, r6
	bl	mutex_lock
	ldr	r8, .L13+8
	ldr	fp, .L13+12
	b	.L2
.L5:
	mov	r0, r4
	bl	put_device
.L2:
	mov	r0, r10
	bl	list_empty
	cmp	r0, #0
	bne	.L10
	ldr	r0, [r6]
	bl	to_device
	mov	r4, r0
	ldr	r7, [r6]
	bl	get_device
	mov	r0, r8
	bl	mutex_unlock
	mov	r1, r9
	mov	r0, r4
	bl	device_suspend
	mov	r5, r0
	mov	r0, r8
	bl	mutex_lock
	cmp	r5, #0
	bne	.L11
	ldr	r3, [fp]
	mov	r0, r7
	str	r3, [r4]
	bl	list_empty
	cmp	r0, #0
	bne	.L5
	mov	r0, r7
	mov	r1, sp
	bl	list_move
	b	.L5
.L10:
	mov	r5, #0
.L4:
	ldr	r1, [r6]
	mov	r0, sp
	bl	list_splice
	ldr	r0, .L13+8
	bl	mutex_unlock
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r1, r9
	mov	r3, r5
	mov	r0, r4
	ldr	r2, .L13+16
	bl	pm_dev_err
	mov	r0, r4
	bl	put_device
	b	.L4
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	dpm_list
	.word	dpm_list_mtx
	.word	DPM_OFF
	.word	.LC0
	.size	dpm_suspend, .-dpm_suspend
	.comm	dpm_list_mtx,4,4
	.comm	dpm_list,4,4
	.comm	DPM_OFF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
