	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_legacy_get_backlight_level ## -- Begin function radeon_legacy_get_backlight_level
	.p2align	4, 0x90
_radeon_legacy_get_backlight_level:     ## @radeon_legacy_get_backlight_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RADEON_LVDS_GEN_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	_RADEON_LVDS_BL_MOD_LEVEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_LVDS_GEN_CNTL,4,2       ## @RADEON_LVDS_GEN_CNTL
	.comm	_RADEON_LVDS_BL_MOD_LEVEL_SHIFT,4,2 ## @RADEON_LVDS_BL_MOD_LEVEL_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_legacy_get_backlight_level ; -- Begin function radeon_legacy_get_backlight_level
	.p2align	2
_radeon_legacy_get_backlight_level:     ; @radeon_legacy_get_backlight_level
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _RADEON_LVDS_GEN_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_LVDS_GEN_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
Lloh3:
	adrp	x8, _RADEON_LVDS_BL_MOD_LEVEL_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_LVDS_BL_MOD_LEVEL_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w0, w8
	and	w0, w8, #0xff
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_LVDS_GEN_CNTL,4,2       ; @RADEON_LVDS_GEN_CNTL
	.comm	_RADEON_LVDS_BL_MOD_LEVEL_SHIFT,4,2 ; @RADEON_LVDS_BL_MOD_LEVEL_SHIFT
.subsections_via_symbols
