	.file	"extr_atombios_encoders.c_radeon_atom_set_backlight_level_to_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	radeon_atom_set_backlight_level_to_reg, @function
radeon_atom_set_backlight_level_to_reg:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR CHIP_R600[rip]
	cmp	QWORD PTR [rdi], rax
	jl	.L2
	mov	edi, DWORD PTR R600_BIOS_2_SCRATCH[rip]
	call	RREG32@PLT
.L3:
	mov	ecx, DWORD PTR ATOM_S2_CURRENT_BL_LEVEL_SHIFT[rip]
	sal	ebx, cl
	mov	esi, ebx
	xor	esi, eax
	and	esi, DWORD PTR ATOM_S2_CURRENT_BL_LEVEL_MASK[rip]
	xor	esi, eax
	mov	rax, QWORD PTR CHIP_R600[rip]
	cmp	QWORD PTR 0[rbp], rax
	jl	.L4
	mov	edi, DWORD PTR R600_BIOS_2_SCRATCH[rip]
	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
	jmp	WREG32@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR RADEON_BIOS_2_SCRATCH[rip]
	call	RREG32@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR RADEON_BIOS_2_SCRATCH[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	WREG32@PLT
	.cfi_endproc
.LFE0:
	.size	radeon_atom_set_backlight_level_to_reg, .-radeon_atom_set_backlight_level_to_reg
	.comm	RADEON_BIOS_2_SCRATCH,4,4
	.comm	R600_BIOS_2_SCRATCH,4,4
	.comm	CHIP_R600,8,8
	.comm	ATOM_S2_CURRENT_BL_LEVEL_SHIFT,4,4
	.comm	ATOM_S2_CURRENT_BL_LEVEL_MASK,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_atombios_encoders.c_radeon_atom_set_backlight_level_to_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_atom_set_backlight_level_to_reg, %function
radeon_atom_set_backlight_level_to_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L7
	ldr	r2, [r0]
	ldr	r3, [r6]
	mov	r5, r0
	cmp	r2, r3
	ldrge	r3, .L7+4
	ldrlt	r3, .L7+8
	mov	r4, r1
	ldr	r0, [r3]
	bl	RREG32
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r1, [r2]
	ldr	ip, [r5]
	ldr	r2, [r6]
	ldr	r3, [r3]
	eor	r1, r0, r4, lsl r1
	and	r1, r1, r3
	cmp	ip, r2
	eor	r1, r1, r0
	blt	.L4
	pop	{r4, r5, r6, lr}
	ldr	r3, .L7+4
	ldr	r0, [r3]
	b	WREG32
.L4:
	ldr	r3, .L7+8
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	WREG32
.L8:
	.align	2
.L7:
	.word	CHIP_R600
	.word	R600_BIOS_2_SCRATCH
	.word	RADEON_BIOS_2_SCRATCH
	.word	ATOM_S2_CURRENT_BL_LEVEL_SHIFT
	.word	ATOM_S2_CURRENT_BL_LEVEL_MASK
	.size	radeon_atom_set_backlight_level_to_reg, .-radeon_atom_set_backlight_level_to_reg
	.comm	RADEON_BIOS_2_SCRATCH,4,4
	.comm	R600_BIOS_2_SCRATCH,4,4
	.comm	CHIP_R600,4,4
	.comm	ATOM_S2_CURRENT_BL_LEVEL_SHIFT,4,4
	.comm	ATOM_S2_CURRENT_BL_LEVEL_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
