	.file	"918321.c"
	.intel_syntax noprefix
	.text
	.globl	ACPI_DB_INFO
	.bss
	.align 4
	.type	ACPI_DB_INFO, @object
	.size	ACPI_DB_INFO, 4
ACPI_DB_INFO:
	.zero	4
	.globl	ACPI_STATE_D0
	.align 4
	.type	ACPI_STATE_D0, @object
	.size	ACPI_STATE_D0, 4
ACPI_STATE_D0:
	.zero	4
	.globl	ACPI_STATE_D3_COLD
	.align 4
	.type	ACPI_STATE_D3_COLD, @object
	.size	ACPI_STATE_D3_COLD, 4
ACPI_STATE_D3_COLD:
	.zero	4
	.globl	ACPI_STATE_D3_HOT
	.align 4
	.type	ACPI_STATE_D3_HOT, @object
	.size	ACPI_STATE_D3_HOT, 4
ACPI_STATE_D3_HOT:
	.zero	4
	.globl	EINVAL
	.align 4
	.type	EINVAL, @object
	.size	EINVAL, 4
EINVAL:
	.zero	4
	.globl	ENODEV
	.align 4
	.type	ENODEV, @object
	.size	ENODEV, 4
ENODEV:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Power state change: %s -> %s\n"
.LC1:
	.string	"Power state %s not supported\n"
	.align 8
.LC2:
	.string	"Cannot transition to power state %s for parent in %s\n"
	.align 8
.LC3:
	.string	"Cannot transition from %s to %s\n"
	.align 8
.LC4:
	.string	"Failed to change power state to %s\n"
	.text
	.globl	acpi_device_set_power
	.type	acpi_device_set_power, @function
acpi_device_set_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -32[rbp], 0
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 68[rax]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L2
	mov	eax, DWORD PTR ACPI_STATE_D3_COLD[rip]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	ecx, ebx
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	acpi_handle_debug@PLT
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L5
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -60[rbp], eax
	jne	.L5
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edi, eax
	call	ACPI_DEBUG_PRINT@PLT
	mov	eax, 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR ACPI_STATE_D3_COLD[rip]
	cmp	DWORD PTR -60[rbp], eax
	jne	.L6
	mov	eax, DWORD PTR ACPI_STATE_D3_HOT[rip]
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR ACPI_STATE_D3_COLD[rip]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 48
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	dev_warn@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 56[rax]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -60[rbp], eax
	jge	.L8
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	ebx, eax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 48
	mov	ecx, ebx
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	dev_warn@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L4
.L8:
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
	cmp	DWORD PTR -60[rbp], eax
	jle	.L9
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -60[rbp], eax
	jge	.L10
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 48
	mov	ecx, ebx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	dev_warn@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L4
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	eax, DWORD PTR ACPI_STATE_D3_HOT[rip]
	cmp	edx, eax
	jge	.L11
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	acpi_dev_pm_explicit_set@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jne	.L22
.L11:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L12
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	acpi_power_transition@PLT
	mov	DWORD PTR -32[rbp], eax
	jmp	.L12
.L9:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L13
	mov	edx, DWORD PTR ACPI_STATE_D0[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	acpi_power_transition@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jne	.L23
.L13:
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L14
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L15
	mov	eax, 0
	jmp	.L4
.L15:
	lea	rdx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	acpi_dev_pm_explicit_get@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jne	.L17
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
	cmp	edx, eax
	jne	.L14
.L17:
	mov	eax, 0
	jmp	.L4
.L14:
	mov	edx, DWORD PTR ACPI_STATE_D0[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	acpi_dev_pm_explicit_set@PLT
	mov	DWORD PTR -32[rbp], eax
	jmp	.L12
.L22:
	nop
	jmp	.L12
.L23:
	nop
.L12:
	cmp	DWORD PTR -32[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 48
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	dev_warn@PLT
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	acpi_power_state_string@PLT
	mov	edi, eax
	call	ACPI_DEBUG_PRINT@PLT
.L20:
	mov	eax, DWORD PTR -32[rbp]
.L4:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	acpi_device_set_power, .-acpi_device_set_power
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"918321.c"
	.text
	.comm	ACPI_DB_INFO,4,4
	.comm	ACPI_STATE_D0,4,4
	.comm	ACPI_STATE_D3_COLD,4,4
	.comm	ACPI_STATE_D3_HOT,4,4
	.comm	EINVAL,4,4
	.comm	ENODEV,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Power state change: %s -> %s\012\000"
	.align	2
.LC1:
	.ascii	"Power state %s not supported\012\000"
	.align	2
.LC2:
	.ascii	"Cannot transition to power state %s for parent in %"
	.ascii	"s\012\000"
	.align	2
.LC3:
	.ascii	"Cannot transition from %s to %s\012\000"
	.align	2
.LC4:
	.ascii	"Failed to change power state to %s\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpi_device_set_power
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_device_set_power, %function
acpi_device_set_power:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L2
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	ble	.L3
.L2:
	ldr	r3, .L24+12
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-40]
	ldr	r4, [r3, #32]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	acpi_power_state_string
	mov	r5, r0
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L24+16
	mov	r0, r4
	bl	acpi_handle_debug
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	ble	.L5
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L5
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r0, r3
	bl	ACPI_DEBUG_PRINT
	mov	r3, #0
	b	.L4
.L5:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L6
	ldr	r3, .L24+20
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #20]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	b	.L7
.L6:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-40]
	add	r4, r3, #24
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L24+24
	mov	r0, r4
	bl	dev_warn
	ldr	r3, .L24+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L4
.L7:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-40]
	add	r4, r3, #24
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r5, r0
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L24+32
	mov	r0, r4
	bl	dev_warn
	ldr	r3, .L24+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L4
.L8:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-40]
	add	r4, r3, #24
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	acpi_power_state_string
	mov	r5, r0
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L24+36
	mov	r0, r4
	bl	dev_warn
	ldr	r3, .L24+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L4
.L10:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	ldr	r3, .L24+20
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L11
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	acpi_dev_pm_explicit_set
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L22
.L11:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L12
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	acpi_power_transition
	str	r0, [fp, #-24]
	b	.L12
.L9:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	acpi_power_transition
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L23
.L13:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L14
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	b	.L4
.L15:
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	acpi_dev_pm_explicit_get
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L17
	ldr	r2, [fp, #-32]
	ldr	r3, .L24+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L14
.L17:
	mov	r3, #0
	b	.L4
.L14:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	acpi_dev_pm_explicit_set
	str	r0, [fp, #-24]
	b	.L12
.L22:
	nop
	b	.L12
.L23:
	nop
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-40]
	add	r4, r3, #24
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L24+40
	mov	r0, r4
	bl	dev_warn
	b	.L20
.L19:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-44]
	bl	acpi_power_state_string
	mov	r3, r0
	mov	r0, r3
	bl	ACPI_DEBUG_PRINT
.L20:
	ldr	r3, [fp, #-24]
.L4:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC5
	.word	ACPI_STATE_D0
	.word	ACPI_STATE_D3_COLD
	.word	EINVAL
	.word	.LC0
	.word	ACPI_STATE_D3_HOT
	.word	.LC1
	.word	ENODEV
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	acpi_device_set_power, .-acpi_device_set_power
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
