	.file	"extr_soc15.c_soc15_update_drm_light_sleep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	soc15_update_drm_light_sleep, @function
soc15_update_drm_light_sleep:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR MP0[rip]
	mov	edx, DWORD PTR mmMP0_MISC_LIGHT_SLEEP_CTRL[rip]
	call	SOC15_REG_OFFSET@PLT
	mov	edi, eax
	call	RREG32@PLT
	test	ebx, ebx
	je	.L2
	mov	edx, DWORD PTR 0[rbp]
	test	DWORD PTR AMD_CG_SUPPORT_DRM_LS[rip], edx
	jne	.L13
.L2:
	mov	ebp, eax
	and	ebp, -2
	cmp	ebp, eax
	jne	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	ebp, eax
	or	ebp, 1
	cmp	ebp, eax
	je	.L1
.L14:
	mov	edi, DWORD PTR MP0[rip]
	mov	edx, DWORD PTR mmMP0_MISC_LIGHT_SLEEP_CTRL[rip]
	xor	esi, esi
	call	SOC15_REG_OFFSET@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	WREG32@PLT
	.cfi_endproc
.LFE0:
	.size	soc15_update_drm_light_sleep, .-soc15_update_drm_light_sleep
	.comm	mmMP0_MISC_LIGHT_SLEEP_CTRL,4,4
	.comm	MP0,4,4
	.comm	AMD_CG_SUPPORT_DRM_LS,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_soc15.c_soc15_update_drm_light_sleep.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	soc15_update_drm_light_sleep, %function
soc15_update_drm_light_sleep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r7, .L13
	ldr	r6, .L13+4
	mov	r1, #0
	ldr	r2, [r7]
	mov	r5, r0
	ldr	r0, [r6]
	bl	SOC15_REG_OFFSET
	bl	RREG32
	cmp	r4, #0
	beq	.L2
	ldr	r3, .L13+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	orrne	r4, r0, #1
	bne	.L3
.L2:
	bic	r4, r0, #1
.L3:
	cmp	r4, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, #0
	ldr	r2, [r7]
	ldr	r0, [r6]
	bl	SOC15_REG_OFFSET
	mov	r1, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	WREG32
.L14:
	.align	2
.L13:
	.word	mmMP0_MISC_LIGHT_SLEEP_CTRL
	.word	MP0
	.word	AMD_CG_SUPPORT_DRM_LS
	.size	soc15_update_drm_light_sleep, .-soc15_update_drm_light_sleep
	.comm	mmMP0_MISC_LIGHT_SLEEP_CTRL,4,4
	.comm	MP0,4,4
	.comm	AMD_CG_SUPPORT_DRM_LS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
