	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_kb              ## -- Begin function process_record_kb
	.p2align	4, 0x90
_process_record_kb:                     ## @process_record_kb
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edi killed $edi def $rdi
	leal	-128(%rdi), %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	cmpq	$0, (%rsi)
	je	LBB0_15
## %bb.3:
	movq	_kb_backlight_config@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 4(%rax)
	sete	%cl
	movl	%ecx, 4(%rax)
	movl	$0, %edi
	jne	LBB0_11
## %bb.4:
	movl	(%rax), %edi
	jmp	LBB0_11
LBB0_5:
                                        ## kill: def $edi killed $edi killed $rdi
	jmp	_process_record_user            ## TAILCALL
LBB0_6:
	cmpq	$0, (%rsi)
	je	LBB0_15
## %bb.7:
	movq	_kb_backlight_config@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edi
	movq	_BACKLIGHT_LEVELS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	cmovgel	%edx, %edi
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, (%rsi)
	je	LBB0_15
## %bb.9:
	movq	_kb_backlight_config@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-1(%rcx), %edi
	xorl	%edx, %edx
	cmpl	$2, %ecx
	cmovll	%edx, %edi
LBB0_10:
	movl	%edi, (%rax)
LBB0_11:
	callq	_backlight_set
	jmp	LBB0_14
LBB0_12:
	cmpq	$0, (%rsi)
	je	LBB0_15
## %bb.13:
	movq	_kb_backlight_config@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rax)
	sete	%cl
	movl	%ecx, 8(%rax)
	xorl	%eax, %eax
	callq	_breathing_toggle
LBB0_14:
	xorl	%eax, %eax
	callq	_save_backlight_config_to_eeprom
LBB0_15:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_kb_backlight_config,12,2       ## @kb_backlight_config
	.comm	_BACKLIGHT_LEVELS,4,2           ## @BACKLIGHT_LEVELS
	.comm	_MACRO00,4,2                    ## @MACRO00
	.comm	_MACRO15,4,2                    ## @MACRO15
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_record_kb              ; -- Begin function process_record_kb
	.p2align	2
_process_record_kb:                     ; @process_record_kb
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.1:
	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
	.cfi_remember_state
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:
	ldr	x8, [x1]
	cbz	x8, LBB0_13
; %bb.3:
Lloh2:
	adrp	x8, _kb_backlight_config@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kb_backlight_config@GOTPAGEOFF]
	ldp	w10, w9, [x8]
	cmp	w9, #0
	csel	w0, w10, wzr, eq
	cset	w9, eq
	str	w9, [x8, #4]
	bl	_backlight_set
	b	LBB0_12
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	b	_process_record_user
LBB0_5:
	.cfi_restore_state
	ldr	x8, [x1]
	cbz	x8, LBB0_13
; %bb.6:
Lloh4:
	adrp	x8, _kb_backlight_config@GOTPAGE
Lloh5:
	ldr	x8, [x8, _kb_backlight_config@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _BACKLIGHT_LEVELS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BACKLIGHT_LEVELS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	csinc	w0, w10, w9, ge
	b	LBB0_9
LBB0_7:
	ldr	x8, [x1]
	cbz	x8, LBB0_13
; %bb.8:
Lloh9:
	adrp	x8, _kb_backlight_config@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kb_backlight_config@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w10, w9, #1
	cmp	w9, #2
	csel	w0, wzr, w10, lt
LBB0_9:
	str	w0, [x8]
	bl	_backlight_set
	b	LBB0_12
LBB0_10:
	ldr	x8, [x1]
	cbz	x8, LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _kb_backlight_config@GOTPAGE
Lloh12:
	ldr	x8, [x8, _kb_backlight_config@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8, #8]
	bl	_breathing_toggle
LBB0_12:
	bl	_save_backlight_config_to_eeprom
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_kb_backlight_config,12,2       ; @kb_backlight_config
	.comm	_BACKLIGHT_LEVELS,4,2           ; @BACKLIGHT_LEVELS
	.comm	_MACRO00,4,2                    ; @MACRO00
	.comm	_MACRO15,4,2                    ; @MACRO15
.subsections_via_symbols
