	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_legacy_set_backlight_level ## -- Begin function radeon_legacy_set_backlight_level
	.p2align	4, 0x90
_radeon_legacy_set_backlight_level:     ## @radeon_legacy_set_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	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rcx)
	jg	LBB0_3
## %bb.4:
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	leaq	8(%rcx), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	%rsi, (%rcx)
LBB0_6:
	movl	%eax, %esi
	popq	%rbp
	jmp	_radeon_legacy_lvds_update      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.comm	_DRM_MODE_DPMS_OFF,4,2          ## @DRM_MODE_DPMS_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_legacy_set_backlight_level ; -- Begin function radeon_legacy_set_backlight_level
	.p2align	2
_radeon_legacy_set_backlight_level:     ; @radeon_legacy_set_backlight_level
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
	ldr	x10, [x8]
	str	x1, [x8], #8
	cmp	x10, #0
	csel	x8, x8, x9, gt
	ldr	w1, [x8]
	b	_radeon_legacy_lvds_update
LBB0_2:
Lloh2:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	b	_radeon_legacy_lvds_update
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.comm	_DRM_MODE_DPMS_OFF,4,2          ; @DRM_MODE_DPMS_OFF
.subsections_via_symbols
