	.file	"extr_sumo_dpm.c_sumo_program_power_levels_0_to_n.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sumo_program_power_levels_0_to_n, @function
sumo_program_power_levels_0_to_n:
.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	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	sumo_get_pi@PLT
	mov	rdi, r13
	mov	r15, rax
	call	sumo_get_ps@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	sumo_get_ps@PLT
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR 0[r13]
	movsx	r14, DWORD PTR [rax]
	test	edx, edx
	je	.L9
.L8:
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, rbp
	mov	rdi, r12
	lea	rsi, [rax+rbp*4]
	call	sumo_program_power_level@PLT
	mov	rsi, rbp
	mov	edx, 1
	mov	rdi, r12
	call	sumo_power_level_enable@PLT
	movsx	rbx, DWORD PTR 0[r13]
	add	rbp, 1
	cmp	rbx, rbp
	ja	.L4
.L3:
	cmp	r14, rbx
	jbe	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbx
	xor	edx, edx
	mov	rdi, r12
	add	rbx, 1
	call	sumo_power_level_enable@PLT
	cmp	rbx, r14
	jb	.L6
.L5:
	mov	eax, DWORD PTR 4[r13]
	test	DWORD PTR SUMO_POWERSTATE_FLAGS_BOOST_STATE[rip], eax
	jne	.L15
	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
.L15:
	.cfi_restore_state
	mov	rdx, QWORD PTR BOOST_DPM_LEVEL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r15
	mov	rdi, r12
	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
	jmp	sumo_program_power_level@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[r13]
	mov	r14d, 1
	test	eax, eax
	jne	.L8
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	sumo_power_level_enable@PLT
	jmp	.L5
.L9:
	xor	ebx, ebx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sumo_program_power_levels_0_to_n, .-sumo_program_power_levels_0_to_n
	.comm	SUMO_POWERSTATE_FLAGS_BOOST_STATE,4,4
	.comm	BOOST_DPM_LEVEL,8,8
	.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_sumo_dpm.c_sumo_program_power_levels_0_to_n.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sumo_program_power_levels_0_to_n, %function
sumo_program_power_levels_0_to_n:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r4, r2
	mov	r6, r0
	bl	sumo_get_pi
	mov	r9, r0
	mov	r0, r5
	bl	sumo_get_ps
	mov	r7, r0
	mov	r0, r4
	bl	sumo_get_ps
	cmp	r0, #0
	beq	.L2
	ldr	r4, [r7]
	ldr	r8, [r0]
	cmp	r4, #0
	beq	.L3
.L8:
	mov	r5, #0
.L4:
	ldr	r1, [r7, #8]
	mov	r2, r5
	add	r1, r1, r5, lsl #2
	mov	r0, r6
	bl	sumo_program_power_level
	mov	r1, r5
	mov	r2, #1
	mov	r0, r6
	bl	sumo_power_level_enable
	ldr	r4, [r7]
	add	r5, r5, #1
	cmp	r4, r5
	bhi	.L4
.L3:
	cmp	r8, r4
	bls	.L5
.L6:
	mov	r1, r4
	mov	r2, #0
	mov	r0, r6
	add	r4, r4, #1
	bl	sumo_power_level_enable
	cmp	r4, r8
	bcc	.L6
.L5:
	ldr	r3, .L15
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L15+4
	mov	r1, r9
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, [r3]
	b	sumo_program_power_level
.L2:
	ldr	r2, [r7]
	cmp	r2, #0
	movne	r8, #1
	bne	.L8
	mov	r1, r2
	mov	r0, r6
	bl	sumo_power_level_enable
	b	.L5
.L16:
	.align	2
.L15:
	.word	SUMO_POWERSTATE_FLAGS_BOOST_STATE
	.word	BOOST_DPM_LEVEL
	.size	sumo_program_power_levels_0_to_n, .-sumo_program_power_levels_0_to_n
	.comm	SUMO_POWERSTATE_FLAGS_BOOST_STATE,4,4
	.comm	BOOST_DPM_LEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
