	.file	"extr_runtime.c___pm_runtime_set_status.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"runtime PM trying to activate child device %s but parent (%s) is not active\n"
	.text
	.p2align 4
	.globl	__pm_runtime_set_status
	.type	__pm_runtime_set_status, @function
__pm_runtime_set_status:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	DWORD PTR RPM_ACTIVE[rip], esi
	je	.L2
	cmp	DWORD PTR RPM_SUSPENDED[rip], esi
	je	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.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
.L2:
	.cfi_restore_state
	lea	r13, 4[rbp]
	mov	r14, QWORD PTR 32[rbp]
	mov	rdi, r13
	call	spin_lock_irq@PLT
	cmp	QWORD PTR 8[rbp], 0
	mov	rax, QWORD PTR 24[rbp]
	je	.L4
.L5:
	add	rax, 1
	mov	rdi, r13
	mov	QWORD PTR 24[rbp], rax
	call	spin_unlock_irq@PLT
.L7:
	cmp	DWORD PTR RPM_ACTIVE[rip], ebx
	je	.L37
	mov	rdi, r13
	call	spin_lock_irq@PLT
	cmp	DWORD PTR 0[rbp], ebx
	je	.L23
	test	r14, r14
	je	.L23
	cmp	ebx, DWORD PTR RPM_SUSPENDED[rip]
	je	.L22
	xor	r12d, r12d
.L11:
	mov	esi, DWORD PTR SINGLE_DEPTH_NESTING[rip]
	lea	r15, 4[r14]
	mov	rdi, r15
	call	spin_lock_nested@PLT
	cmp	QWORD PTR 24[r14], 0
	je	.L38
.L14:
	mov	eax, DWORD PTR RPM_SUSPENDED[rip]
	cmp	DWORD PTR 0[rbp], eax
	je	.L39
.L15:
	mov	rdi, r15
	call	spin_unlock@PLT
	test	r12d, r12d
	jne	.L40
	mov	rdi, rbp
	mov	esi, ebx
	call	__update_runtime_status@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, r13
	call	spin_unlock_irq@PLT
.L17:
	cmp	DWORD PTR RPM_SUSPENDED[rip], ebx
	je	.L41
.L18:
	mov	rdi, rbp
	call	pm_runtime_enable@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	test	rax, rax
	jne	.L5
	mov	r12d, DWORD PTR EAGAIN[rip]
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	test	r12d, r12d
	je	.L7
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR 20[r14]
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR RPM_ACTIVE[rip]
	cmp	DWORD PTR [r14], eax
	je	.L14
	mov	rdi, r14
	call	dev_name@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	dev_name@PLT
	mov	ecx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, ebx
	mov	rdi, rbp
	xor	r12d, r12d
	call	__update_runtime_status@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L37:
	xor	eax, eax
	call	device_links_read_lock@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	rpm_get_suppliers@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L42
	mov	edi, r15d
	call	device_links_read_unlock@PLT
	mov	rdi, r13
	call	spin_lock_irq@PLT
	cmp	DWORD PTR 0[rbp], ebx
	je	.L23
	test	r14, r14
	je	.L23
.L24:
	cmp	DWORD PTR RPM_SUSPENDED[rip], ebx
	jne	.L11
	xor	edx, edx
	lea	rdi, 16[r14]
	mov	esi, -1
	call	atomic_add_unless@PLT
	mov	edx, DWORD PTR 20[r14]
	mov	esi, ebx
	mov	rdi, rbp
	test	edx, edx
	sete	r15b
	call	__update_runtime_status@PLT
	test	r12d, r12d
	je	.L12
.L13:
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	test	r15b, r15b
	je	.L17
	mov	rdi, r14
	call	pm_request_idle@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L41:
	xor	eax, eax
	call	device_links_read_lock@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	rpm_put_suppliers@PLT
	mov	edi, r13d
	call	device_links_read_unlock@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r13
	mov	ebx, DWORD PTR RPM_SUSPENDED[rip]
	call	spin_unlock_irq@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, r15d
	mov	ebx, DWORD PTR RPM_SUSPENDED[rip]
	call	device_links_read_unlock@PLT
	mov	rdi, r13
	call	spin_lock_irq@PLT
	cmp	DWORD PTR 0[rbp], ebx
	je	.L10
	test	r14, r14
	jne	.L24
.L10:
	mov	rdi, rbp
	mov	esi, ebx
	call	__update_runtime_status@PLT
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L39:
	lea	rdi, 16[r14]
	call	atomic_inc@PLT
	jmp	.L15
.L22:
	or	esi, -1
	lea	rdi, 16[r14]
	xor	edx, edx
	call	atomic_add_unless@PLT
	cmp	DWORD PTR 20[r14], 0
	mov	esi, ebx
	mov	rdi, rbp
	sete	r15b
	call	__update_runtime_status@PLT
.L12:
	mov	QWORD PTR 8[rbp], 0
	xor	r12d, r12d
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	__pm_runtime_set_status, .-__pm_runtime_set_status
	.comm	SINGLE_DEPTH_NESTING,4,4
	.comm	RPM_SUSPENDED,4,4
	.comm	RPM_ACTIVE,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	EAGAIN,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_runtime.c___pm_runtime_set_status.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"runtime PM trying to activate child device %s but p"
	.ascii	"arent (%s) is not active\012\000"
	.text
	.align	2
	.global	__pm_runtime_set_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	__pm_runtime_set_status, %function
__pm_runtime_set_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L44
	mov	r5, r1
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r1
	beq	.L2
	ldr	r10, .L44+4
	ldr	r3, [r10]
	cmp	r3, r1
	beq	.L2
	ldr	r3, .L44+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	add	r7, r4, #4
	mov	r0, r7
	ldr	r9, [r4, #24]
	bl	spin_lock_irq
	ldr	r3, [r4, #8]
	cmp	r3, #0
	ldr	r3, [r4, #20]
	beq	.L4
.L5:
	add	r3, r3, #1
	mov	r0, r7
	str	r3, [r4, #20]
	bl	spin_unlock_irq
.L7:
	ldr	r3, [r8]
	cmp	r3, r5
	beq	.L38
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r6, [r4]
	cmp	r9, #0
	cmpne	r6, r5
	moveq	r6, #1
	movne	r6, #0
	beq	.L23
	ldr	r10, .L44+4
	ldr	r3, [r10]
	cmp	r5, r3
	beq	.L22
.L11:
	ldr	r3, .L44+12
	add	fp, r9, #4
	ldr	r1, [r3]
	mov	r0, fp
	bl	spin_lock_nested
	ldr	r3, [r9, #20]
	cmp	r3, #0
	beq	.L39
.L14:
	ldr	r2, [r4]
	ldr	r3, [r10]
	cmp	r2, r3
	beq	.L40
.L15:
	mov	r0, fp
	bl	spin_unlock
	cmp	r6, #0
	bne	.L41
	mov	r1, r5
	mov	r0, r4
	bl	__update_runtime_status
	mov	r0, r7
	str	r6, [r4, #8]
	bl	spin_unlock_irq
.L17:
	ldr	r3, [r10]
	cmp	r3, r5
	beq	.L42
.L18:
	mov	r0, r4
	bl	pm_runtime_enable
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L44+16
	mov	r0, r7
	ldr	r6, [r3]
	bl	spin_unlock_irq
	cmp	r6, #0
	rsbne	r6, r6, #0
	beq	.L7
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	ldr	r3, [r9, #16]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [r8]
	ldr	r2, [r9]
	cmp	r2, r3
	beq	.L14
	mov	r0, r4
	bl	dev_name
	mov	r6, r0
	mov	r0, r9
	bl	dev_name
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L44+20
	mov	r0, r4
	bl	dev_err
	ldr	r3, .L44+24
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L15
.L23:
	mov	r6, #0
	mov	r1, r5
	mov	r0, r4
	bl	__update_runtime_status
	mov	r0, r7
	str	r6, [r4, #8]
	bl	spin_unlock_irq
	ldr	r10, .L44+4
	b	.L17
.L38:
	bl	device_links_read_lock
	mov	fp, r0
	mov	r0, r4
	bl	rpm_get_suppliers
	subs	r6, r0, #0
	bne	.L43
	mov	r0, fp
	bl	device_links_read_unlock
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r3, [r4]
	cmp	r9, #0
	cmpne	r3, r5
	beq	.L23
	ldr	r10, .L44+4
.L24:
	ldr	r3, [r10]
	cmp	r3, r5
	bne	.L11
	mov	r2, #0
	mvn	r1, #0
	add	r0, r9, #12
	bl	atomic_add_unless
	ldr	r8, [r9, #16]
	mov	r1, r5
	clz	r8, r8
	mov	r0, r4
	bl	__update_runtime_status
	cmp	r6, #0
	lsr	r8, r8, #5
	beq	.L12
.L13:
	mov	r0, r7
	bl	spin_unlock_irq
	cmp	r8, #0
	beq	.L17
	mov	r0, r9
	bl	pm_request_idle
	b	.L17
.L42:
	bl	device_links_read_lock
	mov	r5, r0
	mov	r0, r4
	bl	rpm_put_suppliers
	mov	r0, r5
	bl	device_links_read_unlock
	b	.L18
.L41:
	mov	r0, r7
	ldr	r5, [r10]
	bl	spin_unlock_irq
	b	.L17
.L43:
	ldr	r10, .L44+4
	mov	r0, fp
	ldr	r5, [r10]
	bl	device_links_read_unlock
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r3, [r4]
	cmp	r9, #0
	cmpne	r3, r5
	bne	.L24
	mov	r1, r5
	mov	r0, r4
	bl	__update_runtime_status
	mov	r0, r7
	bl	spin_unlock_irq
	b	.L17
.L40:
	add	r0, r9, #12
	bl	atomic_inc
	b	.L15
.L22:
	mvn	r1, #0
	mov	r2, r6
	add	r0, r9, #12
	bl	atomic_add_unless
	ldr	r8, [r9, #16]
	mov	r1, r5
	clz	r8, r8
	mov	r0, r4
	lsr	r8, r8, #5
	bl	__update_runtime_status
.L12:
	mov	r3, #0
	mov	r6, r3
	str	r3, [r4, #8]
	b	.L13
.L45:
	.align	2
.L44:
	.word	RPM_ACTIVE
	.word	RPM_SUSPENDED
	.word	EINVAL
	.word	SINGLE_DEPTH_NESTING
	.word	EAGAIN
	.word	.LC0
	.word	EBUSY
	.size	__pm_runtime_set_status, .-__pm_runtime_set_status
	.comm	SINGLE_DEPTH_NESTING,4,4
	.comm	RPM_SUSPENDED,4,4
	.comm	RPM_ACTIVE,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
