	.file	"extr_smu8_hwmgr.c_smu8_get_sclk_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smu8_get_sclk_level, @function
smu8_get_sclk_level:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	cmp	edx, 130
	je	.L2
	jg	.L3
	cmp	edx, 128
	je	.L2
	cmp	edx, 129
	jne	.L8
.L4:
	mov	r8d, DWORD PTR 8[rax]
	sub	r8d, 1
	js	.L1
	mov	rdx, QWORD PTR [rax]
	movsx	rax, r8d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	lea	r8d, -1[rax]
	sub	rax, 1
	test	eax, eax
	js	.L1
.L7:
	mov	r8d, eax
	cmp	DWORD PTR [rdx+rax*4], esi
	jg	.L25
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	edx, 131
	je	.L4
.L8:
	xor	r8d, r8d
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdx, QWORD PTR 8[rax]
	test	edx, edx
	jle	.L8
	mov	rcx, QWORD PTR [rax]
	lea	edi, -1[rdx]
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	lea	r8d, 1[rax]
	lea	rdx, 1[rax]
	cmp	rax, rdi
	je	.L1
	mov	rax, rdx
.L6:
	mov	r8d, eax
	cmp	DWORD PTR [rcx+rax*4], esi
	jl	.L26
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	smu8_get_sclk_level, .-smu8_get_sclk_level
	.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_smu8_hwmgr.c_smu8_get_sclk_level.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu8_get_sclk_level, %function
smu8_get_sclk_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r2, r2, #128
	str	lr, [sp, #-4]!
	ldr	lr, [r0]
	cmp	r2, #3
	ldrls	pc, [pc, r2, asl #2]
	b	.L8
.L4:
	.word	.L5
	.word	.L3
	.word	.L5
	.word	.L3
.L3:
	ldr	r2, [lr, #4]
	subs	r0, r2, #1
	ldrmi	pc, [sp], #4
	ldr	r3, [lr]
	sub	r2, r2, #-1073741823
	add	r3, r3, r2, lsl #2
.L7:
	ldr	r2, [r3], #-4
	cmp	r2, r1
	ldrle	pc, [sp], #4
	sub	r0, r0, #1
	cmn	r0, #1
	bne	.L7
	ldr	pc, [sp], #4
.L5:
	ldr	ip, [lr, #4]
	mov	r0, #0
	cmp	ip, #0
	ldrle	pc, [sp], #4
	ldr	r3, [lr]
	sub	r3, r3, #4
.L6:
	ldr	r2, [r3, #4]!
	cmp	r2, r1
	ldrge	pc, [sp], #4
	add	r0, r0, #1
	cmp	r0, ip
	bne	.L6
	ldr	pc, [sp], #4
.L8:
	mov	r0, #0
	ldr	pc, [sp], #4
	.size	smu8_get_sclk_level, .-smu8_get_sclk_level
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
