	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_set                  ## -- Begin function backlight_set
	.p2align	4, 0x90
_backlight_set:                         ## @backlight_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BACKLIGHT_ALPHA@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%edi, %eax
	setne	%cl
	movq	_PORTB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	$-15, %edx
	leal	(%rdx,%rcx,2), %ecx
	movq	_BACKLIGHT_EXTRA@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%edi, %edx
	setne	%sil
	leal	(%rcx,%rsi,4), %ecx
	movq	_BACKLIGHT_MODNUM@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%edi, %edx
	setne	%sil
	leal	(%rcx,%rsi,8), %ecx
	movl	%ecx, (%rax)
	movq	_BACKLIGHT_FROW@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%edi, %eax
	setne	%cl
	movq	_PORTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	$-65, %edx
	shll	$6, %ecx
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_BACKLIGHT_RGB@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	andl	(%rcx), %edi
	setne	%al
	movl	%eax, %edi
	popq	%rbp
	jmp	_backlight_toggle_rgb           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BACKLIGHT_ALPHA,4,2            ## @BACKLIGHT_ALPHA
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_BACKLIGHT_EXTRA,4,2            ## @BACKLIGHT_EXTRA
	.comm	_BACKLIGHT_MODNUM,4,2           ## @BACKLIGHT_MODNUM
	.comm	_BACKLIGHT_FROW,4,2             ## @BACKLIGHT_FROW
	.comm	_PORTE,4,2                      ## @PORTE
	.comm	_BACKLIGHT_RGB,4,2              ## @BACKLIGHT_RGB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_backlight_set                  ; -- Begin function backlight_set
	.p2align	2
_backlight_set:                         ; @backlight_set
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BACKLIGHT_ALPHA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BACKLIGHT_ALPHA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
Lloh3:
	adrp	x9, _PORTB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORTB@GOTPAGEOFF]
	ldr	w10, [x9]
	and	w10, w10, #0xfffffff1
	bfi	w10, w8, #1, #1
Lloh5:
	adrp	x8, _BACKLIGHT_EXTRA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BACKLIGHT_EXTRA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	bfi	w10, w8, #2, #1
Lloh8:
	adrp	x8, _BACKLIGHT_MODNUM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BACKLIGHT_MODNUM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	bfi	w10, w8, #3, #1
	str	w10, [x9]
Lloh11:
	adrp	x8, _BACKLIGHT_FROW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BACKLIGHT_FROW@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
Lloh14:
	adrp	x9, _PORTE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PORTE@GOTPAGEOFF]
	ldr	w10, [x9]
	bfi	w10, w8, #6, #1
	str	w10, [x9]
Lloh16:
	adrp	x8, _BACKLIGHT_RGB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BACKLIGHT_RGB@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	b	_backlight_toggle_rgb
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BACKLIGHT_ALPHA,4,2            ; @BACKLIGHT_ALPHA
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_BACKLIGHT_EXTRA,4,2            ; @BACKLIGHT_EXTRA
	.comm	_BACKLIGHT_MODNUM,4,2           ; @BACKLIGHT_MODNUM
	.comm	_BACKLIGHT_FROW,4,2             ; @BACKLIGHT_FROW
	.comm	_PORTE,4,2                      ; @PORTE
	.comm	_BACKLIGHT_RGB,4,2              ; @BACKLIGHT_RGB
.subsections_via_symbols
