	.file	"extr_device_pm.c_acpi_bus_init_power.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_bus_init_power
	.type	acpi_bus_init_power, @function
acpi_bus_init_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	neg	r12d
	test	rdi, rdi
	je	.L1
	mov	eax, DWORD PTR ACPI_STATE_UNKNOWN[rip]
	mov	rbx, rdi
	mov	DWORD PTR [rdi], eax
	call	acpi_device_is_present@PLT
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR ENXIO[rip]
	mov	DWORD PTR 16[rbx], 0
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rsi, 4[rsp]
	mov	rdi, rbx
	call	acpi_device_get_power@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR 4[rsp]
	cmp	esi, DWORD PTR ACPI_STATE_D3_COLD[rip]
	jge	.L5
	cmp	QWORD PTR 8[rbx], 0
	jne	.L13
.L5:
	cmp	esi, DWORD PTR ACPI_STATE_UNKNOWN[rip]
	je	.L14
.L6:
	mov	DWORD PTR [rbx], esi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR ACPI_STATE_D0[rip]
	mov	DWORD PTR [rbx], esi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbx
	call	acpi_power_on_resources@PLT
	test	eax, eax
	jne	.L9
	mov	esi, DWORD PTR 4[rsp]
	cmp	esi, DWORD PTR ACPI_STATE_D0[rip]
	jne	.L6
	mov	rdi, rbx
	call	acpi_dev_pm_explicit_set@PLT
	test	eax, eax
	jne	.L9
	mov	esi, DWORD PTR 4[rsp]
	mov	DWORD PTR [rbx], esi
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_bus_init_power, .-acpi_bus_init_power
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.comm	ACPI_STATE_UNKNOWN,4,4
	.comm	ACPI_STATE_D3_COLD,4,4
	.comm	ACPI_STATE_D0,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_device_pm.c_acpi_bus_init_power.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpi_bus_init_power
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_bus_init_power, %function
acpi_bus_init_power:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L18
	sub	sp, sp, #8
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L15
	ldr	r6, .L18+4
	ldr	r3, [r6]
	str	r3, [r5]
	bl	acpi_device_is_present
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L18+8
	str	r0, [r5, #8]
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, sp
	mov	r0, r5
	bl	acpi_device_get_power
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L18+12
	ldr	r1, [sp]
	ldr	r3, [r3]
	cmp	r1, r3
	blt	.L17
.L5:
	ldr	r3, [r6]
	cmp	r1, r3
	ldreq	r3, .L18+16
	ldreq	r1, [r3]
.L6:
	str	r1, [r5]
	b	.L1
.L15:
	ldr	r3, .L18+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L17:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L5
	mov	r0, r5
	bl	acpi_power_on_resources
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L18+16
	ldr	r1, [sp]
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L6
	mov	r0, r5
	bl	acpi_dev_pm_explicit_set
	cmp	r0, #0
	ldreq	r1, [sp]
	beq	.L6
.L9:
	mov	r4, r0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	ACPI_STATE_UNKNOWN
	.word	ENXIO
	.word	ACPI_STATE_D3_COLD
	.word	ACPI_STATE_D0
	.word	EINVAL
	.size	acpi_bus_init_power, .-acpi_bus_init_power
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.comm	ACPI_STATE_UNKNOWN,4,4
	.comm	ACPI_STATE_D3_COLD,4,4
	.comm	ACPI_STATE_D0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
