	.file	"extr_smu_v12_0.c_smu_v12_0_get_dpm_ultimate_freq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Attempt to get max GX frequency from SMC Failed !\n"
	.align 8
.LC1:
	.string	"Attempt to get min GX frequency from SMC Failed !\n"
	.text
	.p2align 4
	.type	smu_v12_0_get_dpm_ultimate_freq, @function
smu_v12_0_get_dpm_ultimate_freq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	mutex_lock@PLT
	test	r14, r14
	je	.L2
	cmp	ebx, 128
	je	.L3
	sub	ebx, 129
	cmp	ebx, 1
	ja	.L11
	mov	esi, DWORD PTR SMU_MSG_GetMaxGfxclkFrequency[rip]
	mov	rdi, r13
	call	smu_send_smc_msg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L23
	mov	rsi, r14
	mov	rdi, r13
	call	smu_read_smc_arg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	test	rbp, rbp
	je	.L13
.L14:
	cmp	ebx, 1
	ja	.L11
	mov	esi, DWORD PTR SMU_MSG_GetMinGfxclkFrequency[rip]
	mov	rdi, r13
	call	smu_send_smc_msg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	mov	rsi, rbp
	mov	rdi, r13
	call	smu_read_smc_arg@PLT
	mov	r12d, eax
.L6:
	mov	rdi, r13
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, 1
	mov	rsi, r14
	mov	rdi, r13
	call	smu_get_dpm_uclk_limited@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	test	rbp, rbp
	je	.L13
.L10:
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r13
	call	smu_get_dpm_uclk_limited@PLT
	mov	r12d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	test	rbp, rbp
	je	.L13
	cmp	ebx, 128
	je	.L10
	sub	ebx, 129
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	smu_v12_0_get_dpm_ultimate_freq, .-smu_v12_0_get_dpm_ultimate_freq
	.comm	SMU_MSG_GetMinGfxclkFrequency,4,4
	.comm	SMU_MSG_GetMaxGfxclkFrequency,4,4
	.comm	EINVAL,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_smu_v12_0.c_smu_v12_0_get_dpm_ultimate_freq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Attempt to get max GX frequency from SMC Failed !\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Attempt to get min GX frequency from SMC Failed !\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu_v12_0_get_dpm_ultimate_freq, %function
smu_v12_0_get_dpm_ultimate_freq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r3
	mov	r7, r1
	mov	r6, r2
	mov	r5, r0
	bl	mutex_lock
	cmp	r8, #0
	beq	.L2
	cmp	r7, #128
	beq	.L3
	sub	r7, r7, #129
	cmp	r7, #1
	bhi	.L11
	ldr	r3, .L25
	mov	r0, r5
	ldr	r1, [r3]
	bl	smu_send_smc_msg
	subs	r4, r0, #0
	bne	.L23
	mov	r1, r8
	mov	r0, r5
	bl	smu_read_smc_arg
	subs	r4, r0, #0
	bne	.L6
	cmp	r6, #0
	beq	.L13
.L14:
	cmp	r7, #1
	bhi	.L11
	ldr	r3, .L25+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	smu_send_smc_msg
	subs	r4, r0, #0
	bne	.L24
	mov	r1, r6
	mov	r0, r5
	bl	smu_read_smc_arg
	mov	r4, r0
.L6:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, r8
	mov	r2, #1
	mov	r0, r5
	bl	smu_get_dpm_uclk_limited
	subs	r4, r0, #0
	bne	.L6
	cmp	r6, #0
	beq	.L13
.L10:
	mov	r1, r6
	mov	r2, #0
	mov	r0, r5
	bl	smu_get_dpm_uclk_limited
	mov	r4, r0
	b	.L6
.L11:
	ldr	r3, .L25+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L2:
	cmp	r6, #0
	beq	.L13
	cmp	r7, #128
	beq	.L10
	sub	r7, r7, #129
	b	.L14
.L23:
	ldr	r0, .L25+12
	bl	pr_err
	b	.L6
.L13:
	mov	r4, #0
	b	.L6
.L24:
	ldr	r0, .L25+16
	bl	pr_err
	b	.L6
.L26:
	.align	2
.L25:
	.word	SMU_MSG_GetMaxGfxclkFrequency
	.word	SMU_MSG_GetMinGfxclkFrequency
	.word	EINVAL
	.word	.LC0
	.word	.LC1
	.size	smu_v12_0_get_dpm_ultimate_freq, .-smu_v12_0_get_dpm_ultimate_freq
	.comm	SMU_MSG_GetMinGfxclkFrequency,4,4
	.comm	SMU_MSG_GetMaxGfxclkFrequency,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
