	.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_ALPHAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORTB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rdi, %rdi
	jle	LBB0_2
## %bb.1:
	movq	_BACKLIGHT_FKEYS@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_BACKLIGHT_MODNUM@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_BACKLIGHT_NUMPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_PORTE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	orl	%edx, %ecx
	movq	_BACKLIGHT_FKEYS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_BACKLIGHT_MODNUM@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movq	_BACKLIGHT_NUMPAD@GOTPCREL(%rip), %rcx
	movq	_PORTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
LBB0_3:
	movq	_PORTE@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BACKLIGHT_ALPHAS,4,2           ## @BACKLIGHT_ALPHAS
	.comm	_PORTB,4,2                      ## @PORTB
	.comm	_BACKLIGHT_FKEYS,4,2            ## @BACKLIGHT_FKEYS
	.comm	_BACKLIGHT_MODNUM,4,2           ## @BACKLIGHT_MODNUM
	.comm	_BACKLIGHT_NUMPAD,4,2           ## @BACKLIGHT_NUMPAD
	.comm	_PORTE,4,2                      ## @PORTE
.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_ALPHAS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BACKLIGHT_ALPHAS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
Lloh3:
	adrp	x9, _PORTB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORTB@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh5:
	adrp	x8, _PORTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PORTE@GOTPAGEOFF]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh7:
	adrp	x12, _BACKLIGHT_FKEYS@GOTPAGE
Lloh8:
	ldr	x12, [x12, _BACKLIGHT_FKEYS@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh10:
	adrp	x12, _BACKLIGHT_MODNUM@GOTPAGE
Lloh11:
	ldr	x12, [x12, _BACKLIGHT_MODNUM@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
	orr	w11, w11, w12
	bic	w10, w10, w11
	str	w10, [x9]
Lloh13:
	adrp	x9, _BACKLIGHT_NUMPAD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BACKLIGHT_NUMPAD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
	ret
LBB0_2:
	orr	w10, w10, w11
Lloh16:
	adrp	x11, _BACKLIGHT_FKEYS@GOTPAGE
Lloh17:
	ldr	x11, [x11, _BACKLIGHT_FKEYS@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh19:
	adrp	x11, _BACKLIGHT_MODNUM@GOTPAGE
Lloh20:
	ldr	x11, [x11, _BACKLIGHT_MODNUM@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x9]
Lloh22:
	adrp	x9, _BACKLIGHT_NUMPAD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BACKLIGHT_NUMPAD@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BACKLIGHT_ALPHAS,4,2           ; @BACKLIGHT_ALPHAS
	.comm	_PORTB,4,2                      ; @PORTB
	.comm	_BACKLIGHT_FKEYS,4,2            ; @BACKLIGHT_FKEYS
	.comm	_BACKLIGHT_MODNUM,4,2           ; @BACKLIGHT_MODNUM
	.comm	_BACKLIGHT_NUMPAD,4,2           ; @BACKLIGHT_NUMPAD
	.comm	_PORTE,4,2                      ; @PORTE
.subsections_via_symbols
