	.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
	movl	%edi, %esi
	cmpl	$3, %edi
	ja	LBB0_6
## %bb.1:
	movl	%esi, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_pwm_level@GOTPCREL(%rip), %rax
	movl	$84, (%rax)
	movl	$84, %eax
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_xprintf
	movq	_pwm_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_3:
	movq	_pwm_level@GOTPCREL(%rip), %rax
	movl	$168, (%rax)
	movl	$168, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_pwm_level@GOTPCREL(%rip), %rax
	movl	$255, (%rax)
	movl	$255, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_pwm_level@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
LBB0_7:
	movl	%eax, %ecx
	sarl	$8, %ecx
	movq	_TC4H@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movzbl	%al, %eax
	movq	_OCR4A@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_pwm_level,4,2                  ## @pwm_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown level: %d\n"

	.comm	_TC4H,4,2                       ## @TC4H
	.comm	_OCR4A,4,2                      ## @OCR4A
.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:
	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
	mov	x1, x0
	cmp	w0, #3
	b.hi	LBB0_3
; %bb.1:
	mov	w8, w1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x9, _pwm_level@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pwm_level@GOTPAGEOFF]
	mov	w8, #84
Lloh4:
	str	w8, [x9]
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xprintf
Lloh7:
	adrp	x8, _pwm_level@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pwm_level@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x9, _pwm_level@GOTPAGE
Lloh11:
	ldr	x9, [x9, _pwm_level@GOTPAGEOFF]
	mov	w8, #168
Lloh12:
	str	w8, [x9]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x9, _pwm_level@GOTPAGE
Lloh14:
	ldr	x9, [x9, _pwm_level@GOTPAGEOFF]
	mov	w8, #255
Lloh15:
	str	w8, [x9]
	b	LBB0_7
LBB0_6:
	mov	w8, #0
Lloh16:
	adrp	x9, _pwm_level@GOTPAGE
Lloh17:
	ldr	x9, [x9, _pwm_level@GOTPAGEOFF]
Lloh18:
	str	wzr, [x9]
LBB0_7:
Lloh19:
	adrp	x9, _TC4H@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TC4H@GOTPAGEOFF]
	asr	w10, w8, #8
Lloh21:
	str	w10, [x9]
	and	w8, w8, #0xff
Lloh22:
	adrp	x9, _OCR4A@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OCR4A@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_pwm_level,4,2                  ; @pwm_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown level: %d\n"

	.comm	_TC4H,4,2                       ; @TC4H
	.comm	_OCR4A,4,2                      ; @OCR4A
.subsections_via_symbols
