	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_init                 ## -- Begin function backlight_init
	.p2align	4, 0x90
_backlight_init:                        ## @backlight_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_eeconfig_is_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_eeconfig_init
LBB0_2:
	xorl	%eax, %eax
	callq	_eeconfig_read_backlight
	movq	_backlight_config@GOTPCREL(%rip), %rcx
	movl	%eax, 16(%rcx)
	movq	(%rcx), %rdi
	movq	_BACKLIGHT_LEVELS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdi
	jle	LBB0_4
## %bb.3:
	movq	%rax, (%rcx)
	movq	%rax, %rdi
LBB0_4:
	movq	8(%rcx), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rdi
	popq	%rbp
	jmp	_backlight_set                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_backlight_config,24,3          ## @backlight_config
	.comm	_BACKLIGHT_LEVELS,8,3           ## @BACKLIGHT_LEVELS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_init                 ; -- Begin function backlight_init
	.p2align	2
_backlight_init:                        ; @backlight_init
	.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
	bl	_eeconfig_is_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_eeconfig_init
LBB0_2:
	bl	_eeconfig_read_backlight
Lloh0:
	adrp	x8, _backlight_config@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backlight_config@GOTPAGEOFF]
	str	w0, [x8, #16]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _BACKLIGHT_LEVELS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BACKLIGHT_LEVELS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_4
; %bb.3:
	str	x10, [x8]
	mov	x9, x10
LBB0_4:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	csel	x0, xzr, x9, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_backlight_set
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_backlight_config,24,3          ; @backlight_config
	.comm	_BACKLIGHT_LEVELS,8,3           ; @BACKLIGHT_LEVELS
.subsections_via_symbols
