	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_brightness                 ## -- Begin function led_brightness
	.p2align	4, 0x90
_led_brightness:                        ## @led_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$129, %edi
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	cmpl	$128, %edi
	jne	LBB0_9
## %bb.2:
	cmpl	$0, (%rsi)
	movl	$1, %eax
	je	LBB0_9
## %bb.3:
	movq	_led_dim@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.4:
	decl	%esi
	jmp	LBB0_8
LBB0_5:
	cmpl	$0, (%rsi)
	movl	$1, %eax
	je	LBB0_9
## %bb.6:
	movq	_led_dim@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	$7, %esi
	jg	LBB0_9
## %bb.7:
	incl	%esi
LBB0_8:
	movq	_led_dim@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_EECONFIG_LED_DIM_LVL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_eeprom_write_byte
	movl	$1, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_led_dim,4,2                    ## @led_dim
	.comm	_EECONFIG_LED_DIM_LVL,4,2       ## @EECONFIG_LED_DIM_LVL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_led_brightness                 ; -- Begin function led_brightness
	.p2align	2
_led_brightness:                        ; @led_brightness
	.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
	cmp	w0, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_8
; %bb.2:
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _led_dim@GOTPAGE
Lloh1:
	ldr	x8, [x8, _led_dim@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_7
; %bb.3:
	sub	w1, w8, #1
	b	LBB0_6
LBB0_4:
	ldr	w9, [x1]
Lloh3:
	adrp	x8, _led_dim@GOTPAGE
Lloh4:
	ldr	x8, [x8, _led_dim@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, #0
	ccmp	w8, #7, #0, ne
	b.gt	LBB0_7
; %bb.5:
	add	w1, w8, #1
LBB0_6:
Lloh6:
	adrp	x8, _led_dim@GOTPAGE
Lloh7:
	ldr	x8, [x8, _led_dim@GOTPAGEOFF]
Lloh8:
	str	w1, [x8]
Lloh9:
	adrp	x8, _EECONFIG_LED_DIM_LVL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EECONFIG_LED_DIM_LVL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_eeprom_write_byte
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_led_dim,4,2                    ; @led_dim
	.comm	_EECONFIG_LED_DIM_LVL,4,2       ; @EECONFIG_LED_DIM_LVL
.subsections_via_symbols
