	.file	"extr_power.c_acpi_power_transition.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_power_transition
	.type	acpi_power_transition, @function
acpi_power_transition:
.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
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	je	.L2
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
	cmp	eax, esi
	jle	.L21
.L2:
	mov	edi, -1
	call	return_VALUE@PLT
	mov	eax, DWORD PTR ACPI_STATE_D0[rip]
.L3:
	movsx	r13, DWORD PTR [rbx]
	cmp	r13d, eax
	jl	.L4
	cmp	r13d, DWORD PTR ACPI_STATE_D3[rip]
	jg	.L4
.L5:
	mov	rbp, QWORD PTR 8[rbx]
	movsx	r15, r12d
	sal	r15, 4
	add	r15, rbp
	mov	edx, DWORD PTR [r15]
	test	edx, edx
	je	.L13
	xor	r14d, r14d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	add	r14d, 1
	cmp	DWORD PTR [r15], r14d
	jbe	.L22
.L8:
	mov	rdx, QWORD PTR 8[r15]
	mov	eax, r14d
	mov	rsi, rbx
	mov	edi, DWORD PTR [rdx+rax*4]
	call	acpi_power_on@PLT
	test	eax, eax
	je	.L23
.L7:
	mov	edx, DWORD PTR ACPI_STATE_UNKNOWN[rip]
	mov	DWORD PTR [rbx], edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L4:
	.cfi_restore_state
	mov	edi, -15
	call	return_VALUE@PLT
	movsx	r13, DWORD PTR [rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	DWORD PTR ACPI_STATE_D3[rip], esi
	jge	.L3
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR [rbx]
.L6:
	cmp	r12d, eax
	je	.L11
	sal	r13, 4
	add	rbp, r13
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L11
	xor	r13d, r13d
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	add	r13d, 1
	cmp	DWORD PTR 0[rbp], r13d
	jbe	.L11
.L12:
	mov	rdx, QWORD PTR 8[rbp]
	mov	eax, r13d
	mov	rsi, rbx
	mov	edi, DWORD PTR [rdx+rax*4]
	call	acpi_power_off_device@PLT
	test	eax, eax
	je	.L24
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR [rbx], r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L13:
	.cfi_restore_state
	mov	eax, r13d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	acpi_power_transition, .-acpi_power_transition
	.comm	ACPI_STATE_UNKNOWN,4,4
	.comm	ACPI_STATE_D3,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_power.c_acpi_power_transition.c"
	.text
	.align	2
	.global	acpi_power_transition
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_power_transition, %function
acpi_power_transition:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	mov	r8, r1
	ldr	r4, .L28
	beq	.L2
	ldr	r3, [r4]
	cmp	r3, r1
	ble	.L24
.L2:
	mvn	r0, #0
	bl	return_VALUE
	ldr	r3, [r4]
.L3:
	ldr	r9, [r5]
	cmp	r9, r3
	blt	.L4
	ldr	r3, .L28+4
	ldr	r3, [r3]
	cmp	r9, r3
	bgt	.L4
.L5:
	ldr	r7, [r5, #4]
	ldr	r3, [r7, r8, lsl #3]
	add	r6, r7, r8, lsl #3
	cmp	r3, #0
	beq	.L13
	mov	r4, #0
	b	.L8
.L26:
	ldr	r3, [r6]
	cmp	r3, r4
	bls	.L25
.L8:
	ldr	r3, [r6, #4]
	mov	r1, r5
	ldr	r0, [r3, r4, lsl #2]
	bl	acpi_power_on
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L26
.L7:
	ldr	r3, .L28+8
	ldr	r3, [r3]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mvn	r0, #14
	bl	return_VALUE
	ldr	r9, [r5]
	b	.L5
.L24:
	ldr	r2, .L28+4
	ldr	r2, [r2]
	cmp	r2, r1
	bge	.L3
	b	.L2
.L25:
	ldr	r3, [r5]
.L6:
	cmp	r8, r3
	beq	.L11
	ldr	r3, [r7, r9, lsl #3]
	add	r7, r7, r9, lsl #3
	cmp	r3, #0
	beq	.L11
	mov	r4, #0
	b	.L12
.L27:
	ldr	r3, [r7]
	cmp	r3, r4
	bls	.L11
.L12:
	ldr	r3, [r7, #4]
	mov	r1, r5
	ldr	r0, [r3, r4, lsl #2]
	bl	acpi_power_off_device
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L27
	b	.L7
.L11:
	mov	r0, #0
	str	r8, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r3, r9
	b	.L6
.L29:
	.align	2
.L28:
	.word	ACPI_STATE_D0
	.word	ACPI_STATE_D3
	.word	ACPI_STATE_UNKNOWN
	.size	acpi_power_transition, .-acpi_power_transition
	.comm	ACPI_STATE_UNKNOWN,4,4
	.comm	ACPI_STATE_D3,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
